![]() |
Ribbon MDI - State of Child Windows |
Post Reply ![]() |
Author | |
lightheart ![]() Newbie ![]() Joined: 20 August 2008 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
lightheart ![]() Newbie ![]() Joined: 20 August 2008 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
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); } |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |