Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - [Closed] Maximise / Minimise / Close Painting
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[Closed] Maximise / Minimise / Close Painting

 Post Reply Post Reply
Author
Message
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Topic: [Closed] Maximise / Minimise / Close Painting
    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
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: 22 September 2006 at 12:06pm
Hello,
 
please update 10.3 to 10.3.1.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Posted: 22 September 2006 at 12:36pm
Thanks Oleg, I will.

I knew I had seen something somewhere...
Simon HB9DRV
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.500 seconds.