Now actually exits from the message loop

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1090 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2002-09-20 21:03:22 +00:00
parent 1eca4fb72d
commit 92a9b5bb64
2 changed files with 4 additions and 2 deletions

View file

@ -101,12 +101,14 @@ void __declspec(dllexport) show(HWND hwndParent, int string_size, char *variable
g_hbm=LoadImage(NULL,fn,IMAGE_BITMAP,0,0,LR_CREATEDIBSECTION|LR_LOADFROMFILE); g_hbm=LoadImage(NULL,fn,IMAGE_BITMAP,0,0,LR_CREATEDIBSECTION|LR_LOADFROMFILE);
if (g_hbm) if (g_hbm)
{ {
HWND myWnd;
PlaySound(fn2,NULL,SND_ASYNC|SND_FILENAME|SND_NODEFAULT); PlaySound(fn2,NULL,SND_ASYNC|SND_FILENAME|SND_NODEFAULT);
CreateWindowEx(WS_EX_TOOLWINDOW,classname,classname, myWnd = CreateWindowEx(WS_EX_TOOLWINDOW,classname,classname,
0,0,0,0,0,(HWND)hwndParent,NULL,g_hInstance,NULL); 0,0,0,0,0,(HWND)hwndParent,NULL,g_hInstance,NULL);
while (GetMessage(&msg,NULL,0,0)) while (IsWindow(myWnd) && GetMessage(&msg,myWnd,0,0))
{ {
DispatchMessage(&msg); DispatchMessage(&msg);
} }

Binary file not shown.