Print Page | Close Window

Retrive Floating Pane Sized Events in MainFrame

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=7937
Printed Date: 28 May 2024 at 6:14am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Retrive Floating Pane Sized Events in MainFrame
Posted By: czlai
Subject: Retrive Floating Pane Sized Events in MainFrame
Date Posted: 04 September 2007 at 11:56pm
How can I retrive events in MainFrame when a CXTPDockingPane is resized by user's mouse ?
 
I can't retrive the information from OnSize of attached CWnd because I create the CWnd as an ActiveX component by CreateControl().
 
Help please ... Thanks



Replies:
Posted By: Oleg
Date Posted: 05 September 2007 at 2:09am
Hi,
You can create additional simple CWnd, put your ActiveX to this CWnd and attach it to DockingPane instead of ActiveX. Now you will be able catch its OnSize...


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


Posted By: czlai
Date Posted: 05 September 2007 at 2:35am
Ya ! I know this solution. But I don't wish to create alots of classes in my BIG project, it make much difficute for maintaining. This is last solution to me.
 
Does there any way to accept Resized Events in MainFrame ?
Thanks.


Posted By: Oleg
Date Posted: 05 September 2007 at 3:14am
No. Think its best solution.

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


Posted By: czlai
Date Posted: 05 September 2007 at 3:47am
I got it, thanks very much !


Posted By: czlai
Date Posted: 05 September 2007 at 3:54am

Dear Sir,

I have another question.

I wish to retrive a floating CXTPDockingPane's rect when resized, so that I can restore it's position and size next time I run the program. But if I call GetClientRect() or GetWindowRect(), I got the client area's rect. So the restore pane is smaller because the rect doesn't include the caption height and frame width.

How can I retrive the real rect of the pane, and then I can call CXTPDockingPaneManager::FloatPane() to restore it ?
 
Thanks.


Posted By: Oleg
Date Posted: 05 September 2007 at 5:21am
Hi,
 
call pPane->GetDockingSite()->GetWindowRect();


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


Posted By: czlai
Date Posted: 05 September 2007 at 8:49pm
It works !
Thank you very much !



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