Print Page | Close Window

CXTPTabClientWnd & MDI Activate

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=15198
Printed Date: 27 February 2025 at 2:55pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPTabClientWnd & MDI Activate
Posted By: jimmy
Subject: CXTPTabClientWnd & MDI Activate
Date Posted: 17 September 2009 at 3:05am
On our FrameWnd we have
WM_MDIACTIVATE message.
In this message handler we ask XTPTabClientWnd for
Select Item.

On Click it work correct, but with CTRL-TAB it work not correct.
Because

LRESULT CXTPTabClientWnd::OnMDINext(WPARAM /*wParam*/, LPARAM /*lParam*/)
{
    LRESULT lResult = Default();
    UpdateContents();
    return lResult;
}

But in Default function SendMessage(WM_MDIACTIVATE) is called.
But the selected Tab will change in UpdateContents() (SetSelectedItem)

Any solution ?

  Jimmy




Replies:
Posted By: Oleg
Date Posted: 17 September 2009 at 8:03am

Hi,

Not sure why you do it.
TabClient have automatically select Active MDI Child ? What is point ?


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


Posted By: jimmy
Date Posted: 17 September 2009 at 8:27am
Hi,

We make some action, if Frame/View is activated.
And in this action we check the selected item/frame with the focus window.
And in this case we have trouble. With CTRL-TAB the Selected Item will changed after
WM_MDIACTIVATE.

  Jimmy



Posted By: Oleg
Date Posted: 18 September 2009 at 8:03am
Hi,
 
UpdateContents is public method, so you can call it in your WM_MDIACTIVATE handler to be sure all refreshed now


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


Posted By: jimmy
Date Posted: 18 September 2009 at 8:49am
Thanks,

Notify for selection changed will be nice.
But this help now.

  Jimmy




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