![]() |
CXTPTabClientWnd & MDI Activate |
Post Reply ![]() |
Author | |
jimmy ![]() Senior Member ![]() Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi, Not sure why you do it.
TabClient have automatically select Active MDI Child ? What is point ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
jimmy ![]() Senior Member ![]() Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
jimmy ![]() Senior Member ![]() Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |
![]() ![]() ![]() ![]() ![]() |
Thanks,
Notify for selection changed will be nice. But this help now. Jimmy |
|
![]() |
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 |