TabCtrl_AdjustRect

This macro calculates the display area of a tab control based on a specified 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.

void TabCtrl_AdjustRect( HWND hwnd, 
BOOL fLarger, 
RECT FAR *prc );

Parameters

  • hwnd
    Handle to the tab control.
  • fLarger
    Boolean value that specifies the operation to perform. If set to TRUE, prc specifies a display rectangle and receives the corresponding window rectangle. If set to 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 Values

None.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Commctrl.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

TCM_ADJUSTRECT, RECT

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.