[comp.windows.ms] How to design own MessageBoxes

abels@pac.UUCP (Meno Abels) (10/28/89)

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