![]() |
[Closed] Floating Panes / Message Routing |
Post Reply ![]() |
Author | |
Simon HB9DRV ![]() Senior Member ![]() ![]() Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Simon HB9DRV ![]() Senior Member ![]() ![]() Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
![]() ![]() ![]() ![]() ![]() |
Hi,
I guess I'll have to do this - thanks again. |
|
Simon HB9DRV
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |