ReactOS 0.4.15-dev-8434-g155a7c7
childwnd.c File Reference
#include "regedit.h"
#include <shldisp.h>
#include <shlguid.h>
Include dependency graph for childwnd.c:

Go to the source code of this file.

Classes

struct  DummyEnumStringsVtbl
 
struct  DummyEnumStrings
 

Macros

#define MIN(a, b)   ((a < b) ? (a) : (b))
 

Functions

static HRESULT WINAPI DummyEnumStringsQI (LPVOID This, REFIID riid, void **ppv)
 
static ULONG WINAPI DummyEnumStringsAddRefRelease (LPVOID This)
 
static HRESULT WINAPI DummyEnumStringsNext (LPVOID This, ULONG celt, LPWSTR *parr, ULONG *pceltFetched)
 
static HRESULT WINAPI DummyEnumStringsSkip (LPVOID This, ULONG celt)
 
static HRESULT WINAPI DummyEnumStringsReset (LPVOID This)
 
static HRESULT WINAPI DummyEnumStringsClone (LPVOID This, void **ppv)
 
LPCWSTR get_root_key_name (HKEY hRootKey)
 
static INT ClampSplitBarX (HWND hWnd, INT x)
 
void ResizeWnd (int cx, int cy)
 
static void draw_splitbar (HWND hWnd, int x)
 
static void finish_splitbar (HWND hWnd, int x)
 
static void SuggestKeys (HKEY hRootKey, LPCWSTR pszKeyPath, LPWSTR pszSuggestions, size_t iSuggestionsLength)
 
LRESULT CALLBACK AddressBarProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
VOID UpdateAddress (HTREEITEM hItem, HKEY hRootKey, LPCWSTR pszPath, BOOL bSelectNone)
 
LRESULT CALLBACK ChildWndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
 

Variables

ChildWndg_pChildWnd
 
static int last_split
 
HBITMAP SizingPattern = 0
 
HBRUSH SizingBrush = 0
 
WCHAR Suggestions [256]
 
struct DummyEnumStringsVtbl g_DummyEnumStringsVtbl
 
struct DummyEnumStrings g_DummyEnumStrings
 

Macro Definition Documentation

◆ MIN

#define MIN (   a,
  b 
)    ((a < b) ? (a) : (b))

Definition at line 208 of file childwnd.c.

Function Documentation

◆ AddressBarProc()

LRESULT CALLBACK AddressBarProc ( HWND  hwnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 295 of file childwnd.c.

296{
297 WNDPROC oldwndproc;
298 static WCHAR s_szNode[256];
300
301 switch (uMsg)
302 {
303 case WM_KEYUP:
304 if (wParam == VK_RETURN)
305 {
306 GetWindowTextW(hwnd, s_szNode, ARRAY_SIZE(s_szNode));
307 SelectNode(g_pChildWnd->hTreeWnd, s_szNode);
308 }
309 break;
310 default:
311 break;
312 }
313 return CallWindowProcW(oldwndproc, hwnd, uMsg, wParam, lParam);
314}
ChildWnd * g_pChildWnd
Definition: childwnd.c:26
BOOL SelectNode(HWND hwndTV, LPCWSTR keyPath)
Definition: treeview.c:787
#define ARRAY_SIZE(A)
Definition: main.h:33
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
HWND hTreeWnd
Definition: main.h:63
#define GetWindowLongPtr
Definition: treelist.c:73
#define GWLP_USERDATA
Definition: treelist.c:63
int WINAPI GetWindowTextW(HWND hWnd, LPWSTR lpString, int nMaxCount)
Definition: window.c:1384
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
#define WM_KEYUP
Definition: winuser.h:1716
#define VK_RETURN
Definition: winuser.h:2201
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
Definition: winuser.h:2906
LRESULT WINAPI CallWindowProcW(_In_ WNDPROC, _In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by ChildWndProc().

◆ ChildWndProc()

LRESULT CALLBACK ChildWndProc ( HWND  hWnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 387 of file childwnd.c.

388{
389 BOOL Result;
390 RECT rc;
391
392 switch (message)
393 {
394 case WM_CREATE:
395 {
396 WNDPROC oldproc;
397 HFONT hFont;
399 DWORD style;
400 IAutoComplete *pAutoComplete;
401
402 /* Load "My Computer" string */
404
406 if (!g_pChildWnd) return 0;
407
409 g_pChildWnd->nSplitPos = 190;
411
415 hWnd, (HMENU)0, hInst, 0);
416
419 g_pChildWnd->hAddressBtnWnd = CreateWindowExW(0, L"Button", L"\x00BB", style,
421 hWnd, (HMENU)0, hInst, 0);
423 IMAGE_ICON, 12, 12, 0);
425
426 if (SUCCEEDED(CoCreateInstance(&CLSID_AutoComplete, NULL, CLSCTX_INPROC_SERVER, &IID_IAutoComplete, (void**)&pAutoComplete)))
427 {
428 IAutoComplete_Init(pAutoComplete, g_pChildWnd->hAddressBarWnd, (IUnknown*)&g_DummyEnumStrings, NULL, NULL);
429 IAutoComplete_Release(pAutoComplete);
430 }
431
432 GetClientRect(hWnd, &rc);
436
437 /* set the address bar and button font */
439 {
443 (WPARAM)hFont,
444 0);
447 (WPARAM)hFont,
448 0);
449 }
450 /* Subclass the AddressBar */
454 break;
455 }
456 case WM_COMMAND:
457 if(HIWORD(wParam) == BN_CLICKED)
458 {
460 }
461 break; //goto def;
462 case WM_SETCURSOR:
463 if (LOWORD(lParam) == HTCLIENT)
464 {
465 POINT pt;
469 {
471 return TRUE;
472 }
473 }
474 goto def;
475
476 case WM_DESTROY:
484 break;
485
486 case WM_LBUTTONDOWN:
487 {
488 INT x = (SHORT)LOWORD(lParam);
489 if (x >= g_pChildWnd->nSplitPos - SPLIT_WIDTH / 2 &&
490 x < g_pChildWnd->nSplitPos + SPLIT_WIDTH / 2 + 1)
491 {
494 last_split = x;
496 }
497 break;
498 }
499
500 case WM_LBUTTONUP:
501 case WM_RBUTTONDOWN:
502 if (GetCapture() == hWnd)
503 {
504 INT x = (SHORT)LOWORD(lParam);
507 }
508 break;
509
511 if (GetCapture() == hWnd && last_split >= 0)
513 break;
514
515 case WM_KEYDOWN:
516 if (wParam == VK_ESCAPE)
517 if (GetCapture() == hWnd)
518 {
519 RECT rt;
521 GetClientRect(hWnd, &rt);
522 ResizeWnd(rt.right, rt.bottom);
523 last_split = -1;
526 }
527 break;
528
529 case WM_MOUSEMOVE:
530 if (GetCapture() == hWnd)
531 {
532 INT x = (SHORT)LOWORD(lParam);
534 if (last_split != x)
535 {
537 last_split = x;
539 }
540 }
541 break;
542
543 case WM_SETFOCUS:
544 if (g_pChildWnd != NULL)
545 {
547 }
548 break;
549
550 case WM_NOTIFY:
551 if (g_pChildWnd == NULL) break;
552
553 if (((LPNMHDR)lParam)->idFrom == TREE_WINDOW)
554 {
556 {
557 goto def;
558 }
559
560 return Result;
561 }
562 else
563 {
564 if (((LPNMHDR)lParam)->idFrom == LIST_WINDOW)
565 {
567 {
568 goto def;
569 }
570
571 return Result;
572 }
573 else
574 {
575 goto def;
576 }
577 }
578 break;
579
580 case WM_CONTEXTMENU:
581 {
582 POINT pt;
584 {
585 int i, cnt;
586 BOOL IsDefault;
587 pt.x = (short) LOWORD(lParam);
588 pt.y = (short) HIWORD(lParam);
591 if (pt.x == -1 && pt.y == -1)
592 {
593 RECT rc;
594 if (i != -1)
595 {
596 rc.left = LVIR_BOUNDS;
598 pt.x = rc.left + 8;
599 pt.y = rc.top + 8;
600 }
601 else
602 pt.x = pt.y = 0;
604 }
605 if(i == -1)
606 {
608 }
609 else
610 {
613 IsDefault = IsDefaultValue(g_pChildWnd->hListWnd, i);
614 if(cnt == 1)
616 else
620
622 }
623 }
624 else if ((HWND)wParam == g_pChildWnd->hTreeWnd)
625 {
626 TVHITTESTINFO hti;
627 HMENU hContextMenu;
629 MENUITEMINFOW mii;
630 WCHAR resource[256];
631 WCHAR buffer[256];
632 LPWSTR s;
633 LPCWSTR keyPath;
634 HKEY hRootKey;
635 int iLastPos;
636 WORD wID;
637 BOOL isRoot;
638
639 pt.x = (short) LOWORD(lParam);
640 pt.y = (short) HIWORD(lParam);
641
642 if (pt.x == -1 && pt.y == -1)
643 {
644 RECT rc;
646 if (hti.hItem != NULL)
647 {
649 pt.x = rc.left + 8;
650 pt.y = rc.top + 8;
652 hti.flags = TVHT_ONITEM;
653 }
654 else
655 hti.flags = 0;
656 }
657 else
658 {
659 hti.pt.x = pt.x;
660 hti.pt.y = pt.y;
663 }
664
665 if (hti.flags & TVHT_ONITEM)
666 {
668
669 isRoot = (TreeView_GetParent(g_pChildWnd->hTreeWnd, hti.hItem) == NULL);
670 hContextMenu = GetSubMenu(hPopupMenus, isRoot ? PM_ROOTITEM : PM_TREECONTEXT);
671
672 memset(&item, 0, sizeof(item));
674 item.hItem = hti.hItem;
676
677 /* Set the Expand/Collapse menu item appropriately */
679 memset(&mii, 0, sizeof(mii));
680 mii.cbSize = sizeof(mii);
682 mii.fState = (item.cChildren > 0) ? MFS_DEFAULT : MFS_GRAYED;
684 mii.dwTypeData = (LPWSTR) buffer;
685 SetMenuItemInfo(hContextMenu, 0, TRUE, &mii);
686
687 if (isRoot == FALSE)
688 {
689 /* Remove any existing suggestions */
690 memset(&mii, 0, sizeof(mii));
691 mii.cbSize = sizeof(mii);
692 mii.fMask = MIIM_ID;
693 GetMenuItemInfo(hContextMenu, GetMenuItemCount(hContextMenu) - 1, TRUE, &mii);
694 if ((mii.wID >= ID_TREE_SUGGESTION_MIN) && (mii.wID <= ID_TREE_SUGGESTION_MAX))
695 {
696 do
697 {
698 iLastPos = GetMenuItemCount(hContextMenu) - 1;
699 GetMenuItemInfo(hContextMenu, iLastPos, TRUE, &mii);
700 RemoveMenu(hContextMenu, iLastPos, MF_BYPOSITION);
701 }
702 while((mii.wID >= ID_TREE_SUGGESTION_MIN) && (mii.wID <= ID_TREE_SUGGESTION_MAX));
703 }
704
705 /* Come up with suggestions */
706 keyPath = GetItemPath(g_pChildWnd->hTreeWnd, NULL, &hRootKey);
707 SuggestKeys(hRootKey, keyPath, Suggestions, ARRAY_SIZE(Suggestions));
708 if (Suggestions[0])
709 {
710 AppendMenu(hContextMenu, MF_SEPARATOR, 0, NULL);
711
713
714 s = Suggestions;
716 while(*s && (wID <= ID_TREE_SUGGESTION_MAX))
717 {
718 WCHAR *path = s, buf[MAX_PATH];
719 if (hRootKey == HKEY_CURRENT_USER || hRootKey == HKEY_LOCAL_MACHINE)
720 {
721 // Windows 10 only displays the root name
723 if (next > s)
724 lstrcpynW(path = buf, s, min(next - s, _countof(buf)));
725 }
727
728 memset(&mii, 0, sizeof(mii));
729 mii.cbSize = sizeof(mii);
730 mii.fMask = MIIM_STRING | MIIM_ID;
731 mii.wID = wID++;
732 mii.dwTypeData = buffer;
733 InsertMenuItem(hContextMenu, GetMenuItemCount(hContextMenu), TRUE, &mii);
734
735 s += wcslen(s) + 1;
736 }
737 }
738 }
739 TrackPopupMenu(hContextMenu, TPM_RIGHTBUTTON, pt.x, pt.y, 0, hFrameWnd, NULL);
740 }
741 }
742 break;
743 }
744
745 case WM_SIZE:
747 {
749 }
750 break;
751
752 default:
753def:
755 }
756 return 0;
757}
Arabic default style
Definition: afstyles.h:94
HWND hWnd
Definition: settings.c:17
BOOL CreateListView(PMAIN_WND_INFO Info)
Definition: listview.c:355
static void finish_splitbar(HWND hWnd, int x)
Definition: childwnd.c:190
static int last_split
Definition: childwnd.c:27
static void draw_splitbar(HWND hWnd, int x)
Definition: childwnd.c:160
LRESULT CALLBACK AddressBarProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: childwnd.c:295
struct DummyEnumStrings g_DummyEnumStrings
static INT ClampSplitBarX(HWND hWnd, INT x)
Definition: childwnd.c:101
WCHAR Suggestions[256]
Definition: childwnd.c:30
static void SuggestKeys(HKEY hRootKey, LPCWSTR pszKeyPath, LPWSTR pszSuggestions, size_t iSuggestionsLength)
Definition: childwnd.c:210
void ResizeWnd(int cx, int cy)
Definition: childwnd.c:108
BOOL IsDefaultValue(HWND hwndLV, int i)
Definition: listview.c:108
BOOL ListWndNotifyProc(HWND hWnd, WPARAM wParam, LPARAM lParam, BOOL *Result)
Definition: listview.c:544
void DestroyListView(HWND hwndLV)
Definition: listview.c:654
HMENU hPopupMenus
Definition: main.c:38
HWND hFrameWnd
Definition: main.c:35
void DestroyMainMenu()
Definition: main.c:164
HFONT hFont
Definition: main.c:53
HWND CreateTreeView(HWND hwndParent, LPWSTR pHostName, HMENU id)
Definition: treeview.c:754
#define PM_TREECONTEXT
Definition: main.h:37
#define LIST_WINDOW
Definition: main.h:28
BOOL TreeWndNotifyProc(HWND hWnd, WPARAM wParam, LPARAM lParam, BOOL *Result)
Definition: treeview.c:643
#define TREE_WINDOW
Definition: main.h:27
#define PM_NEW
Definition: main.h:36
LPCWSTR GetItemPath(HWND hwndTV, HTREEITEM hItem, HKEY *phRootKey)
Definition: treeview.c:88
#define PM_ROOTITEM
Definition: main.h:38
#define PM_MODIFYVALUE
Definition: main.h:35
#define ID_TREE_SUGGESTION_MIN
Definition: resource.h:156
#define IDS_MY_COMPUTER
Definition: resource.h:129
#define IDS_COLLAPSE
Definition: resource.h:191
#define IDI_ARROW
Definition: resource.h:37
#define ID_EDIT_MODIFY
Definition: resource.h:62
#define ID_TREE_EXPANDBRANCH
Definition: resource.h:93
#define ID_TREE_COLLAPSEBRANCH
Definition: resource.h:95
#define IDS_GOTO_SUGGESTED_KEY
Definition: resource.h:194
#define ID_EDIT_MODIFY_BIN
Definition: resource.h:122
#define IDS_EXPAND
Definition: resource.h:190
#define ID_TREE_SUGGESTION_MAX
Definition: resource.h:157
#define ID_EDIT_RENAME
Definition: resource.h:58
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define GetProcessHeap()
Definition: compat.h:736
#define HeapAlloc
Definition: compat.h:733
#define MAX_PATH
Definition: compat.h:34
#define HeapFree(x, y, z)
Definition: compat.h:735
#define HEAP_ZERO_MEMORY
Definition: compat.h:134
#define lstrcpynW
Definition: compat.h:738
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3325
LPWSTR WINAPI PathFindNextComponentW(LPCWSTR lpszPath)
Definition: path.c:2579
unsigned short(__cdecl typeof(TIFFCurrentDirectory))(struct tiff *)
Definition: typeof.h:94
#define pt(x, y)
Definition: drawing.c:79
HINSTANCE hInst
Definition: dxdiag.c:13
#define SPLIT_WIDTH
Definition: eventvwr.c:45
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLdouble s
Definition: gl.h:2039
GLuint buffer
Definition: glext.h:5915
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
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
Definition: glfuncs.h:248
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
#define SUCCEEDED(hr)
Definition: intsafe.h:50
int _snwprintf(wchar_t *buffer, size_t count, const wchar_t *format,...)
static HICON
Definition: imagelist.c:84
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:63
static ATOM item
Definition: dde.c:856
#define min(a, b)
Definition: monoChain.cc:55
#define L(x)
Definition: ntvdm.h:50
#define LOWORD(l)
Definition: pedump.c:82
#define WS_CHILD
Definition: pedump.c:617
#define WS_TABSTOP
Definition: pedump.c:634
#define WS_VISIBLE
Definition: pedump.c:620
short SHORT
Definition: pedump.c:59
#define BS_DEFPUSHBUTTON
Definition: pedump.c:652
static VOID DestroyTreeView(HWND hTreeView)
#define TreeView_SelectItem(hwnd, hitem)
Definition: commctrl.h:3481
#define TVHT_ONITEM
Definition: commctrl.h:3527
#define LVNI_SELECTED
Definition: commctrl.h:2424
#define LVNI_FOCUSED
Definition: commctrl.h:2423
#define TreeView_GetParent(hwnd, hitem)
Definition: commctrl.h:3469
#define ListView_GetNextItem(hwnd, i, flags)
Definition: commctrl.h:2434
#define TreeView_GetSelection(hwnd)
Definition: commctrl.h:3473
#define TreeView_GetItem(hwnd, pitem)
Definition: commctrl.h:3490
#define TreeView_GetItemRect(hwnd, hitem, prc, code)
Definition: commctrl.h:3429
#define ListView_GetSelectedCount(hwndLV)
Definition: commctrl.h:2709
#define LVM_GETITEMRECT
Definition: commctrl.h:2477
#define TVIS_EXPANDED
Definition: commctrl.h:3284
#define TVIF_CHILDREN
Definition: commctrl.h:3272
#define TreeView_HitTest(hwnd, lpht)
Definition: commctrl.h:3513
#define TVIF_STATE
Definition: commctrl.h:3269
#define LVIR_BOUNDS
Definition: commctrl.h:2472
static unsigned __int64 next
Definition: rand_nt.c:6
#define WM_CONTEXTMENU
Definition: richedit.h:64
#define WM_NOTIFY
Definition: richedit.h:61
_CRTIMP wchar_t *__cdecl wcsncpy(wchar_t *_Dest, const wchar_t *_Source, size_t _Count)
#define memset(x, y, z)
Definition: compat.h:39
#define _countof(array)
Definition: sndvol32.h:70
Definition: main.h:61
int nSplitPos
Definition: main.h:69
WCHAR szPath[MAX_PATH]
Definition: main.h:71
HWND hAddressBtnWnd
Definition: main.h:66
int nFocusPanel
Definition: main.h:68
HICON hArrowIcon
Definition: main.h:67
HWND hListWnd
Definition: main.h:64
HWND hAddressBarWnd
Definition: main.h:65
HWND hWnd
Definition: main.h:62
Definition: tftpd.h:60
LPWSTR dwTypeData
Definition: winuser.h:3269
long y
Definition: polytest.cpp:48
long x
Definition: polytest.cpp:48
LONG right
Definition: windef.h:308
LONG bottom
Definition: windef.h:309
LONG top
Definition: windef.h:307
LONG left
Definition: windef.h:306
HTREEITEM hItem
Definition: commctrl.h:3521
#define SetWindowLongPtr
Definition: treelist.c:70
#define GWLP_WNDPROC
Definition: treelist.c:66
uint32_t DWORD_PTR
Definition: typedefs.h:65
int32_t INT
Definition: typedefs.h:58
#define HIWORD(l)
Definition: typedefs.h:247
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR WPARAM
Definition: windef.h:207
HGDIOBJ WINAPI GetStockObject(_In_ int)
#define DEFAULT_GUI_FONT
Definition: wingdi.h:909
#define HKEY_LOCAL_MACHINE
Definition: winreg.h:12
#define HKEY_CURRENT_USER
Definition: winreg.h:11
HWND WINAPI SetCapture(_In_ HWND hWnd)
#define MF_BYCOMMAND
Definition: winuser.h:202
#define MIIM_STRING
Definition: winuser.h:727
#define MIIM_ID
Definition: winuser.h:722
BOOL WINAPI ReleaseCapture(void)
Definition: message.c:2890
BOOL WINAPI SetMenuDefaultItem(_In_ HMENU, _In_ UINT, _In_ UINT)
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
int WINAPI GetMenuItemCount(_In_opt_ HMENU)
BOOL WINAPI PostMessageW(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define IMAGE_ICON
Definition: winuser.h:212
#define AppendMenu
Definition: winuser.h:5740
#define WM_CAPTURECHANGED
Definition: winuser.h:1808
#define TPM_RIGHTBUTTON
Definition: winuser.h:2380
#define WM_CREATE
Definition: winuser.h:1608
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
#define BS_ICON
Definition: winuser.h:264
#define WM_SIZE
Definition: winuser.h:1611
#define WM_COMMAND
Definition: winuser.h:1740
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE hInst, _In_ LPCWSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad)
Definition: cursoricon.c:2247
#define IDC_ARROW
Definition: winuser.h:687
BOOL WINAPI GetCursorPos(_Out_ LPPOINT)
Definition: cursoricon.c:2714
#define InsertMenuItem
Definition: winuser.h:5813
#define WM_SETFOCUS
Definition: winuser.h:1613
#define SetMenuItemInfo
Definition: winuser.h:5859
HCURSOR WINAPI SetCursor(_In_opt_ HCURSOR)
#define WM_MOUSEMOVE
Definition: winuser.h:1775
HWND WINAPI GetCapture(void)
Definition: message.c:2881
#define SIZE_MINIMIZED
Definition: winuser.h:2506
#define WM_LBUTTONDOWN
Definition: winuser.h:1776
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2149
BOOL WINAPI ClientToScreen(_In_ HWND, _Inout_ LPPOINT)
#define MIIM_STATE
Definition: winuser.h:721
#define MFS_DEFAULT
Definition: winuser.h:748
#define BM_SETIMAGE
Definition: winuser.h:1922
#define WM_RBUTTONDOWN
Definition: winuser.h:1779
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)
HWND WINAPI SetFocus(_In_opt_ HWND)
#define MF_ENABLED
Definition: winuser.h:128
#define MFS_GRAYED
Definition: winuser.h:751
#define MF_SEPARATOR
Definition: winuser.h:137
#define BS_FLAT
Definition: winuser.h:280
#define WM_SETFONT
Definition: winuser.h:1650
HWND WINAPI CreateWindowExW(_In_ DWORD dwExStyle, _In_opt_ LPCWSTR lpClassName, _In_opt_ LPCWSTR lpWindowName, _In_ DWORD dwStyle, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, _In_opt_ HWND hWndParent, _In_opt_ HMENU hMenu, _In_opt_ HINSTANCE hInstance, _In_opt_ LPVOID lpParam)
#define MF_BYPOSITION
Definition: winuser.h:203
BOOL WINAPI RemoveMenu(_In_ HMENU, _In_ UINT, _In_ UINT)
#define HTCLIENT
Definition: winuser.h:2475
#define BS_VCENTER
Definition: winuser.h:279
#define WM_LBUTTONUP
Definition: winuser.h:1777
#define CW_USEDEFAULT
Definition: winuser.h:225
#define WM_SETCURSOR
Definition: winuser.h:1636
#define BN_CLICKED
Definition: winuser.h:1925
BOOL WINAPI TrackPopupMenu(_In_ HMENU, _In_ UINT, _In_ int, _In_ int, _Reserved_ int, _In_ HWND, _Reserved_ LPCRECT)
#define WM_DESTROY
Definition: winuser.h:1609
#define WS_EX_CLIENTEDGE
Definition: winuser.h:384
#define WM_KEYDOWN
Definition: winuser.h:1715
#define BS_CENTER
Definition: winuser.h:260
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
#define IDC_SIZEWE
Definition: winuser.h:694
#define GetMenuItemInfo
Definition: winuser.h:5797
#define VK_ESCAPE
Definition: winuser.h:2214
BOOL WINAPI EnableMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI DestroyIcon(_In_ HICON)
Definition: cursoricon.c:2097
#define MF_GRAYED
Definition: winuser.h:129
BOOL WINAPI ScreenToClient(_In_ HWND, _Inout_ LPPOINT)
#define MF_DISABLED
Definition: winuser.h:130
_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
Definition: wsk.h:409
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185

