Print Page | Close Window

Reset Toolbar doubt?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=8647
Printed Date: 14 November 2025 at 3:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Reset Toolbar doubt?
Posted By: Ashok
Subject: Reset Toolbar doubt?
Date Posted: 02 November 2007 at 8:09am
Hi,
  Is it possible to find whether reset toolbar is pressed or not. I want to find whether reset toolbar is clicked because I have to implement some code if reset toolbar in the Toolbar is clicked. Please help.



Replies:
Posted By: Oleg
Date Posted: 02 November 2007 at 10:32am
Hello,
 
You can override
void Reset(BOOL bShowWarningMessage);
method.


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


Posted By: Ashok
Date Posted: 03 November 2007 at 4:47am
Hi,
  ya, I am doing that but I want to capture the state of whether user pressed the OK or CANCEL, because if cancel i have to skip my code. How can I know the state of the OK or CANCEL button pressed while reseting the toolbar.


Posted By: Oleg
Date Posted: 05 November 2007 at 1:03am

Hello,

May be even better catch WM_XTP_CUSTOMIZATION_RESETTOOLBAR message in CMainFrame - it will be called only if user press Ok.


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


Posted By: Ashok
Date Posted: 06 November 2007 at 4:56am
Hi,
Please send some code related to that.


Posted By: Oleg
Date Posted: 06 November 2007 at 6:22am
 
ON_MESSAGE(WM_XTP_CUSTOMIZATION_RESETTOOLBAR, OnResetToolBar)
...


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


Posted By: Ashok
Date Posted: 16 November 2007 at 12:38am

Hi,

I am doing the same thing what your are suggested earlier but I want to know which toolbar's (reset toolbar) I have clicked.

LRESULT JMainFrame::OnResetToolBar(WPARAM wParam, LPARAM lParam)

{

LRESULT lRet;

if(GetBarID() != IDR_STAT_TOOLBAR)return 0; -- How can I check like this, because if I clicked the reset toolbar in the IDR_STAT_TOOLBAR then only my code should work otherwise it should skip the process.

Please help.


Posted By: Ashok
Date Posted: 16 November 2007 at 6:21am
Hi,
  Please look into this issue.


Posted By: Oleg
Date Posted: 16 November 2007 at 6:52am
Hi,
Is it so difficult to open sources and check what parameters passed ?
 
lParam is pointer to toolbar:
 
CXTPToolBar* pToolBar = (CXTPToolBar*)lParam;


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



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