Print Page | Close Window

[Closed] Maximise / Minimise / Close Painting

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=5121
Printed Date: 21 December 2024 at 8:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [Closed] Maximise / Minimise / Close Painting
Posted By: Simon HB9DRV
Subject: [Closed] Maximise / Minimise / Close Painting
Date Posted: 22 September 2006 at 4:34am
Using CXTPTabClientWnd!

When I start my MDI application I create an initial view which is maximised:

    //
    //    Dispatch commands specified on the command line.
    //
    if (!ProcessShellCommand(cmdInfo))
        return FALSE;

    //
    //    Start maximised.
    //
    POSITION posDoc = m_pStandardFormTemplate->GetFirstDocPosition();

    while(posDoc)
    {
        CDocument* pDoc = m_pStandardFormTemplate->GetNextDoc(posDoc);

        POSITION posView = pDoc->GetFirstViewPosition();

        if (posView)
        {
            CMDIChildWnd* pFrame = ((CMDIChildWnd*)pDoc->GetNextView(posView)->GetParentFrame());

            pMainFrame->MDIMaximize(pFrame);

            break;
        }
        else
            _ASSERT(0);
    }


The standard minimise / maximise / close buttons are not painted until I move the mouse over them or cause a repaint.

What is the sensible way of ensuring these buttons are painted at startup? I guess there's a message I can send.


-------------
Simon HB9DRV



Replies:
Posted By: Oleg
Date Posted: 22 September 2006 at 12:06pm
Hello,
 
please update 10.3 to 10.3.1.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Simon HB9DRV
Date Posted: 22 September 2006 at 12:36pm
Thanks Oleg, I will.

I knew I had seen something somewhere...


-------------
Simon HB9DRV



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