mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[REGEDIT] Use InitCommonControlsEx instead of InitCommonControls (#3686)
NOTE: Windows sets 0xFFFF to icce.dwICC but we use better value.
This commit is contained in:
parent
b0ebf68d98
commit
949e3a9cec
1 changed files with 5 additions and 3 deletions
|
@ -57,7 +57,7 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
|
|||
{
|
||||
BOOL AclUiAvailable;
|
||||
HMENU hEditMenu;
|
||||
|
||||
INITCOMMONCONTROLSEX icce;
|
||||
WNDCLASSEXW wcFrame;
|
||||
WNDCLASSEXW wcChild;
|
||||
ATOM hFrameWndClass;
|
||||
|
@ -97,8 +97,10 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
|
|||
hPopupMenus = LoadMenuW(hInstance, MAKEINTRESOURCEW(IDR_POPUP_MENUS));
|
||||
|
||||
/* Initialize the Windows Common Controls DLL */
|
||||
// TODO: Replace this call by InitCommonControlsEx(_something_)
|
||||
InitCommonControls();
|
||||
/* NOTE: Windows sets 0xFFFF to icce.dwICC but we use better value. */
|
||||
icce.dwSize = sizeof(icce);
|
||||
icce.dwICC = ICC_WIN95_CLASSES | ICC_STANDARD_CLASSES | ICC_USEREX_CLASSES;
|
||||
InitCommonControlsEx(&icce);
|
||||
|
||||
hEditMenu = GetSubMenu(hMenuFrame, 1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue