Jump to content

CN KILLFOCUS

From EDM2
Revision as of 21:44, 20 April 2025 by Martini (talk | contribs) (Created page with "This message is sent by the container control to its owner whenever the container is losing the focus. ==Syntax== <PRE> param1 USHORT id; Container control ID.: USHORT CN_KILLFOCUS; Notification code.: param2 HWND hwndCnr; Container control handle.: </PRE> ==Parameters== ;id (USHORT) - Input : Container control ID. ;CN_KILLFOCUS (USHORT) - Input : Notification code. ;hwndCnr (HWND) - Input : Container control handle. ==Returns...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message is sent by the container control to its owner whenever the container is losing the focus.

Syntax

param1
USHORT id;          /* Container control ID. */
USHORT CN_KILLFOCUS; /* Notification code. */

param2
HWND hwndCnr;       /* Container control handle. */

Parameters

id (USHORT) - Input
Container control ID.
CN_KILLFOCUS (USHORT) - Input
Notification code.
hwndCnr (HWND) - Input
Container control handle.

Returns

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

Remarks

None.

Default Processing

The default window procedure does not expect to receive this notification code and therefore takes no action on it other than to return 0.