Jump to content

WM QUERYFRAMECTLCOUNT

From EDM2
Revision as of 03:29, 19 April 2025 by Martini (talk | contribs) (Created page with "This message is sent to the frame window in response to the receipt of a WM_SIZE or a WM_UPDATEFRAME (in Frame Controls) message. ==Syntax== <pre> param1 ULONG ulReserved; Reserved value, should be 0.: param2 ULONG ulReserved; Reserved value, should be 0.: </pre> ==Parameters== ;''ulReserved'' (ULONG) - input: Reserved value, should be 0. ;''ulReserved'' (ULONG) - input: Reserved value, should be 0. ==Returns== ;''sControlCount'' (SHOR...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message is sent to the frame window in response to the receipt of a WM_SIZE or a WM_UPDATEFRAME (in Frame Controls) message.

Syntax

param1
    ULONG ulReserved; /* Reserved value, should be 0. */

param2
    ULONG ulReserved; /* Reserved value, should be 0. */

Parameters

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

Returns

sControlCount (SHORT) - returns
Count of frame controls.

Remarks

By sending this message to itself, any procedures that subclass the frame window become aware that the number of frame controls is being calculated and include any special frame controls of the subclass in the count.

This count is used to allocate the appropriate number of SWP structures that are passed in the WM_FORMATFRAME (in Frame Controls) message.

Default Processing

The default window procedure does not expect to receive this message and therefore takes no action on it, other than to set sControlCount to the default value of 0.