01-26-2016 12:41 PM
I'm having trouble getting the panel handles from nested tab controls. I have two main tabs with nested tabs under each of those. When I try to get a handle from one of the nested tabs under the second main tab, It seems to return a handle from a nested tab under the first main tab.
I've attached an example of what I'm trying to do. See the *.c file for the specific issue I'm having.
Thanks,
James
01-26-2016 12:59 PM
And of course I had a face palm moment as soon as I posted this.
The issue was using the wrong parent tab handle (index 0 instead of index 1). The fix is to call the first get handle funtion twice.
GetPanelHandleFromTabPage(panelHandle, PANEL_TAB, 0, &tabPanel); //tabpanel is used for getting handles of first tab's subtabs.
GetPanelHandleFromTabPage(panelHandle, PANEL_TAB, 1, &tabPanel2); //tabpanel2 is used for getting handles of second tab's subtabs.