mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:56:05 +00:00
[OSK] Initialize the common controls
On-Screen Keyboard has a manifest which is used for visual styles. However, the common controls aren't initialized and as a general rule the controls have to be loaded in the application's handle instance.
This commit is contained in:
parent
0197c4f875
commit
f8e0b4675f
2 changed files with 7 additions and 0 deletions
|
@ -587,6 +587,7 @@ int WINAPI wWinMain(HINSTANCE hInstance,
|
||||||
HANDLE hMutex;
|
HANDLE hMutex;
|
||||||
DWORD dwError;
|
DWORD dwError;
|
||||||
INT LayoutResource;
|
INT LayoutResource;
|
||||||
|
INITCOMMONCONTROLSEX iccex;
|
||||||
|
|
||||||
UNREFERENCED_PARAMETER(prev);
|
UNREFERENCED_PARAMETER(prev);
|
||||||
UNREFERENCED_PARAMETER(cmdline);
|
UNREFERENCED_PARAMETER(cmdline);
|
||||||
|
@ -615,6 +616,11 @@ int WINAPI wWinMain(HINSTANCE hInstance,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Load the common controls */
|
||||||
|
iccex.dwSize = sizeof(INITCOMMONCONTROLSEX);
|
||||||
|
iccex.dwICC = ICC_STANDARD_CLASSES | ICC_WIN95_CLASSES;
|
||||||
|
InitCommonControlsEx(&iccex);
|
||||||
|
|
||||||
ZeroMemory(&Globals, sizeof(Globals));
|
ZeroMemory(&Globals, sizeof(Globals));
|
||||||
Globals.hInstance = hInstance;
|
Globals.hInstance = hInstance;
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#include <commctrl.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue