Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - why does it not work
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

why does it not work

 Post Reply Post Reply
Author
Message
level10 View Drop Down
Newbie
Newbie


Joined: 08 March 2006
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote level10 Quote  Post ReplyReply Direct Link To This Post Topic: why does it not work
    Posted: 08 March 2006 at 11:14pm

the 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!

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
level10 View Drop Down
Newbie
Newbie


Joined: 08 March 2006
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote level10 Quote  Post ReplyReply Direct Link To This Post Posted: 09 March 2006 at 8:15pm
thanks a lot!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.142 seconds.