Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » How do I add a CExtTabWnd to a dialog in the VS form editor? Collapse All
Subject Author Date
Ed Nafziger Sep 17, 2008 - 3:35 PM

I looked at the samples such as ProfuiStudio, but I cannot determine how the tab window controls are added. I tried adding a custom control, class name "ProfUIS-TabWindow" but I get an assert error in AfxGetResourceHandle().

Technical Support Sep 20, 2008 - 10:35 AM

You can see this in the ProfUIS_Controls sample. Please open the IDD_PAGE_TAB_WINDOW dialog resource to see how you should initialize the custom control so that it correctly can be used by CExtTabWnd. You should also link the custom control with corresponding class property in the DoDataExchange method:

DDX_Control( pDX, ID_TABCTRL_INNER_TOP, m_wndTabInnerTop );
The other way is to dynamically create the tab window with CExtTabWnd::Create. You can choose either the first or second way.

Ed Nafziger Sep 18, 2008 - 7:02 PM

I got it working, the assert was unrelated to adding the CExtTabWnd.

FYI: to add a CExtTabWnd control to a dialog in the form editor, you add a custom control and change the class to "ProfUIS-TabWindow". Thats how its done.