Jump to content

BKM SETDIMENSIONS

From EDM2

This message sets the height and width for the major tabs, minor tabs, or page buttons.

Syntax

param1
USHORT usWidth;  /* Width value to set. */
USHORT usHeight; /* Height value to set. */

param2
USHORT usType;   /* Notebook region. */

Parameters

usWidth (USHORT) - Input
Width value to set.
usHeight (USHORT) - Input
Height value to set.
usType (USHORT) - Input
Notebook region for which the dimensions are to be set. Valid values are:
BKA_MAJORTAB
BKA_MINORTAB
BKA_PAGEBUTTON

Returns

rc (BOOL) - returns
Success indicator:
TRUE: Dimensions were successfully set.
FALSE: Unable to set dimensions. Returned if an invalid value is specified for the usType parameter or if the dimensions are invalid.

Remarks

If either the BKA_MAJORTAB or BKA_MINORTAB attribute is specified for the usType parameter, the minimum width and height for display is 7 pels to allow space for the tab border and the selection cursor. If the tabs or page buttons are not to be displayed, the height and width can be set to 0.

If the new dimensions cause the notebook size to change, the notebook sends a BKN_NEWPAGESIZE notification code to the application.

Default Processing

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