Just load the library
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7293 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
0be4164270
commit
1768555f2b
3 changed files with 5 additions and 5 deletions
|
@ -87,7 +87,7 @@ static void LoadToolBarImages()
|
|||
HWND hTB = g_toolbar.hwnd;
|
||||
// Comctl32.dll version detection
|
||||
#ifndef _WIN64
|
||||
HMODULE hMod = GetModuleHandle(_T("comctl32.dll"));
|
||||
HMODULE hMod = LoadSysLibrary("COMCTL32");
|
||||
const FARPROC hasCC4_70 = (SupportsW95()) ? GetProcAddress(hMod, "InitCommonControlsEx") : (FARPROC) TRUE; // NT4 shipped with v4.70
|
||||
const FARPROC hasCC4_71 = (SupportsWNT4() || SupportsW95()) ? GetProcAddress(hMod, "DllGetVersion") : (FARPROC) TRUE; // IE4 shipped with v4.71
|
||||
#else
|
||||
|
|
|
@ -13,11 +13,11 @@ static LPSTR InetGetErrorStringAllocA(DWORD ec)
|
|||
DWORD flags = FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_IGNORE_INSERTS;
|
||||
if (FormatMessageA(flags|FORMAT_MESSAGE_FROM_SYSTEM, 0, ec, 0, (LPSTR) &buf, 0, 0))
|
||||
return buf;
|
||||
HMODULE hMod = GetModuleHandle(TEXT("WinInet"));
|
||||
HMODULE hMod = LoadSysLibrary("WinInet");
|
||||
if (hMod && FormatMessageA(flags|FORMAT_MESSAGE_FROM_HMODULE, hMod, ec, 0, (LPSTR) &buf, 0, 0))
|
||||
return buf;
|
||||
#if 0 // We are not using WinHttp* functions
|
||||
hMod = GetModuleHandle(TEXT("WinHTTP"));
|
||||
hMod = LoadSysLibrary("WinHTTP");
|
||||
if (hMod && FormatMessageA(flags|FORMAT_MESSAGE_FROM_HMODULE, hMod, ec, 0, (LPSTR) &buf, 0, 0))
|
||||
return buf;
|
||||
#endif
|
||||
|
|
|
@ -713,11 +713,11 @@ void InitTooltips(HWND h) {
|
|||
InitCommonControlsEx(&icx);
|
||||
DWORD dwStyle = WS_POPUP | WS_BORDER | TTS_ALWAYSTIP;
|
||||
DWORD dwExStyle = WS_EX_TOOLWINDOW | WS_EX_TOPMOST;
|
||||
g_tip.tip = CreateWindowEx(dwExStyle,TOOLTIPS_CLASS,NULL,dwStyle,0,0,0,0,h,NULL,GetModuleHandle(NULL),NULL);
|
||||
g_tip.tip = CreateWindowEx(dwExStyle,TOOLTIPS_CLASS,NULL,dwStyle,0,0,0,0,h,NULL,HINST_APPLICATION,NULL);
|
||||
if (!g_tip.tip) return;
|
||||
g_tip.hook = SetWindowsHookEx(WH_GETMESSAGE,TipHookProc,NULL, GetCurrentThreadId());
|
||||
AddTip(GetDlgItem(h,IDCANCEL),_T("Close MakeNSISW"));
|
||||
AddTip(GetDlgItem(h,IDC_TEST),_T("Test the installer generated by MakeNSISW"));
|
||||
AddTip(GetDlgItem(h,IDC_TEST),_T("Test the generated installer"));
|
||||
AddToolBarTooltips();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue