Print Page | Close Window

ADD function

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=11380
Printed Date: 15 June 2025 at 5:55pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ADD function
Posted By: mosenkum
Subject: ADD function
Date Posted: 10 July 2008 at 9:31am
CXTPControl* pControl = m_pControls->Add(xtpControlButton, FIRST_UNDO_COMMAND + 1, _T(""), m_nIndex + 1 , FALSE);
 
I am using this function to add item . when item get selected its repeat again. How to use this function.  or any other function available.
 
example:
 
senthil -> get selected in submenu
 
output:
senthil
senthil



Replies:
Posted By: Oleg
Date Posted: 10 July 2008 at 12:46pm
Just check that you didn't add control before...
 
if (m_pControls->FindControl(FIRST_UNDO_COMMAND + 1) == NULL)
...


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: mosenkum
Date Posted: 11 July 2008 at 12:11am

how to  use getsubmenu function in  xttoolkit.

In mfc  class it's working fine.

 



Posted By: Oleg
Date Posted: 11 July 2008 at 2:44am

Just

m_pControls->GetControl(i)->GetCommandBar();


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net