windows_programming_notes.nbk: Home | Index | Next Page: TCM_DELETEALLITEMS | Previous Page: TCITEM


 TCM_ADJUSTRECT

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

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


windows_programming_notes.nbk: Home | Index | Next Page: TCM_DELETEALLITEMS | Previous Page: TCITEM


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time