Referenced by InitInstance().

◆ ClampSplitBarX()

static INT ClampSplitBarX ( HWND  hWnd,
INT  x 
)
static

Definition at line 101 of file childwnd.c.

102{
103 RECT rc;
104 GetClientRect(hWnd, &rc);
105 return min(max(x, SPLIT_MIN), rc.right - SPLIT_MIN);
106}
#define SPLIT_MIN
Definition: main.h:31
#define max(a, b)
Definition: svc.c:63

Referenced by ChildWndProc(), and ResizeWnd().

◆ draw_splitbar()

static void draw_splitbar ( HWND  hWnd,
int  x 
)
static

Definition at line 160 of file childwnd.c.

161{
162 RECT rt;
163 HGDIOBJ OldObj;
164 HDC hdc = GetDC(hWnd);
165
166 if(!SizingPattern)
167 {
168 const DWORD Pattern[4] = {0x5555AAAA, 0x5555AAAA, 0x5555AAAA, 0x5555AAAA};
169 SizingPattern = CreateBitmap(8, 8, 1, 1, Pattern);
170 }
171 if(!SizingBrush)
172 {
174 }
175 GetClientRect(hWnd, &rt);
176 rt.left = x - SPLIT_WIDTH/2;
177 rt.right = x + SPLIT_WIDTH/2+1;
178 OldObj = SelectObject(hdc, SizingBrush);
179 PatBlt(hdc, rt.left, rt.top, rt.right - rt.left, rt.bottom - rt.top, PATINVERT);
180 SelectObject(hdc, OldObj);
182}
HBRUSH SizingBrush
Definition: childwnd.c:29
HBITMAP SizingPattern
Definition: childwnd.c:28
HDC hdc
Definition: main.c:9
static HDC
Definition: imagelist.c:92
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)
#define PATINVERT
Definition: wingdi.h:328
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
Definition: dc.c:1546
BOOL WINAPI PatBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD)
HBRUSH WINAPI CreatePatternBrush(_In_ HBITMAP)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HDC WINAPI GetDC(_In_opt_ HWND)

