- tabs to spaces

- removed obsolete commented code


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3698 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2004-10-10 14:50:50 +00:00
parent 7cf2ae3160
commit 2d96e61a68

View file

@ -97,7 +97,7 @@ void __declspec(dllexport) show(HWND hwndParent, int string_size, char *variable
{
DWORD dwThreadId;
DWORD dwMainThreadId = GetCurrentThreadId();;
DWORD dwMainThreadId = GetCurrentThreadId();
hwBanner = NULL;
@ -140,33 +140,6 @@ void __declspec(dllexport) destroy(HWND hwndParent, int string_size, char *varia
PostMessage(hwBanner, WM_CLOSE, 0, 0);
// The code below is not needed I think
/*
if (!hwndParent)
{
// reset the thread that called banner::Show to be the foreground thread.
// if banner was called from .onInit, this will make sure the NSIS dialog
// will still be created on the foreground
HWND hwTemp;
hwTemp = CreateWindowEx(
WS_EX_TOOLWINDOW,
"STATIC",
"",
WS_VISIBLE | WS_POPUP,
-1,
-1,
1,
1,
0,
0,
hInstance,
0
);
SetForegroundWindow(hwTemp);
DestroyWindow(hwTemp);
}
*/
// Wait for the thread to finish
while (hwBanner)
Sleep(25);