Print Page | Close Window

CTXResizeDialog

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2663
Printed Date: 08 November 2025 at 4:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CTXResizeDialog
Posted By: MLatimer
Subject: CTXResizeDialog
Date 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();

    }




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



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