Referenced by ChildWndProc(), and finish_splitbar().

◆ DummyEnumStringsAddRefRelease()

static ULONG WINAPI DummyEnumStringsAddRefRelease ( LPVOID  This)
static

Definition at line 44 of file childwnd.c.

45{
46 return 1;
47}

◆ DummyEnumStringsClone()

static HRESULT WINAPI DummyEnumStringsClone ( LPVOID  This,
void **  ppv 
)
static

Definition at line 66 of file childwnd.c.

67{
68 return E_NOTIMPL;
69}
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ DummyEnumStringsNext()

static HRESULT WINAPI DummyEnumStringsNext ( LPVOID  This,
ULONG  celt,
LPWSTR parr,
ULONG pceltFetched 
)
static

Definition at line 49 of file childwnd.c.

50{
51 if (pceltFetched)
52 *pceltFetched = 0;
53 return S_FALSE;
54}
#define S_FALSE
Definition: winerror.h:2357

◆ DummyEnumStringsQI()

static HRESULT WINAPI DummyEnumStringsQI ( LPVOID  This,
REFIID  riid,
void **  ppv 
)
static

Definition at line 32 of file childwnd.c.

33{
34 if (ppv)
35 *ppv = NULL;
37 {
38 *ppv = This;
39 return S_OK;
40 }
41 return E_NOINTERFACE;
42}
const GUID IID_IUnknown
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define S_OK
Definition: intsafe.h:52
const GUID IID_IEnumString
#define IsEqualIID(riid1, riid2)
Definition: guiddef.h:95
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ DummyEnumStringsReset()

