Forum
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.
Subject |
Author |
Date |
|
mark jhon
|
Mar 8, 2006 - 12:57 AM
|
I maked sample source and it was good well but i have one question
// MainFrm.h
CManagedTabPageContainer m_wndTabPageContainerTest; <- your company sample class Inherit from CExtTabPageContainerFlatWnd CExtControlBar m_wndCtrlBarTest; CCtrlTestWnd m_wndCtrlTest; <-Inherit from CExtResizableDialog
// MainFrm.cpp
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) {
if( !m_wndCtrlBarTest.Create( _T("TESTCELL"), this, ID_VIEW_CTRLBAR_TEST)) { TRACE0("TEST fail to create \n"); return -1; } m_wndTabPageContainerTest.Create( &m_wndCtrlBarTest );
if( !m_wndCtrlTest.Create( CCtrlTestWnd::IDD, &m_wndTabPageContainerTest)) { TRACE0("m_wndCtrlTest fail to create\n"); return -1; // fail to create }
m_wndTabPageContainerTest.SelectionBoldSet(); m_wndTabPageContainerTest.OrientationSet(__ETWS_ORIENT_BOTTOM); m_wndTabPageContainerTest.SetSize(1); //from here good }
question 1)
how to fit CCtrlTestWnd’s size to CExtControlBar
|
|
Technical Support
|
Mar 9, 2006 - 9:52 AM
|
You create a tab page container inside a control bar. That’s ok. But then you create a dialog as a child of the tab page container but do not insert it as a page. So, just invoke the PageInsert() method of the CExtTabPageContainerWnd class to insert the page that holds your dialog.
|
|