02-04-2009 10:40 AM
02-04-2009 10:54 AM
Hello Marco,
tab controls can be somewhat confusing if you don't understandclearly that each page on a tab control is in effect an indipendent panel, with its proper handle that is to be used to address control on the tab page itself. This item has been discussed several times in the forum and a simple search will return you lots of informations and examples to study. Among all, useful discussions can be found here, here and here.
02-09-2009 08:16 AM
Hi as it was said a tab control is like multiple panels, each page is a panel...
So you have to recover an handle for each page with the function GetPanelHandleFromTabPage. This function allows us to recover an handle for each page.
Then you use this handle to modify objects in the tab.
Here is an example of code modifying a string control in a tab control.
GetPanelHandleFromTabPage (panelHandle, PANEL_TAB, 0, &TabHandle);
SetCtrlVal (TabHandle, TABPANEL_STRING, "Hello");
If you look at the header file of the project you will see that the objects on the tab controls are named (TAB NAME)PANEL_(CONTROL NAME)
Kamal
Datus Rhone Alpes