Print Page | Close Window

CXTPTabClientWnd - 'Active Files' button

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=9868
Printed Date: 01 March 2025 at 9:12am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPTabClientWnd - 'Active Files' button
Posted By: mgampi
Subject: CXTPTabClientWnd - 'Active Files' button
Date 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



Replies:
Posted By: Oleg
Date 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


Posted By: mgampi
Date 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


Posted By: Oleg
Date Posted: 13 March 2008 at 2:39pm
Hi,
in PerformClick.


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


Posted By: mgampi
Date 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



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