WM QUERYFRAMECTLCOUNT
Appearance
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.