TCM_ADJUSTRECT Message

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 send this message explicitly or by using the TabCtrl_AdjustRect macro.

Syntax

To send this message, call the SendMessage function as follows.
lResult = SendMessage(    // returns LRESULT in lResult
   hWndControl,           // (HWND) handle to destination control
   TCM_ADJUSTRECT,        // (UINT) message ID
   wParam,                // = (WPARAM)(BOOL) fLarger; 
   lParam                 // = (LPARAM)(LPRECT) prc;
);

Parameters

fLarger
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
Pointer to a >RECT structure that specifies the given rectangle and receives the calculated rectangle.

Return Value

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.

Message Information

Headercommctrl.h
Minimum operating systems Windows NT 3.51, Windows 95
Tags :


Page view tracker