zaryk
December 6th, 2008, 07:58 PM
I have a button that creates a new tab in the tab control, and in the function I have:
int selCur = TabCtrl_GetItemCount(progTab);
....
....
SendMessage(progTab, TCM_SETCURSEL, selCur, 0);
This selects the the newest created tab, but does not Send a message to WM_NOTIFY - TCN_SELCHANGE.
In my TCN_SELCHANGE I have it change the text of the main window, so it does not change the text for the first tab created at creation time or any added with the button. It will only change the text when i click the tabs.
What would I need to do to? any ideas
int selCur = TabCtrl_GetItemCount(progTab);
....
....
SendMessage(progTab, TCM_SETCURSEL, selCur, 0);
This selects the the newest created tab, but does not Send a message to WM_NOTIFY - TCN_SELCHANGE.
In my TCN_SELCHANGE I have it change the text of the main window, so it does not change the text for the first tab created at creation time or any added with the button. It will only change the text when i click the tabs.
What would I need to do to? any ideas