static HRESULT WINAPI DummyEnumStringsReset ( LPVOID  This)
static

Definition at line 61 of file childwnd.c.

62{
63 return S_OK;
64}

◆ DummyEnumStringsSkip()

static HRESULT WINAPI DummyEnumStringsSkip ( LPVOID  This,
ULONG  celt 
)
static

Definition at line 56 of file childwnd.c.

57{
58 return S_OK;
59}

◆ finish_splitbar()

static void finish_splitbar ( HWND  hWnd,
int  x 
)
static

Definition at line 190 of file childwnd.c.

191{
192 RECT rt;
193
195 last_split = -1;
196 GetClientRect(hWnd, &rt);
198 ResizeWnd(rt.right, rt.bottom);
199 InvalidateRect(hWnd, &rt, FALSE); // HACK: See CORE-19576
201}
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)

Referenced by ChildWndProc().

◆ get_root_key_name()

LPCWSTR get_root_key_name ( HKEY  hRootKey)

Definition at line 89 of file childwnd.c.

90{
91 if (hRootKey == HKEY_CLASSES_ROOT) return L"HKEY_CLASSES_ROOT";
92 if (hRootKey == HKEY_CURRENT_USER) return L"HKEY_CURRENT_USER";
93 if (hRootKey == HKEY_LOCAL_MACHINE) return L"HKEY_LOCAL_MACHINE";
94 if (hRootKey == HKEY_USERS) return L"HKEY_USERS";
95 if (hRootKey == HKEY_CURRENT_CONFIG) return L"HKEY_CURRENT_CONFIG";
96 if (hRootKey == HKEY_DYN_DATA) return L"HKEY_DYN_DATA";
97
98 return L"UNKNOWN HKEY, PLEASE REPORT";
99}
#define HKEY_CURRENT_CONFIG
Definition: winreg.h:15
#define HKEY_DYN_DATA
Definition: winreg.h:16
#define HKEY_CLASSES_ROOT
Definition: winreg.h:10
#define HKEY_USERS
Definition: winreg.h:13

