mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 07:26:47 +00:00
[CALC] Explicitly link against comctl32. Patch by Carlo Bramini. CORE-10727
svn path=/trunk/; revision=74976
This commit is contained in:
parent
c16f5dc411
commit
630bbc5421
|
@ -13,7 +13,7 @@ file(GLOB calc_rc_deps res/*.*)
|
|||
add_rc_deps(resource.rc ${calc_rc_deps})
|
||||
add_executable(calc ${SOURCE} resource.rc)
|
||||
set_module_type(calc win32gui UNICODE)
|
||||
add_importlibs(calc advapi32 user32 shell32 gdi32 msvcrt kernel32)
|
||||
add_importlibs(calc advapi32 comctl32 user32 shell32 gdi32 msvcrt kernel32)
|
||||
|
||||
if(MSVC)
|
||||
add_importlibs(calc ntdll)
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#include <wingdi.h>
|
||||
#include <winreg.h>
|
||||
#include <shellapi.h>
|
||||
#include <commctrl.h>
|
||||
|
||||
#define HTMLHELP_PATH(_pt) TEXT("%systemroot%\\Help\\calc.chm::") TEXT(_pt)
|
||||
|
||||
|
@ -1785,6 +1786,8 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdL
|
|||
MSG msg;
|
||||
DWORD dwLayout;
|
||||
|
||||
InitCommonControls();
|
||||
|
||||
calc.hInstance = hInstance;
|
||||
|
||||
calc.x_coord = -1;
|
||||
|
|
Loading…
Reference in a new issue