![]() |
Reset Toolbar doubt? |
Post Reply
|
| Author | |
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
Topic: Reset Toolbar doubt?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.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 November 2007 at 10:32am |
|
Hello,
You can override
void Reset(BOOL bShowWarningMessage);
method.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 November 2007 at 4:56am |
|
Hi,
Please send some code related to that.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 November 2007 at 6:22am |
|
ON_MESSAGE(WM_XTP_CUSTOMIZATION_RESETTOOLBAR, OnResetToolBar)
...
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 November 2007 at 6:21am |
|
Hi,
Please look into this issue.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
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 |