Referenced by SaveSettings(), and UpdateAddress().

◆ ResizeWnd()

void ResizeWnd ( int  cx,
int  cy 
)

Definition at line 108 of file childwnd.c.

109{
110 HDWP hdwp = BeginDeferWindowPos(4);
111 RECT rt, rs, rb;
112 const int nButtonWidth = 44;
113 const int nButtonHeight = 22;
114 int cyEdge = GetSystemMetrics(SM_CYEDGE);
116 SetRect(&rt, 0, 0, cx, cy);
117 cy = 0;
118 if (hStatusBar != NULL)
119 {
121 cy = rs.bottom - rs.top;
122 }
124
126
128 if (hdwp)
130 rt.left, rt.top,
131 rt.right - rt.left - nButtonWidth, nButtonHeight,
132 uFlags);
133 if (hdwp)
135 rt.right - nButtonWidth, rt.top,
136 nButtonWidth, nButtonHeight,
137 uFlags);
138 if (hdwp)
140 rt.left,
141 rt.top + nButtonHeight + cyEdge,
143 rt.bottom - rt.top - cy - 2 * cyEdge,
144 uFlags);
145 if (hdwp)
147 rt.left + cx,
148 rt.top + nButtonHeight + cyEdge,
149 rt.right - cx,
150 rt.bottom - rt.top - cy - 2 * cyEdge,
151 uFlags);
152 if (hdwp)
153 EndDeferWindowPos(hdwp);
154}
HWND hStatusBar
Definition: main.c:36
UINT uFlags
Definition: api.c:59
unsigned int UINT
Definition: ndis.h:50
_Out_opt_ int _Out_opt_ int * cy
Definition: commctrl.h:586
_Out_opt_ int * cx
Definition: commctrl.h:585
#define SWP_NOACTIVATE
Definition: winuser.h:1242
#define SM_CYEDGE
Definition: winuser.h:1009
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI EndDeferWindowPos(_In_ HDWP)
HDWP WINAPI DeferWindowPos(_In_ HDWP, _In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define SWP_NOZORDER
Definition: winuser.h:1247
int WINAPI GetSystemMetrics(_In_ int)
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)
HDWP WINAPI BeginDeferWindowPos(_In_ int)

