add_rc_deps(magnify.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/magnify.ico)
add_executable(magnify ${SOURCE} magnify.rc)
set_module_type(magnify win32gui)
-add_importlibs(magnify user32 gdi32 advapi32 shell32 msvcrt kernel32)
+add_importlibs(magnify user32 gdi32 comctl32 advapi32 shell32 msvcrt kernel32)
add_pch(magnify magnifier.h SOURCE)
add_cd_file(TARGET magnify DESTINATION reactos/system32 FOR all)
#include <winuser.h>
#include <wingdi.h>
#include <winnls.h>
+#include <commctrl.h>
#include <shellapi.h>
#include <windowsx.h>
#include <stdlib.h>
{
MSG msg;
HACCEL hAccelTable;
+ INITCOMMONCONTROLSEX iccex;
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
}
}
+ /* Load the common controls */
+ iccex.dwSize = sizeof(INITCOMMONCONTROLSEX);
+ iccex.dwICC = ICC_STANDARD_CLASSES | ICC_WIN95_CLASSES;
+ InitCommonControlsEx(&iccex);
SelectObject(hdcOffscreen, hbmpOld);
DeleteObject (hbmpOffscreen);