Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CTXResizeDialog
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CTXResizeDialog

 Post Reply Post Reply
Author
Message
MLatimer View Drop Down
Newbie
Newbie


Joined: 20 June 2005
Location: United Kingdom
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote MLatimer Quote  Post ReplyReply Direct Link To This Post Topic: CTXResizeDialog
    Posted: 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();

    }

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
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.031 seconds.