mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 20:18:22 +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;
|
BOOL AclUiAvailable;
|
||||||
HMENU hEditMenu;
|
HMENU hEditMenu;
|
||||||
|
INITCOMMONCONTROLSEX icce;
|
||||||
WNDCLASSEXW wcFrame;
|
WNDCLASSEXW wcFrame;
|
||||||
WNDCLASSEXW wcChild;
|
WNDCLASSEXW wcChild;
|
||||||
ATOM hFrameWndClass;
|
ATOM hFrameWndClass;
|
||||||
|
@ -97,8 +97,10 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
|
||||||
hPopupMenus = LoadMenuW(hInstance, MAKEINTRESOURCEW(IDR_POPUP_MENUS));
|
hPopupMenus = LoadMenuW(hInstance, MAKEINTRESOURCEW(IDR_POPUP_MENUS));
|
||||||
|
|
||||||
/* Initialize the Windows Common Controls DLL */
|
/* Initialize the Windows Common Controls DLL */
|
||||||
// TODO: Replace this call by InitCommonControlsEx(_something_)
|
/* NOTE: Windows sets 0xFFFF to icce.dwICC but we use better value. */
|
||||||
InitCommonControls();
|
icce.dwSize = sizeof(icce);
|
||||||
|
icce.dwICC = ICC_WIN95_CLASSES | ICC_STANDARD_CLASSES | ICC_USEREX_CLASSES;
|
||||||
|
InitCommonControlsEx(&icce);
|
||||||
|
|
||||||
hEditMenu = GetSubMenu(hMenuFrame, 1);
|
hEditMenu = GetSubMenu(hMenuFrame, 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue