Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - how to find sub-menu items
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to find sub-menu items

 Post Reply Post Reply
Author
Message
Pearl View Drop Down
Newbie
Newbie


Joined: 17 September 2007
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pearl Quote  Post ReplyReply Direct Link To This Post Topic: how to find sub-menu items
    Posted: 18 September 2007 at 5:17pm
Hi
 
I want to find a menu item, for example, Select Surface, which is seat in the main menu Edit -> Selection Tools -> Select Surface, and its identifier ID is ID_SELECT_OBJECT. My code is like
 
   CMainFrame *mainframe = (CMainFrame *)theApp.m_pMainWnd;
    CXTPCommandBars* pCommandBars = mainframe->pCommandBars;
    CXTPControl* pSubMenu = pCommandBars->FindControl(xtpControlPopup, ID_SELECT_OBJECT, TRUE, TRUE);
 
 
However, it's never found out, what's wrong with my code?
 
Thanks in advance
 
Pearl
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2007 at 4:54am
Hi,
try instead xtpControlPopup use xtpControlButton
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.