Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - [Closed] Floating Panes / Message Routing
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[Closed] Floating Panes / Message Routing

 Post Reply Post Reply
Author
Message
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Topic: [Closed] Floating Panes / Message Routing
    Posted: 27 November 2006 at 3:46am
Hi,

When a pane is docked it receives message sent via  MainFrame().SendMessageToDescendants, when it is floating this doesn't happen.

Is there a simple solution to this or must I catch all possible messages and send them to the floating panes? What is the professional solution here?

My pane's message map has entries using ON_REGISTERED_MESSAGE(...)



Simon HB9DRV
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: 27 November 2006 at 5:32am
If you want to notify only panes, I suggest create some method SendMessageToPanes and loop all panes:
 
POSITION pos = dp.GetPaneList().GetHeadPosition();
 while (pos)
 {
  CXTPDockingPane* pPane =dp.GetPaneList().GetNext(pos);
  if (pPane->GetChild() && pPane->GetChild()->GetSafeHwnd())
   pPane->GetChild()->SendMessage(WM_XXX,...);
 }
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Posted: 27 November 2006 at 5:33am
Hi,

I guess I'll have to do this - thanks again.
Simon HB9DRV
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.219 seconds.