Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Retrive Floating Pane Sized Events in MainFrame
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Retrive Floating Pane Sized Events in MainFrame

 Post Reply Post Reply
Author
Message
czlai View Drop Down
Groupie
Groupie
Avatar

Joined: 18 December 2006
Location: Taiwan
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote czlai Quote  Post ReplyReply Direct Link To This Post Topic: Retrive Floating Pane Sized Events in MainFrame
    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
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: 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
Back to Top
czlai View Drop Down
Groupie
Groupie
Avatar

Joined: 18 December 2006
Location: Taiwan
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote czlai Quote  Post ReplyReply Direct Link To This Post 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.
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: 05 September 2007 at 3:14am
No. Think its best solution.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
czlai View Drop Down
Groupie
Groupie
Avatar

Joined: 18 December 2006
Location: Taiwan
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote czlai Quote  Post ReplyReply Direct Link To This Post Posted: 05 September 2007 at 3:47am
I got it, thanks very much !
Back to Top
czlai View Drop Down
Groupie
Groupie
Avatar

Joined: 18 December 2006
Location: Taiwan
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote czlai Quote  Post ReplyReply Direct Link To This Post 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.
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: 05 September 2007 at 5:21am
Hi,
 
call pPane->GetDockingSite()->GetWindowRect();
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
czlai View Drop Down
Groupie
Groupie
Avatar

Joined: 18 December 2006
Location: Taiwan
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote czlai Quote  Post ReplyReply Direct Link To This Post Posted: 05 September 2007 at 8:49pm
It works !
Thank you very much !
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.141 seconds.