Jump to content

WM PSETFOCUS

From EDM2
Revision as of 03:59, 18 April 2025 by Martini (talk | contribs) (Created page with "This message is posted when the Language Support Window or Dialog Procedure processes a WM_SETFOCUS message. ==Syntax== <pre> param1 HWND hwnd; Focus-window handle.: param2 USHORT usfocus; Focus flag.: </pre> ==Parameters== ;''hwnd'' (HWND) - input: Focus-window handle. :NULLHANDLE: No window lost or received the focus. :Other: Window handle. ;''usfocus'' (USHORT) - input: Focus flag. :TRUE: The window received the focus. ''hwnd'' is...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message is posted when the Language Support Window or Dialog Procedure processes a WM_SETFOCUS message.

Syntax

param1
    HWND   hwnd;    /* Focus-window handle. */

param2
    USHORT usfocus; /* Focus flag. */

Parameters

hwnd (HWND) - input
Focus-window handle.
NULLHANDLE: No window lost or received the focus.
Other: Window handle.
usfocus (USHORT) - input
Focus flag.
TRUE: The window received the focus. hwnd is the window handle of the window which lost the focus, or NULLHANDLE if no window previously had the focus.
FALSE: The window lost the focus. hwnd is the window handle of the window which received the focus, or NULLHANDLE if no window received the focus.
ulReserved (ULONG) - input
Reserved value, should be 0.

Returns

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

Remarks

The focus change has already occurred when the application receives this message.

Default Processing

The default window procedure takes no action on this message, other than to set ulReserved to 0.