Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Ribbon MDI - State of Child Windows
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ribbon MDI - State of Child Windows

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


Joined: 20 August 2008
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote lightheart Quote  Post ReplyReply Direct Link To This Post Topic: Ribbon MDI - State of Child Windows
    Posted: 20 August 2008 at 7:02am
Hello,
Using the Ribbon MDI Sample I see that it is possible to show All the Child windows normal or maximized. Being in one of the two states, how can one Query to find out in which state you are  currently in? Normal or Maxmimized State?

Maybe the CXTPTabClientWnd m_wndClient; knows, but I dont know how to Query it properly?

with kind regards
      Michael

Back to Top
lightheart View Drop Down
Newbie
Newbie


Joined: 20 August 2008
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote lightheart Quote  Post ReplyReply Direct Link To This Post Posted: 20 August 2008 at 8:14am
I already found the solution in the MDITabWindow sample:

void CChildFrame::ActivateFrame(int nCmdShow)
{
    // first window should be maximized
    if (GetParent()->GetWindow(GW_CHILD) == this)
    {
        nCmdShow = SW_SHOWMAXIMIZED;
    }

    CMDIChildWndBase::ActivateFrame(nCmdShow);
}
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.027 seconds.