mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0029169: Configuration - fix compilation with undefined UNICODE on Windows
Eliminated usage of TEXT macros, usage of OSVERSIONINFO instead of OSVERSIONINFOW. LoadIcon/LoadCursor are now used instead of LoadIconW/LoadCursorW when passing macros to standard resources (which depend on UNICODE flag).
This commit is contained in:
@@ -42,15 +42,15 @@ BOOL RegisterAppClass(HINSTANCE hInstance)
|
||||
// Parametres communs aux classes
|
||||
//-----
|
||||
wndClass.style = CS_HREDRAW | CS_VREDRAW | CS_CLASSDC;
|
||||
wndClass.cbClsExtra = 0;
|
||||
wndClass.hCursor = LoadCursorW (NULL, IDC_ARROW);
|
||||
wndClass.cbClsExtra = 0;
|
||||
wndClass.hCursor = LoadCursor (NULL, IDC_ARROW);
|
||||
wndClass.hInstance = hInstance;
|
||||
|
||||
// Enregistrement de la fenetre principale
|
||||
//-----
|
||||
wndClass.cbWndExtra = sizeof(void*);
|
||||
wndClass.lpfnWndProc = (WNDPROC)WndProc;
|
||||
wndClass.hIcon = (HICON )LoadIconW (hInstance, MAKEINTRESOURCE(IDI_ICON1));
|
||||
wndClass.hIcon = LoadIconW (hInstance, MAKEINTRESOURCEW(IDI_ICON1));
|
||||
wndClass.hbrBackground = (HBRUSH) GetStockObject(WHITE_BRUSH);
|
||||
wndClass.lpszMenuName = MAKEINTRESOURCEW(APPMENU);
|
||||
wndClass.lpszClassName = APPCLASS;
|
||||
|
Reference in New Issue
Block a user