Print Page | Close Window

Ribbon MDI - State of Child Windows

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=11899
Printed Date: 14 September 2025 at 8:28pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribbon MDI - State of Child Windows
Posted By: lightheart
Subject: Ribbon MDI - State of Child Windows
Date 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




Replies:
Posted By: lightheart
Date 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);
}



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