windows_programming_notes.nbk: Home | Index | Next Page: TabCtrl_SetCurSel | Previous Page: TabCtrl_DeleteItem


 TabCtrl_GetCurSel

Determines the currently selected tab in a tab control. You can use this macro or send the TCM_GETCURSEL message explicitly.

Syntax

    int TabCtrl_GetCurSel(
        HWND hwnd
    );

Parameters

Return Value

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

Macro Information


windows_programming_notes.nbk: Home | Index | Next Page: TabCtrl_SetCurSel | Previous Page: TabCtrl_DeleteItem


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