![]() |
ADD function |
Post Reply
|
| Author | |
mosenkum
Groupie
Joined: 09 July 2008 Location: India Status: Offline Points: 25 |
Post Options
Thanks(0)
Quote Reply
Topic: ADD functionPosted: 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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
mosenkum
Groupie
Joined: 09 July 2008 Location: India Status: Offline Points: 25 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 July 2008 at 12:11am |
|
how to use getsubmenu function in xttoolkit. In mfc class it's working fine.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 July 2008 at 2:44am |
|
Just m_pControls->GetControl(i)->GetCommandBar();
|
|
|
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 |