Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXTPTabClientWnd - 'Active Files' button
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPTabClientWnd - 'Active Files' button

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: CXTPTabClientWnd - 'Active Files' button
    Posted: 12 March 2008 at 6:27am

Hi;
Our users urged us to extend the functionality of the 'Active Files' button in a CXTPTabClientWnd workspace.
Each time the user selects a minimized MDI child window, he/she wants the MDI child to be restored to its previous state. Currently the child is only activated by a MDIActivate call.
I looked into the source and only found a - not by user modifyable - CXTPTabClientWnd::CNavigateButtonActiveFiles::PerformClick() function.

So my question: What's the best way - perhaps without patching the toolkit sources - to react to MDI child selection via Active Files button?

Thanks in advance

Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 13 March 2008 at 11:06am
Hi,
Sounds like very good suggestion. We changed it for 12.0 release.
 
Just add in the end of MDIActivate
 
 if (pWnd->GetStyle() & WS_MINIMIZE)
  pWnd->SendMessage(WM_SYSCOMMAND, (WPARAM)SC_RESTORE, 0L);
 
and replace if (pItem && !pItem->IsSelected()) to if (pItem)
also now user can click Tab to restore MDI child.
 
 
 
Thanks, good suggestion.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 13 March 2008 at 1:59pm
Hi Oleg;
 
Thanks for your modifications. Sounds good that our customers have good ideas...
 
Do I have to change the second modification only in PerformClick(), or also in OnDragOver()?
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 13 March 2008 at 2:39pm
Hi,
in PerformClick.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 13 March 2008 at 5:58pm

Thanks Oleg ;

This works exactly as our customers want!
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
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.035 seconds.