![]() |
GetSelectedTab() of CXTPRibbonTab returns NULL |
Post Reply ![]() |
Author | |
danielbu ![]() Newbie ![]() Joined: 11 February 2011 Location: CAnada Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 11 February 2011 at 4:40pm |
Hi,
I call GetSelectedTab() in OnCmdMsg method of my main window class and it returns NULL. This is odd as I clearly select t ab on my ribbon. Any clues?? Here is the code in my override of OnCmdMsg: CXTPRibbonBar* pRibbon = tabHost->GetRibbon(); if (pRibbon) { CXTPRibbonTab* pTab = pRibbon->GetSelectedTab(); // here I get NULL :( if (pTab) { int tabId = pTab->GetID(); switch (tabId) { case ID_TAB_EXPLORER: if (m_pExplorerHost) { m_pExplorerHost->OnCmdMsg(nID, nCode, pExtra, pHandlerInfo); RibbonPaneSetFocus(IDR_PANE_EXPLORER, tabId); } return TRUE; ... } } Help is greatly appreciated.
|
|
dan
|
|
![]() |
|
danielbu ![]() Newbie ![]() Joined: 11 February 2011 Location: CAnada Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
In addition to the above need to mention this:
Use ToolkitPro 13 on Windows Vista 64 bit machine. |
|
dan
|
|
![]() |
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 |