TCM_GETCURSEL

This message determines the currently selected tab in a tab control. You can send this message explicitly or by using the TabCtrl_GetCurSel macro.

At a Glance

Header file: Commctrl.h
Windows CE versions: 1.0 and later
Related macro: TabCtrl_GetCurSel

Syntax

  1. TCM_GETCURSEL wParam = 0; lParam = 0;

Return Values

The index of the selected tab indicates success. –1 indicates that no tab is selected.