Article View: comp.windows.ms
Article #1931How to design own MessageBoxes
From: Meno Abels
Date: Fri, 27 Oct 1989 18:32
Date: Fri, 27 Oct 1989 18:32
22 lines
1091 bytes
1091 bytes
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
Technical Details
Message-ID:
<543@pac.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!unido!tub!pac!abelsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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