32 #define I_CHECKED_DISABLED 2 33 #define I_UNCHECKED_DISABLED 3 34 #define I_RADIO_CHECKED 4 35 #define I_RADIO_UNCHECKED 5 36 #define I_RADIO_CHECKED_DISABLED 6 37 #define I_RADIO_UNCHECKED_DISABLED 7 38 #define PREDEFINED_ICON_COUNT 8 117 if (hIconSmall ==
NULL)
123 if (pAllocated ==
NULL)
148 if (dwID ==
DWORD(-1))
215 Insertion.item.mask =
217 Insertion.item.pszText =
pEntry->szText;
220 Insertion.item.iImage = Insertion.item.iSelectedImage = iImage;
221 Insertion.item.lParam =
pEntry->dwID;
260 if (pAllocated ==
NULL)
269 pEntry->dwParentID = dwParentID;
285 pEntry->dwResourceID = dwIndex;
333 pEntry->szValueName[0] = 0;
334 pEntry->dwCheckedValue = 0;
336 pEntry->dwUncheckedValue = 0;
337 pEntry->dwDefaultValue = 0;
346 Size =
sizeof(HKeyRoot);
348 pEntry->hkeyRoot = HKeyRoot;
357 pEntry->szValueName[0] = 0;
414 dwParentID =
pEntry->dwID;
444 static const WCHAR s_szAdvanced[] =
445 L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced";
495 if (dwParentID1 == dwParentID2)
508 if (!pParent1 && !pParent2)
513 pArray1[
m++] = pParent1;
518 pArray2[
n++] = pParent2;
524 for (
i = 0;
i <
k; ++
i)
554 if (hImageList ==
NULL)
569 if (pAllocated ==
NULL)
580 HBITMAP hbmChecked, hbmUnchecked;
676 Item.iImage =
Item.iSelectedImage = iImage;
706 HitTest.pt.x =
LOWORD(dwPos);
707 HitTest.pt.y =
HIWORD(dwPos);
857 WCHAR ClassName[100];
860 if (!
wcscmp(ClassName,
L"Progman") ||
861 !
wcscmp(ClassName,
L"CabinetWClass") ||
862 !
wcscmp(ClassName,
L"ExploreWClass"))
892 dwValue =
pEntry->dwCheckedValue;
896 if (
pEntry->bHasUncheckedValue)
898 dwValue =
pEntry->dwUncheckedValue;
#define IDC_VIEW_TREEVIEW
static BOOL CALLBACK RefreshBrowsersCallback(HWND hWnd, LPARAM msg)
#define TreeView_GetItemRect(hwnd, hitem, prc, code)
static BOOL ViewTree_LoadAll(VOID)
static INT ViewTree_AddIcon(LPCWSTR pszPath, UINT nIconIndex)
INT WINAPI ImageList_Add(HIMAGELIST himl, HBITMAP hbmImage, HBITMAP hbmMask)
static VOID ViewDlg_RestoreDefaults(HWND hwndDlg)
#define TreeView_DeleteAllItems(hwnd)
BOOL WINAPI DestroyIcon(_In_ HICON)
HBITMAP CreateRadioMask(HDC hDC)
#define HKEY_CURRENT_USER
_Check_return_ _CRTIMP int __cdecl _wtoi(_In_z_ const wchar_t *_Str)
static INT ViewTree_GetImage(PVIEWTREE_ENTRY pEntry)
static PVIEWTREE_ENTRY ViewTree_GetItem(DWORD dwID)
#define CDDS_ITEMPREPAINT
IN PVOID IN PVOID IN USHORT IN USHORT Size
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
GLint GLint GLint GLint GLint x
#define IDC_VIEW_RESTORE_DEFAULTS
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
#define SSF_SHOWEXTENSIONS
DWORD WINAPI GetMessagePos(void)
#define TVIF_SELECTEDIMAGE
#define FCIDM_DESKBROWSER_REFRESH
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
#define SSF_SHOWSUPERHIDDEN
DWORD WINAPI GetSysColor(_In_ int)
HBITMAP CreateCheckMask(HDC hDC)
static INT ViewTree_FindIcon(LPCWSTR pszPath, UINT nIconIndex)
struct tagNMHDR * LPNMHDR
struct VIEWTREE_ICON * PVIEWTREE_ICON
int WINAPI lstrcmpiW(LPCWSTR lpString1, LPCWSTR lpString2)
int WINAPI GetClassNameW(_In_ HWND hWnd, _Out_writes_to_(nMaxCount, return) LPWSTR lpClassName, _In_ int nMaxCount)
#define TreeView_InsertItem(hwnd, lpis)
static VOID ViewDlg_OnTreeViewClick(HWND hwndDlg)
LONG WINAPI RegCloseKey(HKEY hKey)
HIMAGELIST WINAPI ImageList_Create(INT cx, INT cy, UINT flags, INT cInitial, INT cGrow)
static const WCHAR szText[]
static BOOL ViewDlg_OnInitDialog(HWND hwndDlg)
UINT WINAPI ExtractIconExW(LPCWSTR lpszFile, INT nIconIndex, HICON *phiconLarge, HICON *phiconSmall, UINT nIcons)
HBITMAP CreateCheckImage(HDC hDC, BOOL bCheck, BOOL bEnabled)
static VOID ViewTree_SortAll(VOID)
void __cdecl qsort(_Inout_updates_bytes_(_NumOfElements *_SizeOfElements) void *_Base, _In_ size_t _NumOfElements, _In_ size_t _SizeOfElements, _In_ int(__cdecl *_PtFuncCompare)(const void *, const void *))
static int ViewTree_Compare(const void *x, const void *y)
#define I_RADIO_CHECKED_DISABLED
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
static HIMAGELIST s_hTreeImageList
WCHAR szRegPath[MAX_PATH]
static void ViewDlg_OnTreeViewKeyDown(HWND hwndDlg, TV_KEYDOWN *KeyDown)
#define CDRF_NOTIFYITEMDRAW
#define TreeView_SetImageList(hwnd, himl, iImage)
#define I_RADIO_UNCHECKED
VOID WINAPI SHGetSetSettings(LPSHELLSTATE lpss, DWORD dwMask, BOOL bSet)
#define SSF_SHOWALLOBJECTS
#define SSF_SHOWCOMPCOLOR
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
static PVIEWTREE_ENTRY s_ViewTreeEntries
#define TreeView_GetSelection(hwnd)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
#define PREDEFINED_ICON_COUNT
#define TreeView_HitTest(hwnd, lpht)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define PropSheet_Changed(d, w)
enum VIEWTREE_ENTRY_TYPE * PVIEWTREE_ENTRY_TYPE
#define I_UNCHECKED_DISABLED
static INT s_ViewTreeEntryCount
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
BOOL WINAPI EnumWindows(_In_ WNDENUMPROC, _In_ LPARAM)
WINE_DEFAULT_DEBUG_CHANNEL(fprop)
struct VIEWTREE_ICON VIEWTREE_ICON
INT WINAPI ImageList_AddIcon(HIMAGELIST himl, HICON hIcon)
static VOID ViewTree_InsertAll(HWND hwndTreeView)
HBITMAP CreateRadioImage(HDC hDC, BOOL bCheck, BOOL bEnabled)
#define I_RADIO_UNCHECKED_DISABLED
LONG WINAPI RegEnumKeyW(HKEY hKey, DWORD dwIndex, LPWSTR lpName, DWORD cbName)
struct VIEWTREE_ENTRY VIEWTREE_ENTRY
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
HWND WINAPI GetParent(_In_ HWND)
static VOID ViewDlg_Apply(HWND hwndDlg)
#define I_CHECKED_DISABLED
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
INT_PTR CALLBACK FolderOptionsViewDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static BOOL ViewTree_LoadTree(HKEY hKey, LPCWSTR pszKeyName, DWORD dwParentID)
DWORD WINAPI ExpandEnvironmentStringsW(IN LPCWSTR lpSrc, IN LPWSTR lpDst, IN DWORD nSize)
GLint GLint GLint GLint GLint GLint y
static VOID ViewTree_InsertEntry(HWND hwndTreeView, PVIEWTREE_ENTRY pEntry)
#define TreeView_SetItem(hwnd, pitem)
_In_ WDFCOLLECTION _In_ WDFOBJECT Item
static VOID ScanAdvancedSettings(SHELLSTATE *pSS, DWORD *pdwMask)
static INT_PTR ViewDlg_OnTreeCustomDraw(HWND hwndDlg, NMTVCUSTOMDRAW *Draw)
static PVIEWTREE_ICON s_ViewTreeIcons
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
struct VIEWTREE_ENTRY * PVIEWTREE_ENTRY
static HIMAGELIST ViewDlg_CreateTreeImageList(VOID)
BOOL WINAPI ScreenToClient(_In_ HWND, _Inout_ LPPOINT)
#define TreeView_Expand(hwnd, hitem, code)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
static BOOL ViewDlg_ToggleCheckItem(HWND hwndDlg, HTREEITEM hItem)
#define TreeView_GetItem(hwnd, pitem)
static INT s_ViewTreeIconCount
#define HKEY_LOCAL_MACHINE