11-21-2006 08:01 AM
11-21-2006 08:18 AM
Since tab pages really are child panels of the panel the tab control is on, each callback for a control on a tab page receives the handle of the tab page itself, not the one of the parent panel. This last handle can be retrieved with
GetPanelAttribute (panelHandle, ATTR_PANEL_PARENT, &parent);
On the parent panel handle you may call your
SetActiveTabPage (parent, PANEL_TAB, 3);