Referenced by ChildWndProc(), and finish_splitbar().

◆ SuggestKeys()

static void SuggestKeys ( HKEY  hRootKey,
LPCWSTR  pszKeyPath,
LPWSTR  pszSuggestions,
size_t  iSuggestionsLength 
)
static

Definition at line 210 of file childwnd.c.

212{
213 WCHAR szBuffer[256];
214 WCHAR szLastFound[256];
215 size_t i;
216 HKEY hOtherKey, hSubKey;
217 BOOL bFound;
219
220 memset(pszSuggestions, 0, iSuggestionsLength * sizeof(*pszSuggestions));
221 iSuggestionsLength--;
222
223 /* Are we a root key in HKEY_CLASSES_ROOT? */
224 if ((hRootKey == HKEY_CLASSES_ROOT) && pszKeyPath[0] && !wcschr(pszKeyPath, L'\\'))
225 {
226 do
227 {
228 bFound = FALSE;
229
230 /* Check default key */
231 if (QueryStringValue(hRootKey, pszKeyPath, NULL,
232 szBuffer, ARRAY_SIZE(szBuffer)) == ERROR_SUCCESS)
233 {
234 /* Sanity check this key; it cannot be empty, nor can it be a
235 * loop back */
236 if ((szBuffer[0] != L'\0') && _wcsicmp(szBuffer, pszKeyPath))
237 {
238 if (RegOpenKeyExW(hRootKey, szBuffer, 0, regsam, &hOtherKey) == ERROR_SUCCESS)
239 {
240 lstrcpynW(pszSuggestions, L"HKCR\\", (int) iSuggestionsLength);
241 i = wcslen(pszSuggestions);
242 pszSuggestions += i;
243 iSuggestionsLength -= i;
244
245 lstrcpynW(pszSuggestions, szBuffer, (int) iSuggestionsLength);
246 i = MIN(wcslen(pszSuggestions) + 1, iSuggestionsLength);
247 pszSuggestions += i;
248 iSuggestionsLength -= i;
249 RegCloseKey(hOtherKey);
250
251 bFound = TRUE;
252 StringCbCopyW(szLastFound, sizeof(szLastFound), szBuffer);
253 pszKeyPath = szLastFound;
254 }
255 }
256 }
257 }
258 while(bFound && (iSuggestionsLength > 0));
259
260 /* Check CLSID key */
261 if (RegOpenKeyExW(hRootKey, pszKeyPath, 0, regsam, &hSubKey) == ERROR_SUCCESS)
262 {
263 if (QueryStringValue(hSubKey, L"CLSID", NULL, szBuffer,
264 ARRAY_SIZE(szBuffer)) == ERROR_SUCCESS)
265 {
266 lstrcpynW(pszSuggestions, L"HKCR\\CLSID\\", (int)iSuggestionsLength);
267 i = wcslen(pszSuggestions);
268 pszSuggestions += i;
269 iSuggestionsLength -= i;
270
271 lstrcpynW(pszSuggestions, szBuffer, (int)iSuggestionsLength);
272 i = MIN(wcslen(pszSuggestions) + 1, iSuggestionsLength);
273 pszSuggestions += i;
274 iSuggestionsLength -= i;
275 }
276 RegCloseKey(hSubKey);
277 }
278 }
279 else if ((hRootKey == HKEY_CURRENT_USER || hRootKey == HKEY_LOCAL_MACHINE) && *pszKeyPath)
280 {
281 LPCWSTR rootstr = hRootKey == HKEY_CURRENT_USER ? L"HKLM" : L"HKCU";
282 hOtherKey = hRootKey == HKEY_CURRENT_USER ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER;
283 if (RegOpenKeyExW(hOtherKey, pszKeyPath, 0, regsam, &hSubKey) == ERROR_SUCCESS)
284 {
285 int cch;
286 RegCloseKey(hSubKey);
287 cch = _snwprintf(pszSuggestions, iSuggestionsLength, L"%s\\%s", rootstr, pszKeyPath);
288 if (cch <= 0 || cch > iSuggestionsLength)
289 pszSuggestions[0] = UNICODE_NULL;
290 }
291 }
292}
LONG QueryStringValue(HKEY hKey, LPCTSTR lpSubKey, LPCTSTR lpValueName, LPTSTR pszBuffer, DWORD dwBufferLen)
Definition: settings.c:19
#define MIN(a, b)
Definition: childwnd.c:208
#define RegCloseKey(hKey)
Definition: registry.h:49
#define ERROR_SUCCESS
Definition: deptool.c:10
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
Definition: reg.c:3333
#define wcschr
Definition: compat.h:17
static DWORD DWORD void LPSTR DWORD cch
Definition: str.c:202
#define KEY_QUERY_VALUE
Definition: nt_native.h:1016
#define KEY_ENUMERATE_SUB_KEYS
Definition: nt_native.h:1019
#define UNICODE_NULL
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
STRSAFEAPI StringCbCopyW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszSrc)
Definition: strsafe.h:166
ACCESS_MASK REGSAM
Definition: winreg.h:69

