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
|
| (HWND) hWndControl,
| // handle to destination control
|
| (UINT) TCM_ADJUSTRECT,
| // message ID
|
| (WPARAM) wParam,
| // = (WPARAM) (BOOL) fLarger; |
| (LPARAM) 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
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
| Header | commctrl.h |
|---|
| Minimum operating systems |
Windows NT 3.51, Windows 95 |
|---|