![]() |
CCmdUI * pCmdUI -> m_pMenu = NULL? |
Post Reply
|
| Author | |
corapollo
Newbie
Joined: 10 March 2008 Location: China Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Topic: CCmdUI * pCmdUI -> m_pMenu = NULL?Posted: 10 March 2008 at 9:52pm |
|
I implement ON_UPDATE_COMMAND_UI message handler.
But pCmdUI->m_pMenu is NULL. How can I use this member? |
|
|
Oh, Apollo...
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 March 2008 at 6:39am |
|
Hi,
CommandBars Popups derived from CWnd and don't use CMenu. You need replace your code to use CXTPCommandBar methods instead of CMenu's.
For example:
void CMainFrame::OnUpdateItem2(CCmdUI* pCmdUI)
{ CXTPControl* pControl = CXTPControl::FromUI(pCmdUI); if (pControl) { pControl->SetVisible(m_bShowItem); } }
|
|
|
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 |