Jump to content

WM MSGBOXINIT

From EDM2
Revision as of 04:10, 18 April 2025 by Martini (talk | contribs) (Created page with "This message notifies the owner of the message when a non-modal message box has been created and is currently being displayed. ==Syntax== <pre> param1 HWND hwnd; Non-modal window handle.: param2 LONG idWindow; Window identity of the message box.: </pre> ==Parameters== ;''hwnd'' (HWND) - input: Non-modal window handle. ;''idWindow'' (LONG) - input: Window identity of the message box. ;''ulReserved'' (ULONG) - input: Reserved value, must be...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message notifies the owner of the message when a non-modal message box has been created and is currently being displayed.

Syntax

param1
    HWND hwnd;     /* Non-modal window handle. */

param2
    LONG idWindow; /* Window identity of the message box. */

Parameters

hwnd (HWND) - input
Non-modal window handle.
idWindow (LONG) - input
Window identity of the message box.
ulReserved (ULONG) - input
Reserved value, must be 0.

Returns

ulReserved (ULONG) - returns
Reserved value, must be 0.

Remarks

This message is processed within the owner's window procedure when a non-modal WinMessageBox2 is created. It is up to the owner to store the window handle returned by this function. This handle is then used to properly destroy the message box when WM_MSGBOXDISMISS is received or when the parent chooses to destroy it.