Print Page | Close Window

why does it not work

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=3747
Printed Date: 27 April 2024 at 11:14am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: why does it not work
Posted By: level10
Subject: why does it not work
Date Posted: 08 March 2006 at 11:14pm

the https://forum.codejock.com/uploads/level10/2006-03-08_230059_TestDocking.rar - 2006-03-08_230059_TestDocking.rar

the project was build from MFC ActiveX Control Wizard, then i add a frame class into the project, but the class CXTPDockingPane works badly: it seems that  user interface is always not refresh automatically.

i'm a newbie, can anyone help me to solve this problem or give me some tips?

 thanks!




Replies:
Posted By: Oleg
Date Posted: 09 March 2006 at 10:34am

Because in ActiveX don't send WM_IDLEUPDATECMDUI to frames.

you can set timer and send this message manaully

 

 SetTimer(TID_UPDATE, 100, NULL);
 

 

void CDockingPaneSite::OnTimer(UINT_PTR nIDEvent)
{
 if (nIDEvent == TID_UPDATE)
 {
  UpdatePanes();
  OnIdleUpdateCmdUI();
 }

 CWnd::OnTimer(nIDEvent);
}
 


void CDockingPaneCtrl::OleUpdatePanes()
{
  CXTPDockingPaneManager* pDockingPaneManager = m_pMainWnd->GetDockingPaneManager();
 
  pDockingPaneManager->OnIdleUpdateCmdUI(1, 1);
  ...

}
 



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: level10
Date Posted: 09 March 2006 at 8:15pm
thanks a lot!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net