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 » Poblem with Tabled View In SDI Application!! Collapse All
Subject Author Date
Fietiger Kisinger Aug 31, 2008 - 9:46 AM

I am developing an SDI Application ,in which I want to employ a tabled CHtmlView.So I follow the direction post in another discussion.Fnally, got it done. But there is a little bug.The problem is the save button on the tool bar is not actived unless I click my mouse in the main view of the doc.And How could I do ? Thank you!

Technical Support Sep 2, 2008 - 11:43 AM

The g_CmdManager->ProfileSetup( . . . ) invocation is OK in your project. Please also ensure the g_CmdManager->ProfileWndAdd( . . . ) code is used near the beginning of the CMainFrame::OnCreate() method. You can send us the source code of your main frame, view and application classes (or the entire project) to the support mail box at this web site so we will try to find out what’s wrong.

Fietiger Kisinger Sep 1, 2008 - 7:51 AM

All what I have Done is as follows

First I define a Pagecontainer in mainframe


 CExtWRB < CExtTabPageContainerOneNoteWnd > m_wndTabPageContainer;

Then I add another wnd in the Pagecontainer In OnCreate() of mainframe

CWinApp * pApp = ::AfxGetApp();

 ASSERT( pApp != NULL );

 ASSERT( pApp->m_pszRegistryKey != NULL );

 ASSERT( pApp->m_pszRegistryKey[0] != _T(’\0’) );

 ASSERT( pApp->m_pszProfileName != NULL );

 ASSERT( pApp->m_pszProfileName[0] != _T(’\0’) );







  m_wndTabPageContainer.OrientationSet( __ETWS_ORIENT_TOP );







 m_wndTest.ShowSizeGrip( FALSE );




  _T("Tabbed &Toolbar Options")



 if( CExtNCW < CFrameWnd >::OnCreate(lpCreateStruct) == -1 )



  return -1;


Finally,I add my main view in the Pagecontainer in the OnCreate() of my view

int CXXSView::OnCreate(LPCREATESTRUCT lpCreateStruct)


 if (CView::OnCreate(lpCreateStruct) == -1)

  return -1;


 // TODO: Add your specialized creation code here

 CMainFrame* pMain=(CMainFrame*)AfxGetMainWnd();

 pMain->m_wndTabPageContainer.PageInsert(this,"view" , NULL,


 return 0;


Is there any thing wrong? And any wise suggestion? Thank you!

Technical Support Sep 1, 2008 - 10:49 AM

The source code is almost OK, but it has not to do with the problem. Please ensure your application has initialized the command manager’s profile correctly. There must be invocations of g_CmdManager->ProfileSetup( . . . ) in your code. This code is typically used at the beginning of CMainFrame::OnCreate().

Fietiger Kisinger Sep 2, 2008 - 12:11 AM

g_CmdManager->ProfileSetup( . . . ) is invocated in  CXXSApp::SetupUiAdvancedOptions() which is invocated in CXXSApp::InitInstance().Is it OK? And I am working with V2.83.


Even I add another invocations of g_CmdManager->ProfileSetup( . . . )  just at the beginning of CMainFrame::OnCreate(). The save button is not actived unless I click my mouse in the View.

Thank you!

Fietiger Kisinger Sep 6, 2008 - 8:26 PM

Perhaps the problem is so... Hard

Technical Support Sep 8, 2008 - 7:06 AM

Could you please create a stripped version of your project which contains compile-able and working UI code only and demonstrates the problem? You can send this project to the support mail box at this web site. It would be extremely interesting to take a look at it.

Fietiger Kisinger Oct 21, 2008 - 11:46 PM

I am so sorry .I have got engaed with other things.But could I have your support mail box ?I can not find it.Thank you!

Technical Support Oct 23, 2008 - 2:11 PM

Our support mail box is at Sorry for being vague.

Technical Support Sep 1, 2008 - 3:24 AM

It seems there is a problem with command routing in your project. Did you re-direct the <code>OnCmdMsg()<code> virtual method calls to the view window? Did your frame window switch focus to the view window when the frame becomes focused?