#include "precomp.h"
Go to the source code of this file.
|
| WINE_DEFAULT_DEBUG_CHANNEL (fprop) |
|
EXTERN_C void | SHELL32_GetDefaultShellState (LPSHELLSTATE pss) |
|
EXTERN_C LSTATUS | SHELL32_WriteRegShellState (PREGSHELLSTATE prss) |
|
static BOOL | IntSetShellStateSettings (BOOL bDoubleClick, BOOL bUseCommonTasks) |
|
EXTERN_C BOOL | SHELL32_ReadRegShellState (PREGSHELLSTATE prss) |
|
static BOOL | IntSetUnderlineState (BOOL bIconUnderline) |
|
static BOOL | IntGetUnderlineState (VOID) |
|
static HRESULT | IntSetNewWindowMode (BOOL bNewWindowMode) |
|
static BOOL | IntGetNewWindowMode (VOID) |
|
static VOID | GeneralDlg_UpdateIcons (HWND hDlg, UINT nCtrlID, PGENERAL_DIALOG pGeneral) |
|
static void | GeneralDlg_StoreToUI (HWND hwndDlg, BOOL bDoubleClick, BOOL bUseCommonTasks, BOOL bUnderline, BOOL bNewWindowMode, PGENERAL_DIALOG pGeneral) |
|
static BOOL | GeneralDlg_OnInitDialog (HWND hwndDlg, PGENERAL_DIALOG pGeneral) |
|
static void | GeneralDlg_OnRestoreDefaults (HWND hwndDlg, PGENERAL_DIALOG pGeneral) |
|
static BOOL | GeneralDlg_OnApply (HWND hwndDlg, PGENERAL_DIALOG pGeneral) |
|
INT_PTR CALLBACK | FolderOptionsGeneralDlg (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) |
|
◆ GENERAL_DIALOG
◆ PGENERAL_DIALOG
◆ FolderOptionsGeneralDlg()
Definition at line 332 of file general.cpp.
337{
339
340 switch (uMsg)
341 {
347
350 {
360 {
362
363
365 }
366 break;
369 {
371
372
374 }
375 break;
376 }
377 break;
378
380 {
382
384 {
386 break;
387
390 }
391 break;
392 }
393
398 break;
399
400 default:
402 }
404}
static BOOL GeneralDlg_OnInitDialog(HWND hwndDlg, PGENERAL_DIALOG pGeneral)
static VOID GeneralDlg_UpdateIcons(HWND hDlg, UINT nCtrlID, PGENERAL_DIALOG pGeneral)
static void GeneralDlg_OnRestoreDefaults(HWND hwndDlg, PGENERAL_DIALOG pGeneral)
static BOOL GeneralDlg_OnApply(HWND hwndDlg, PGENERAL_DIALOG pGeneral)
#define PropSheet_Changed(d, w)
#define IDC_FOLDER_OPTIONS_CLASSICFOLDERS
#define IDC_FOLDER_OPTIONS_ULBROWSER
#define IDC_FOLDER_OPTIONS_SINGLECLICK
#define IDC_FOLDER_OPTIONS_COMMONTASKS
#define IDC_FOLDER_OPTIONS_SAMEWINDOW
#define IDC_FOLDER_OPTIONS_DOUBLECLICK
#define IDC_FOLDER_OPTIONS_ULPOINT
#define IDC_FOLDER_OPTIONS_RESTORE
#define IDC_FOLDER_OPTIONS_OWNWINDOW
struct tagNMHDR * LPNMHDR
HWND WINAPI GetParent(_In_ HWND)
BOOL WINAPI DestroyIcon(_In_ HICON)
Referenced by CFolderOptions::AddPages(), and ShowFolderOptionsDialogThreadProc().
◆ GeneralDlg_OnApply()
Definition at line 316 of file general.cpp.
317{
322
326 if (updateCabinets)
329}
static BOOL IntSetShellStateSettings(BOOL bDoubleClick, BOOL bUseCommonTasks)
static BOOL IntSetUnderlineState(BOOL bIconUnderline)
static HRESULT IntSetNewWindowMode(BOOL bNewWindowMode)
void PostCabinetMessage(UINT Msg, WPARAM wParam, LPARAM lParam)
UINT WINAPI IsDlgButtonChecked(_In_ HWND, _In_ int)
Referenced by FolderOptionsGeneralDlg().
◆ GeneralDlg_OnInitDialog()
Definition at line 287 of file general.cpp.
288{
291 BOOL bDoubleClick = !!
ss.fDoubleClickInWebView;
292 BOOL bUseCommonTasks = !!
ss.fWebView;
295
296 GeneralDlg_StoreToUI(hwndDlg, bDoubleClick, bUseCommonTasks, bUnderline, bNewWindowMode, pGeneral);
298
300}
static BOOL IntGetNewWindowMode(VOID)
static BOOL IntGetUnderlineState(VOID)
static void GeneralDlg_StoreToUI(HWND hwndDlg, BOOL bDoubleClick, BOOL bUseCommonTasks, BOOL bUnderline, BOOL bNewWindowMode, PGENERAL_DIALOG pGeneral)
VOID WINAPI SHGetSetSettings(LPSHELLSTATE lpss, DWORD dwMask, BOOL bSet)
#define SSF_DOUBLECLICKINWEBVIEW
Referenced by FolderOptionsGeneralDlg().
◆ GeneralDlg_OnRestoreDefaults()
◆ GeneralDlg_StoreToUI()
Definition at line 249 of file general.cpp.
251{
253
254 if (bUseCommonTasks)
256 else
258
259 if (bDoubleClick)
261 else
263
264 if (bNewWindowMode)
266 else
268
269 if (!bDoubleClick)
270 {
273 if (bUnderline)
275 else
277 }
278 else
279 {
283 }
284}
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
BOOL WINAPI CheckRadioButton(_In_ HWND, _In_ int, _In_ int, _In_ int)
Referenced by GeneralDlg_OnInitDialog(), and GeneralDlg_OnRestoreDefaults().
◆ GeneralDlg_UpdateIcons()
Definition at line 161 of file general.cpp.
162{
165
166
171
172 if (lpTaskIconName)
173 {
176 if (hTaskIcon)
177 {
180 }
181 }
182
183
188
189 if (lpFolderIconName)
190 {
193 if (hFolderIcon)
194 {
197 }
198 }
199
200
205
206 if (lpClickIconName)
207 {
210 if (hClickIcon)
211 {
214 }
215 }
216
217
218 if (hTaskIcon)
219 {
222 }
223 if (hFolderIcon)
224 {
227 }
228 if (hClickIcon)
229 {
232 }
233
235 {
238 }
239
241 {
245 }
246}
#define shell32_hInstance
#define MAKEINTRESOURCE(i)
#define IDI_SHELL_OPEN_IN_SOME_WINDOW
#define IDC_FOLDER_OPTIONS_FOLDERICON
#define IDI_SHELL_OPEN_IN_NEW_WINDOW
#define IDI_SHELL_CLASSIC_FOLDERS
#define IDI_SHELL_SINGLE_CLICK_TO_OPEN
#define IDC_FOLDER_OPTIONS_CLICKICON
#define IDI_SHELL_DOUBLE_CLICK_TO_OPEN
#define IDC_FOLDER_OPTIONS_TASKICON
#define IDI_SHELL_SHOW_COMMON_TASKS
Referenced by FolderOptionsGeneralDlg(), GeneralDlg_OnInitDialog(), and GeneralDlg_OnRestoreDefaults().
◆ IntGetNewWindowMode()
static BOOL IntGetNewWindowMode |
( |
VOID |
| ) |
|
|
static |
◆ IntGetUnderlineState()
static BOOL IntGetUnderlineState |
( |
VOID |
| ) |
|
|
static |
Definition at line 115 of file general.cpp.
116{
119 return dwValue == 3;
120}
static const LPCWSTR s_pszExplorerKey
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Referenced by GeneralDlg_OnInitDialog().
◆ IntSetNewWindowMode()
static HRESULT IntSetNewWindowMode |
( |
BOOL |
bNewWindowMode | ) |
|
|
static |
Definition at line 130 of file general.cpp.
131{
135
136 BOOL changed = !!
cs.fNewWindowMode != !!bNewWindowMode;
137 cs.fNewWindowMode = !!bNewWindowMode;
139}
BOOL WINAPI WriteCabinetState(CABINETSTATE *cs)
Referenced by GeneralDlg_OnApply().
◆ IntSetShellStateSettings()
static BOOL IntSetShellStateSettings |
( |
BOOL |
bDoubleClick, |
|
|
BOOL |
bUseCommonTasks |
|
) |
| |
|
static |
Definition at line 68 of file general.cpp.
69{
72 shellstate.
fWebView = !!bUseCommonTasks;
74
75
78}
BOOL WINAPI SHSettingsChanged(LPCVOID unused, LPCWSTR pszKey)
BOOL fDoubleClickInWebView
Referenced by GeneralDlg_OnApply().
◆ IntSetUnderlineState()
static BOOL IntSetUnderlineState |
( |
BOOL |
bIconUnderline | ) |
|
|
static |
Definition at line 102 of file general.cpp.
103{
110
113}
static LSTATUS(WINAPI *pRegDeleteTreeW)(HKEY
DWORD WINAPI SHSendMessageBroadcastW(UINT uMsg, WPARAM wParam, LPARAM lParam)
#define SHREGSET_FORCE_HKCU
Referenced by GeneralDlg_OnApply().
◆ SHELL32_GetDefaultShellState()
◆ SHELL32_ReadRegShellState()
Definition at line 86 of file general.cpp.
87{
92}
DWORD WINAPI SHGetValueW(HKEY hKey, LPCWSTR lpszSubKey, LPCWSTR lpszValue, LPDWORD pwType, LPVOID pvData, LPDWORD pcbData)
#define REGSHELLSTATE_SIZE
#define HKEY_CURRENT_USER
Referenced by SHGetSetSettings().
◆ SHELL32_WriteRegShellState()
Definition at line 51 of file general.cpp.
52{
57}
DWORD WINAPI SHSetValueW(HKEY hKey, LPCWSTR lpszSubKey, LPCWSTR lpszValue, DWORD dwType, LPCVOID pvData, DWORD cbData)
Referenced by SHGetSetSettings().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
fprop |
| ) |
|
◆ s_pszExplorerKey