Print Page | Close Window

Wish: Maximize

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=8557
Printed Date: 26 April 2024 at 6:28pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Wish: Maximize
Posted By: Simon HB9DRV
Subject: Wish: Maximize
Date 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



Replies:
Posted By: Oleg
Date 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


Posted By: Simon HB9DRV
Date 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


Posted By: znakeeye
Date 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().


Posted By: znakeeye
Date 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);



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