Visual C++ 6.0 and dialog resources
I would like to know how to make a tab control work properly. Where are the tabs defined, and how do I get the controls into the tabs? Everything I''ve tried has just gotten a nice set of 5 default tabs named "tab 1" through "tab 5" and no effect whatsoever on any other controls. How is it done?
I think MS dropped the ball on this one... in delphi or VB or CB, when you add a control on top of a tab control it knows to make the new control a child of the tab control - in VC everything you add is a child of the dialog; which is exactly what you don''t want.
Sooooo, as far as I can tell, you have to create the items inside the tab control with code, probably in the OnInitDialog method
look here
http://msdn.microsoft.com/library/default.asp?URL=/library/devprods/vs6/visualc/vcmfc/_mfc_ctabctrl.htm
Sooooo, as far as I can tell, you have to create the items inside the tab control with code, probably in the OnInitDialog method
look here
http://msdn.microsoft.com/library/default.asp?URL=/library/devprods/vs6/visualc/vcmfc/_mfc_ctabctrl.htm
CTabCtrl* m_tabStatus = GetDlgItem(IDC_TAB1);m_tabStatus.InsertItem(1, "Status1");//Adds a tabm_tabStatus.InsertItem(2, "Status2");//Adds antoher tab
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement