02-23-2006 06:34 PM
status = GetPanelHandleFromTabPage (ParentPanelHandle, TAB_ON_MAIN_PANEL, 0, &tabHandle1);
status = GetPanelHandleFromTabPage (tabHandle1, TAB_ON_SUB_PANEL, 0, &tabHandle2); // note I am passing the handle from step 1
Library function error (return value == -10 [0xfffffff6]).
The control is not the type expected by the function
02-24-2006 11:05 AM
I think the problem is the ControlID that you're passing to GetPanelHandleFromTabPage. Is TAB_ON_SUB_PANEL the constant name of the nested tab control? You have to concatenate that to the constant name of the tab panel of the parent tab control. Take a look at the generated constants in the UIR include file.
I've attached a sample program that gets the panel handle of the nested tab control's tab panel.
Hope this helps.
- jared