Reactos

[MAGNIFY] Initialize the common controls as the program has a manifest

authored by

Bișoc George and committed by
Hermès Bélusca-Maïto
6a124ef3 7a133609

+7 -1
+1 -1
base/applications/magnify/CMakeLists.txt
··· 7 7 add_rc_deps(magnify.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/magnify.ico) 8 8 add_executable(magnify ${SOURCE} magnify.rc) 9 9 set_module_type(magnify win32gui) 10 - add_importlibs(magnify user32 gdi32 advapi32 shell32 msvcrt kernel32) 10 + add_importlibs(magnify user32 gdi32 comctl32 advapi32 shell32 msvcrt kernel32) 11 11 add_pch(magnify magnifier.h SOURCE) 12 12 add_cd_file(TARGET magnify DESTINATION reactos/system32 FOR all)
+6
base/applications/magnify/magnifier.c
··· 16 16 #include <winuser.h> 17 17 #include <wingdi.h> 18 18 #include <winnls.h> 19 + #include <commctrl.h> 19 20 #include <shellapi.h> 20 21 #include <windowsx.h> 21 22 #include <stdlib.h> ··· 77 78 { 78 79 MSG msg; 79 80 HACCEL hAccelTable; 81 + INITCOMMONCONTROLSEX iccex; 80 82 81 83 UNREFERENCED_PARAMETER(hPrevInstance); 82 84 UNREFERENCED_PARAMETER(lpCmdLine); ··· 111 113 } 112 114 } 113 115 116 + /* Load the common controls */ 117 + iccex.dwSize = sizeof(INITCOMMONCONTROLSEX); 118 + iccex.dwICC = ICC_STANDARD_CLASSES | ICC_WIN95_CLASSES; 119 + InitCommonControlsEx(&iccex); 114 120 115 121 SelectObject(hdcOffscreen, hbmpOld); 116 122 DeleteObject (hbmpOffscreen);