problem using tab control
-
:confused:Hi everyone I'm developing an application, and in that application i added a dialog on his right, this dialog have a tab control on it. The problem is that i can not see the tabs on the dialog when i add more tabs, only appear the tab control with no tabs. thanks
-
:confused:Hi everyone I'm developing an application, and in that application i added a dialog on his right, this dialog have a tab control on it. The problem is that i can not see the tabs on the dialog when i add more tabs, only appear the tab control with no tabs. thanks
Hi there, When ever ive used tab control, ive used something similar to the following code:
CTabCtrl m_MainTabCtrl; TC_ITEM TabCtrlItem; TabCtrlItem.mask = TCIF_TEXT; TabCtrlItem.pszText = "Tab1"; m_MainTabCtrl.InsertItem( FILE_RESULTS_VIEW, &TabCtrlItem ); TabCtrlItem.pszText = "Tab2"; m_MainTabCtrl.InsertItem(FILE_SCAN_VIEW , &TabCtrlItem);
This will show the Tabs only, I then insert a CDialog and show and hide the dialog as needed by the tabs. Hope this helps. -
:confused:Hi everyone I'm developing an application, and in that application i added a dialog on his right, this dialog have a tab control on it. The problem is that i can not see the tabs on the dialog when i add more tabs, only appear the tab control with no tabs. thanks
Use the CTabCtrl::InsertItem to create the tabs... :) regards M$
-
Hi there, When ever ive used tab control, ive used something similar to the following code:
CTabCtrl m_MainTabCtrl; TC_ITEM TabCtrlItem; TabCtrlItem.mask = TCIF_TEXT; TabCtrlItem.pszText = "Tab1"; m_MainTabCtrl.InsertItem( FILE_RESULTS_VIEW, &TabCtrlItem ); TabCtrlItem.pszText = "Tab2"; m_MainTabCtrl.InsertItem(FILE_SCAN_VIEW , &TabCtrlItem);
This will show the Tabs only, I then insert a CDialog and show and hide the dialog as needed by the tabs. Hope this helps.Hi´ Look all the above code i've done it before i post my message, but it just doesn't work. when i try to put a tab in a dialog app it work. An example of my app is the msdn , with a tab in the left.
-
Hi´ Look all the above code i've done it before i post my message, but it just doesn't work. when i try to put a tab in a dialog app it work. An example of my app is the msdn , with a tab in the left.