Referenced by ChildWndProc().

◆ UpdateAddress()

VOID UpdateAddress ( HTREEITEM  hItem,
HKEY  hRootKey,
LPCWSTR  pszPath,
BOOL  bSelectNone 
)

Definition at line 317 of file childwnd.c.

318{
319 LPCWSTR keyPath, rootName;
320 LPWSTR fullPath;
321 DWORD cbFullPath;
322
323 /* Wipe the listview, the status bar and the address bar if the root key was selected */
325 {
329 return;
330 }
331
332 if (pszPath == NULL)
333 keyPath = GetItemPath(g_pChildWnd->hTreeWnd, hItem, &hRootKey);
334 else
335 keyPath = pszPath;
336
337 if (keyPath)
338 {
339 RefreshListView(g_pChildWnd->hListWnd, hRootKey, keyPath, bSelectNone);
340 rootName = get_root_key_name(hRootKey);
341 cbFullPath = (wcslen(rootName) + 1 + wcslen(keyPath) + 1) * sizeof(WCHAR);
342 fullPath = malloc(cbFullPath);
343 if (fullPath)
344 {
345 /* set (correct) the address bar text */
346 if (keyPath[0] != UNICODE_NULL)
347 StringCbPrintfW(fullPath, cbFullPath, L"%s%s%s", rootName,
348 ((keyPath[0] == L'\\') ? L"" : L"\\"), keyPath);
349 else
350 StringCbCopyW(fullPath, cbFullPath, rootName);
351
354 free(fullPath);
355
356 /* disable hive manipulation items temporarily (enable only if necessary) */
359 /* compare the strings to see if we should enable/disable the "Load Hive" menus accordingly */
360 if (_wcsicmp(rootName, L"HKEY_LOCAL_MACHINE") == 0 ||
361 _wcsicmp(rootName, L"HKEY_USERS") == 0)
362 {
363 /*
364 * enable the unload menu item if at the root, otherwise
365 * enable the load menu item if there is no slash in
366 * keyPath (ie. immediate child selected)
367 */
368 if (keyPath[0] == UNICODE_NULL)
370 else if (!wcschr(keyPath, L'\\'))
372 }
373 }
374 }
375}
LPCWSTR get_root_key_name(HKEY hRootKey)
Definition: childwnd.c:89
BOOL RefreshListView(HWND hwndLV, HKEY hKey, LPCWSTR keyPath, BOOL bSelectNone)
Definition: listview.c:671
HMENU hMenuFrame
Definition: main.c:37
#define ID_REGISTRY_UNLOADHIVE
Definition: resource.h:105
#define ID_REGISTRY_LOADHIVE
Definition: resource.h:104
#define free
Definition: debug_ros.c:5
#define malloc
Definition: debug_ros.c:4
#define ListView_DeleteAllItems(hwnd)
Definition: commctrl.h:2414
#define SB_SETTEXTW
Definition: commctrl.h:1942
STRSAFEAPI StringCbPrintfW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszFormat,...)
Definition: strsafe.h:557
#define WM_SETTEXT
Definition: winuser.h:1617

Referenced by TreeWndNotifyProc().

Variable Documentation

◆ g_DummyEnumStrings

struct DummyEnumStrings g_DummyEnumStrings
Initial value:
= {
}
struct DummyEnumStringsVtbl g_DummyEnumStringsVtbl

Referenced by ChildWndProc().

◆ g_DummyEnumStringsVtbl

struct DummyEnumStringsVtbl g_DummyEnumStringsVtbl
Initial value:
= {
}
static ULONG WINAPI DummyEnumStringsAddRefRelease(LPVOID This)
Definition: childwnd.c:44
static HRESULT WINAPI DummyEnumStringsQI(LPVOID This, REFIID riid, void **ppv)
Definition: childwnd.c:32
static HRESULT WINAPI DummyEnumStringsNext(LPVOID This, ULONG celt, LPWSTR *parr, ULONG *pceltFetched)
Definition: childwnd.c:49
static HRESULT WINAPI DummyEnumStringsReset(LPVOID This)
Definition: childwnd.c:61
static HRESULT WINAPI DummyEnumStringsClone(LPVOID This, void **ppv)
Definition: childwnd.c:66
static HRESULT WINAPI DummyEnumStringsSkip(LPVOID This, ULONG celt)
Definition: childwnd.c:56

◆ g_pChildWnd

◆ last_split

int last_split
static

Definition at line 27 of file childwnd.c.

Referenced by ChildWndProc(), and finish_splitbar().

◆ SizingBrush

HBRUSH SizingBrush = 0

Definition at line 29 of file childwnd.c.

Referenced by draw_splitbar().

◆ SizingPattern

HBITMAP SizingPattern = 0

Definition at line 28 of file childwnd.c.

Referenced by draw_splitbar().

◆ Suggestions

WCHAR Suggestions[256]

Definition at line 30 of file childwnd.c.

Referenced by _CmdWndProc(), and ChildWndProc().