Retrive Floating Pane Sized Events in MainFrame |
Post Reply |
Author | |
czlai
Groupie Joined: 18 December 2006 Location: Taiwan Status: Offline Points: 35 |
Post Options
Thanks(0)
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
czlai
Groupie Joined: 18 December 2006 Location: Taiwan Status: Offline Points: 35 |
Post Options
Thanks(0)
|
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.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
No. Think its best solution.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
czlai
Groupie Joined: 18 December 2006 Location: Taiwan Status: Offline Points: 35 |
Post Options
Thanks(0)
|
I got it, thanks very much !
|
|
czlai
Groupie Joined: 18 December 2006 Location: Taiwan Status: Offline Points: 35 |
Post Options
Thanks(0)
|
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.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
call pPane->GetDockingSite()->GetWindowRect();
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
czlai
Groupie Joined: 18 December 2006 Location: Taiwan Status: Offline Points: 35 |
Post Options
Thanks(0)
|
It works !
Thank you very much !
|
|
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 |