Print Page | Close Window

[Closed] Floating Panes / Message Routing

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=5610
Printed Date: 12 December 2024 at 9:51am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [Closed] Floating Panes / Message Routing
Posted By: Simon HB9DRV
Subject: [Closed] Floating Panes / Message Routing
Date 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



Replies:
Posted By: Oleg
Date 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


Posted By: Simon HB9DRV
Date Posted: 27 November 2006 at 5:33am
Hi,

I guess I'll have to do this - thanks again.


-------------
Simon HB9DRV



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