Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!unido!tub!pac!abels From: abels@pac.UUCP (Meno Abels) Newsgroups: comp.windows.ms Subject: How to design own MessageBoxes Keywords: MS-Windows ibmpc Message-ID: <543@pac.UUCP> Date: 27 Oct 89 18:32:25 GMT Organization: PAC Hardware GmbH Berlin, Germany Lines: 22 This MessageBox based on the Popup-Windowstyle, should be able to tie up (forestall) all other events, while awaiting the input. It was impossible to prevent all other messages but our own (eg. mouseclicks outside our own window produces malfunctions). We used the following program part, to wait for the selection : HWND hWnd; /* Windowhandle of Popup-Window */ hWnd = CreateWindow(..., WS_POPUP, ...); while (GetMessage(&msg, hWnd, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } Meno Abels # abels@pac.uucp, PAC Hardware GmbH Berlin # abels%pac.uucp%tub.bitnet@mitvma.mit.edu Kurfuerstenstr. 112 # mcvax!unido!tub!pac!abels D-1000 Berlin 30 Germany