#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 331 of file general.cpp.
336{
338
339 switch (uMsg)
340 {
346
349 {
359 {
361
362
364 }
365 break;
368 {
370
371
373 }
374 break;
375 }
376 break;
377
379 {
381
383 {
385 break;
386
389 }
390 break;
391 }
392
397 break;
398
399 default:
401 }
403}
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 315 of file general.cpp.
316{
321
325 if (updateCabinets)
328}
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 286 of file general.cpp.
287{
290 BOOL bDoubleClick = !!
ss.fDoubleClickInWebView;
291 BOOL bUseCommonTasks = !!
ss.fWebView;
294
295 GeneralDlg_StoreToUI(hwndDlg, bDoubleClick, bUseCommonTasks, bUnderline, bNewWindowMode, pGeneral);
297
299}
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 248 of file general.cpp.
250{
252
253 if (bUseCommonTasks)
255 else
257
258 if (bDoubleClick)
260 else
262
263 if (bNewWindowMode)
265 else
267
268 if (!bDoubleClick)
269 {
272 if (bUnderline)
274 else
276 }
277 else
278 {
282 }
283}
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 160 of file general.cpp.
161{
164
165
170
171 if (lpTaskIconName)
172 {
175 if (hTaskIcon)
176 {
179 }
180 }
181
182
187
188 if (lpFolderIconName)
189 {
192 if (hFolderIcon)
193 {
196 }
197 }
198
199
204
205 if (lpClickIconName)
206 {
209 if (hClickIcon)
210 {
213 }
214 }
215
216
217 if (hTaskIcon)
218 {
221 }
222 if (hFolderIcon)
223 {
226 }
227 if (hClickIcon)
228 {
231 }
232
234 {
237 }
238
240 {
244 }
245}
#define shell32_hInstance
#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 114 of file general.cpp.
115{
118 return dwValue == 3;
119}
static const LPCWSTR s_pszExplorerKey
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Referenced by GeneralDlg_OnInitDialog().
◆ IntSetNewWindowMode()
static HRESULT IntSetNewWindowMode |
( |
BOOL |
bNewWindowMode | ) |
|
|
static |
Definition at line 129 of file general.cpp.
130{
134
135 BOOL changed = !!
cs.fNewWindowMode != !!bNewWindowMode;
136 cs.fNewWindowMode = !!bNewWindowMode;
138}
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
77}
BOOL WINAPI SHSettingsChanged(LPCVOID unused, LPCWSTR pszKey)
BOOL fDoubleClickInWebView
Referenced by GeneralDlg_OnApply().
◆ IntSetUnderlineState()
static BOOL IntSetUnderlineState |
( |
BOOL |
bIconUnderline | ) |
|
|
static |
Definition at line 101 of file general.cpp.
102{
109
110 SHSettingsChanged(0,
L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\IconUnderline");
112}
static LSTATUS(WINAPI *pRegDeleteTreeW)(HKEY
#define SHREGSET_FORCE_HKCU
Referenced by GeneralDlg_OnApply().
◆ SHELL32_GetDefaultShellState()
◆ SHELL32_ReadRegShellState()
Definition at line 85 of file general.cpp.
86{
91}
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