TabCtrl_AdjustRect macro (commctrl.h)
Calculates a tab control's display area given a window rectangle, or calculates the window rectangle that would correspond to a specified display area. You can use this macro or send the TCM_ADJUSTRECT message explicitly.
Syntax
VOID TabCtrl_AdjustRect(
HWND hwnd,
BOOL bLarger,
RECT *prc
);
Parameters
hwnd
Type: HWND
Handle to the tab control.
bLarger
Type: BOOL
Operation to perform. If this parameter is TRUE, prc specifies a display rectangle and receives the corresponding window rectangle. If this parameter is FALSE, prc specifies a window rectangle and receives the corresponding display area.
prc
Type: RECT*
Pointer to a RECT structure that specifies the given rectangle and receives the calculated rectangle.
Return value
Type: VOID
No return value.
Remarks
This message applies only to tab controls that are at the top. It does not apply to tab controls that are on the sides or bottom.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | commctrl.h |