Ribbon Tab Change |
Post Reply |
Author | |
barobax
Senior Member Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
Posted: 25 August 2008 at 11:20am |
Hi,
I want to monitor Ribbon Tab Change or Tab Changed and open application menu. Please help me. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Catch XTP_ID_RIBBONCONTROLTAB Command:
ON_COMMAND(XTP_ID_RIBBONCONTROLTAB, OnTabChange)
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
barobax
Senior Member Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
|
Thanks oleg,
how can I find this topic in MSDN ? |
|
barobax
Senior Member Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
|
does not WORK
ON_COMMAND(XTP_ID_RIBBONCONTROLTAB,OnTabChange) void CMainFrame::OnTabChange() { } |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Strange. have to.
OK, try to copy from our sample:
ON_NOTIFY(TCN_SELCHANGE, XTP_ID_RIBBONCONTROLTAB, OnRibbonTabChanged)
ON_NOTIFY(TCN_SELCHANGING, XTP_ID_RIBBONCONTROLTAB, OnRibbonTabChanging) void CMainFrame::OnRibbonTabChanged(NMHDR* pNMHDR, LRESULT* pRes)
{ NMXTPTABCHANGE* pNMTabChanged = (NMXTPTABCHANGE*)pNMHDR; if (pNMTabChanged->pTab)
{ TRACE(_T("Tab Changed, Caption = %s\n"), (LPCTSTR)pNMTabChanged->pTab->GetCaption()); } *pRes = 0; } void CMainFrame::OnRibbonTabChanging(NMHDR* /*pNMHDR*/, LRESULT* pRes)
{ *pRes = 0;
} |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
barobax
Senior Member Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
|
Work Correctly,
Thanks Oleg. |
|
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 |