![]() |
how to find sub-menu items |
Post Reply ![]() |
Author | |
Pearl ![]() Newbie ![]() Joined: 17 September 2007 Status: Offline Points: 12 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
try instead xtpControlPopup use xtpControlButton
|
|
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 |