EDIT:
Here is some code that I just checked.
case WM_NOTIFY:
{
NMHDR *lpnmhdr = (LPNMHDR)lParam;
HWND hTab = GetDlgItem(hwndDlg, TAB_CONTROL_1);
switch (lpnmhdr->code)
{
case TCN_SELCHANGE:
{
char s[90];
sprintf(s, "Which Tab -- %d", TabCtrl_GetCurSel(hTab));
SetWindowText(hwndDlg, s);
}
break;
}
break;
}
John