http://bugs.winehq.com/show_bug.cgi?id=1918 Summary: PostMessage(hwnd,WM_CLOSE,0,0) Product: Wine Version: CVS Platform: PC OS/Version: other Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-kernel AssignedTo: wine-bugs(a)winehq.com ReportedBy: dl4gbe(a)hotmail.com Hallo PostMessage(hwnd,WM_CLOSE,0,0) does not bring up the same result than on my w2k mchine. On w2k it leaves the message loop then defined as in WinMain: while (GetMessage(&msg,NULL,0,0) > 0) { TranslateMessage(&msg); DispatchMessage(&msg); } MessageBox(NULL,"Terminating","test",MB_OK | MB_ICONINFORMATION); Wine destroys the window but does not leave the loop! I have to terminate wine with CTRL C which is not nice! My MessageHandler looks as follows: LRESULT CALLBACK WndProc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM lParam) { switch(msg) { ... sure more stuff here case WM_CLOSE: MessageBox(NULL,"WM_CLOSE","Test",MB_OK); DestroyWindow(hwnd); break; case WM_DESTROY: MessageBox(NULL,"WM_DESTROY","Test",MB_OK); PostQuitMessage(0); break; default: return DefWindowProc(hwnd,msg,wParam,lParam); } return 0; } Sincerely Chris Chayaphum, Thailand -- Configure bugmail: http://bugs.winehq.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
participants (1)
-
Wine Bugs