Lines Matching refs:pEntry
153 PVIEWTREE_ENTRY pEntry = &s_ViewTreeEntries[i]; in ViewTree_GetItem() local
154 if (pEntry->dwID == dwID) in ViewTree_GetItem()
155 return pEntry; in ViewTree_GetItem()
161 ViewTree_GetImage(PVIEWTREE_ENTRY pEntry) in ViewTree_GetImage() argument
163 switch (pEntry->dwType) in ViewTree_GetImage()
166 return pEntry->nIconID; in ViewTree_GetImage()
169 if (pEntry->bGrayed) in ViewTree_GetImage()
171 if (pEntry->bChecked) in ViewTree_GetImage()
178 if (pEntry->bChecked) in ViewTree_GetImage()
185 if (pEntry->bGrayed) in ViewTree_GetImage()
187 if (pEntry->bChecked) in ViewTree_GetImage()
194 if (pEntry->bChecked) in ViewTree_GetImage()
204 ViewTree_InsertEntry(HWND hwndTreeView, PVIEWTREE_ENTRY pEntry) in ViewTree_InsertEntry() argument
206 PVIEWTREE_ENTRY pParent = ViewTree_GetItem(pEntry->dwParentID); in ViewTree_InsertEntry()
217 Insertion.item.pszText = pEntry->szText; in ViewTree_InsertEntry()
219 INT iImage = ViewTree_GetImage(pEntry); in ViewTree_InsertEntry()
221 Insertion.item.lParam = pEntry->dwID; in ViewTree_InsertEntry()
222 pEntry->hItem = TreeView_InsertItem(hwndTreeView, &Insertion); in ViewTree_InsertEntry()
231 PVIEWTREE_ENTRY pEntry; in ViewTree_InsertAll() local
234 pEntry = &s_ViewTreeEntries[i]; in ViewTree_InsertAll()
235 ViewTree_InsertEntry(hwndTreeView, pEntry); in ViewTree_InsertAll()
241 pEntry = &s_ViewTreeEntries[i]; in ViewTree_InsertAll()
242 if (pEntry->dwType == AETYPE_GROUP) in ViewTree_InsertAll()
244 TreeView_Expand(hwndTreeView, pEntry->hItem, TVE_EXPAND); in ViewTree_InsertAll()
265 PVIEWTREE_ENTRY pEntry = &s_ViewTreeEntries[s_ViewTreeEntryCount]; in ViewTree_LoadTree() local
268 pEntry->dwID = s_ViewTreeEntryCount; in ViewTree_LoadTree()
269 pEntry->dwParentID = dwParentID; in ViewTree_LoadTree()
270 lstrcpynW(pEntry->szKeyName, pszKeyName, _countof(pEntry->szKeyName)); in ViewTree_LoadTree()
273 pEntry->szText[0] = 0; in ViewTree_LoadTree()
274 pEntry->dwResourceID = 0; in ViewTree_LoadTree()
285 pEntry->dwResourceID = dwIndex; in ViewTree_LoadTree()
293 pEntry->dwResourceID = DWORD(-1); in ViewTree_LoadTree()
295 lstrcpynW(pEntry->szText, szText, _countof(pEntry->szText)); in ViewTree_LoadTree()
301 pEntry->dwType = AETYPE_CHECKBOX; in ViewTree_LoadTree()
303 pEntry->dwType = AETYPE_RADIO; in ViewTree_LoadTree()
305 pEntry->dwType = AETYPE_GROUP; in ViewTree_LoadTree()
309 pEntry->nIconID = -1; in ViewTree_LoadTree()
310 if (pEntry->dwType == AETYPE_GROUP) in ViewTree_LoadTree()
326 pEntry->nIconID = ViewTree_AddIcon(szExpanded, nIconIndex); in ViewTree_LoadTree()
329 if (pEntry->dwType == AETYPE_GROUP) in ViewTree_LoadTree()
331 pEntry->hkeyRoot = NULL; in ViewTree_LoadTree()
332 pEntry->szRegPath[0] = 0; in ViewTree_LoadTree()
333 pEntry->szValueName[0] = 0; in ViewTree_LoadTree()
334 pEntry->dwCheckedValue = 0; in ViewTree_LoadTree()
335 pEntry->bHasUncheckedValue = FALSE; in ViewTree_LoadTree()
336 pEntry->dwUncheckedValue = 0; in ViewTree_LoadTree()
337 pEntry->dwDefaultValue = 0; in ViewTree_LoadTree()
338 pEntry->hItem = NULL; in ViewTree_LoadTree()
339 pEntry->bGrayed = FALSE; in ViewTree_LoadTree()
340 pEntry->bChecked = FALSE; in ViewTree_LoadTree()
348 pEntry->hkeyRoot = HKeyRoot; in ViewTree_LoadTree()
351 pEntry->szRegPath[0] = 0; in ViewTree_LoadTree()
354 lstrcpynW(pEntry->szRegPath, szText, _countof(pEntry->szRegPath)); in ViewTree_LoadTree()
357 pEntry->szValueName[0] = 0; in ViewTree_LoadTree()
360 lstrcpynW(pEntry->szValueName, szText, _countof(pEntry->szValueName)); in ViewTree_LoadTree()
366 pEntry->dwCheckedValue = Value; in ViewTree_LoadTree()
371 pEntry->bHasUncheckedValue = TRUE; in ViewTree_LoadTree()
375 pEntry->bHasUncheckedValue = FALSE; in ViewTree_LoadTree()
377 pEntry->dwUncheckedValue = Value; in ViewTree_LoadTree()
383 pEntry->dwDefaultValue = Value; in ViewTree_LoadTree()
386 pEntry->hItem = NULL; in ViewTree_LoadTree()
390 Value = pEntry->dwDefaultValue; in ViewTree_LoadTree()
391 pEntry->bGrayed = TRUE; in ViewTree_LoadTree()
392 if (RegOpenKeyExW(HKEY(pEntry->hkeyRoot), pEntry->szRegPath, 0, in ViewTree_LoadTree()
396 if (RegQueryValueExW(hkeyTarget, pEntry->szValueName, NULL, NULL, in ViewTree_LoadTree()
399 pEntry->bGrayed = FALSE; in ViewTree_LoadTree()
403 pEntry->bChecked = (Value == pEntry->dwCheckedValue); in ViewTree_LoadTree()
410 if (!pEntry->bGrayed) in ViewTree_LoadTree()
411 pEntry->bGrayed = Value; in ViewTree_LoadTree()
413 BOOL bIsGroup = (pEntry->dwType == AETYPE_GROUP); in ViewTree_LoadTree()
414 dwParentID = pEntry->dwID; in ViewTree_LoadTree()
659 VIEWTREE_ENTRY *pEntry = ViewTree_GetItem(Item.lParam); in ViewDlg_ToggleCheckItem() local
660 if (pEntry == NULL) in ViewDlg_ToggleCheckItem()
662 if (pEntry->bGrayed) in ViewDlg_ToggleCheckItem()
667 switch (pEntry->dwType) in ViewDlg_ToggleCheckItem()
670 pEntry->bChecked = !pEntry->bChecked; in ViewDlg_ToggleCheckItem()
678 if (pEntry->dwParentID == pEntry2->dwParentID) in ViewDlg_ToggleCheckItem()
688 pEntry->bChecked = TRUE; in ViewDlg_ToggleCheckItem()
694 Item.iImage = Item.iSelectedImage = ViewTree_GetImage(pEntry); in ViewDlg_ToggleCheckItem()
756 VIEWTREE_ENTRY *pEntry = ViewTree_GetItem(lParam); in ViewDlg_OnTreeCustomDraw() local
757 if (pEntry && pEntry->bGrayed) // disabled in ViewDlg_OnTreeCustomDraw()
781 VIEWTREE_ENTRY *pEntry = &s_ViewTreeEntries[i]; in ViewDlg_RestoreDefaults() local
782 if (pEntry->dwType == AETYPE_GROUP) in ViewDlg_RestoreDefaults()
787 if (RegOpenKeyExW(HKEY(pEntry->hkeyRoot), pEntry->szRegPath, in ViewDlg_RestoreDefaults()
792 RegSetValueExW(hKey, pEntry->szValueName, 0, REG_DWORD, in ViewDlg_RestoreDefaults()
793 LPBYTE(&pEntry->dwDefaultValue), sizeof(DWORD)); in ViewDlg_RestoreDefaults()
797 pEntry->bChecked = (pEntry->dwCheckedValue == pEntry->dwDefaultValue); in ViewDlg_RestoreDefaults()
803 Item.hItem = pEntry->hItem; in ViewDlg_RestoreDefaults()
804 Item.iImage = Item.iSelectedImage = ViewTree_GetImage(pEntry); in ViewDlg_RestoreDefaults()
816 const VIEWTREE_ENTRY *pEntry = &s_ViewTreeEntries[i]; in ScanAdvancedSettings() local
817 if (pEntry->dwType == AETYPE_GROUP || pEntry->bGrayed) in ScanAdvancedSettings()
820 BOOL bChecked = pEntry->bChecked; in ScanAdvancedSettings()
823 if (lstrcmpiW(pEntry->szKeyName, L"SuperHidden") == 0) in ScanAdvancedSettings()
829 if (lstrcmpiW(pEntry->szKeyName, L"DesktopProcess") == 0) in ScanAdvancedSettings()
835 if (lstrcmpiW(pEntry->szKeyName, L"SHOWALL") == 0) in ScanAdvancedSettings()
841 if (lstrcmpiW(pEntry->szKeyName, L"HideFileExt") == 0) in ScanAdvancedSettings()
847 if (lstrcmpiW(pEntry->szKeyName, L"ShowCompColor") == 0) in ScanAdvancedSettings()
853 if (lstrcmpiW(pEntry->szKeyName, L"ShowInfoTip") == 0) in ScanAdvancedSettings()
895 VIEWTREE_ENTRY *pEntry = &s_ViewTreeEntries[i]; in ViewDlg_Apply() local
896 if (pEntry->dwType == AETYPE_GROUP || pEntry->bGrayed) in ViewDlg_Apply()
901 if (RegOpenKeyExW(HKEY(pEntry->hkeyRoot), pEntry->szRegPath, 0, in ViewDlg_Apply()
909 if (pEntry->bChecked) in ViewDlg_Apply()
911 dwValue = pEntry->dwCheckedValue; in ViewDlg_Apply()
915 if (pEntry->bHasUncheckedValue) in ViewDlg_Apply()
917 dwValue = pEntry->dwUncheckedValue; in ViewDlg_Apply()
929 RegSetValueExW(hkeyTarget, pEntry->szValueName, 0, REG_DWORD, in ViewDlg_Apply()