windows_programming_notes.nbk: Home | Index | Next Page: TCM_SETCURSEL | Previous Page: TCM_DELETEITEM


 TCM_GETCURSEL

Determines the currently selected tab in a tab control. You can send this message explicitly or by using the TabCtrl_GetCurSel 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_GETCURSEL,    // message ID     
       (WPARAM) wParam,         // = 0; not used, must be zero    
       (LPARAM) lParam          // = 0; not used, must be zero 
    );

Parameters

Return Value

Returns the index of the selected tab if successful, or -1 if no tab is selected.

Message Information


windows_programming_notes.nbk: Home | Index | Next Page: TCM_SETCURSEL | Previous Page: TCM_DELETEITEM


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