Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Task Panel
  New Posts New Posts RSS Feed - Resizing a dialog in the panel
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Resizing a dialog in the panel

 Post Reply Post Reply
Author
Message
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 886
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: Resizing a dialog in the panel
    Posted: 15 October 2008 at 6:08pm
I have a group item in a task panel where the item is a CDialog based object. When the task panel, which is in a docking pane, is resized vertically, I am trying to resize the dialog box that is in the panel. After I resize it I set the window pos of the task panel itself.
 
However, after we resize the dialog, the task panel resizes the dialog back to its original height.
 
I can see that when I add the dialog to the group that the height of the dialog is captured at that time and that is the size the panel keeps resetting after I change the dialog size.
 
How do I tell the task panel (group item or group) that the window in the group has been resized so that the CJ component or components recalculate the size of the item?
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: 16 October 2008 at 5:12am
Hi,
 
Guess you need call pItem->SetSize for this item.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
BastianPL View Drop Down
Groupie
Groupie
Avatar

Joined: 15 April 2006
Status: Offline
Points: 69
Post Options Post Options   Thanks (0) Thanks(0)   Quote BastianPL Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2011 at 3:48pm
Ok, but what if I want to have a horizontal or vertical scrollbar displayed when control is smaller that it's content ( in this case dialog ).
Bastian
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.