TCN_SELCHANGE

The TCN_SELCHANGE notification message notifies a tab control's parent window that the currently selected tab has changed. This message is sent in the form of a WM_NOTIFY message.

TCN_SELCHANGE

idTabCtl = (int) LOWORD(wParam);

lpnmhdr = (LPNMHDR) lParam;

Parameters

idTabCtl

Specifies the child window identifier of the tab control.

lpnmhdr

Pointer to an NMHDR structure. The hwndFrom member is the handle of the tab control. The idFrom member is the child window identifier of the tab control. The code member is TCN_SELCHANGE.

Return Values

No return value.

Remarks

To determine the currently selected tab, use the TabCtrl_GetCurSel macro.

See Also

NMHDR, TabCtrl_GetCurSel, TCN_SELCHANGING, WM_NOTIFY