BM AUTOSIZE
Appearance
This message causes a button to be resized based on the size of its contents.
Syntax
param1 ULONG ulReserved /* Reserved value, should be 0. */ param2 ULONG ulReserved /* Reserved value, should be 0. */
Parameters
- ulReserved (ULONG)
- Reserved value, should be 0.
- ulReserved (ULONG)
- Reserved value, should be 0.
Returns
- rc (BOOL)
- Success indicator.
- TRUE
- The button was automatically sized according to the size of its contents.
- FALSE
- The button was not automatically sized.
Remarks
This message is used by the notebook control to size buttons placed in the common area. If the button control has a style of BS_NOTEBOOKBUTTON, it responds to this message by setting rc as appropriate. If the button has any other style, the button control takes no action other than to set rc to FALSE.
Default Processing
The default window procedure does not expect to receive this message and therefore takes no action on it, except to set rc to the default value of FALSE.