![]() |
CTXResizeDialog |
Post Reply
|
| Author | |
MLatimer
Newbie
Joined: 20 June 2005 Location: United Kingdom Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
Topic: CTXResizeDialogPosted: 31 July 2005 at 3:06am |
|
In our application, we "dock" dialogs together. When we do this, we
remove the titlebar. The casuses the resize grip to be positioned up
the dialog (see image),
We have tried resizing the window to allow for this (see commented out code below). The code that hides the caption follows: Any sugesstions? // Get Size GetWindowRect(rectInst); // Get current style DWORD style = GetStyle (); // If we are already showing the caption, no further action if(style & WS_CAPTION) { // Hide the Caption ModifyStyle(WS_CAPTION, 0, 0); // Decrease the size of the window to allow for the caption int nCaption = GetSystemMetrics(SM_CYCAPTION); // SetWindowPos(&wndTopMost, 0, 0, rectInst.Width(), rectInst.Height() - nCaption, SWP_NOMOVE); // OnSize(SIZE_MAXSHOW, rectInst.Width(), rectInst.Height() - nCaption); // Redraw the window Invalidate(); } ![]() |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 31 July 2005 at 1:33pm |
|
You can set xtResizeNoSizeIcon flag in dialog base Constructor to remove it at all. Also try to call Init() _after_ you remove caption.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |