Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Wish: Maximize
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Wish: Maximize

 Post Reply Post Reply
Author
Message
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Topic: Wish: Maximize
    Posted: 28 October 2007 at 11:39am
I would like to be able to maximize a floating frame so that it becomes full screen.
 
If it's possible I can't find a way of doing it.
 
Not essential but very nice to have.
Simon HB9DRV
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: 29 October 2007 at 2:19am
Hi,
Samples\DockingPane\DockingContainers sample show how to add custom buttons for frames. So just add Maximize button and call ShowWindow(SW_MAXIMIZED) in handler.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Posted: 29 October 2007 at 4:07am
Originally posted by oleg oleg wrote:

Hi,
Samples\DockingPane\DockingContainers sample show how to add custom buttons for frames. So just add Maximize button and call ShowWindow(SW_MAXIMIZED) in handler.
 
Thanks - I'll try this.
Simon HB9DRV
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 18 February 2008 at 3:16pm
How would you make a pane's child window occupy the whole screen in an MDI ribbon application? That is, "pure" fullscreen mode for the window set with CXTPDockingPane::Attach().
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 18 February 2008 at 3:21pm
Ok, I found a solution just after I posted my question. However, can you please comment it. Is it the right approach?
 
I have overridden OnCaptionButtonClick:
 
// Maximize:
GetSelected()->GetChild()->SetParent(GetDesktopWindow());
GetSelected()->GetChild()->ShowWindow(SW_MAXIMIZE);
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.203 seconds.