CXTPControlListBox message handle |
Post Reply |
Author | |
perfectplug
Newbie Joined: 02 August 2012 Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 02 August 2012 at 3:54am |
Help ,somebody help me!
How can i handle the CXTPControlListBox message ??
look at the code below...
pToolBarLogInfo->GetControls()->Add(xtpControlLabel, 0)->SetCaption(_T("CXTPControlListBox:"));
pPopupLogInfo = (CXTPControlPopup*)pToolBarLogInfo->GetControls()->Add(xtpControlPopup, 0); pPopupLogInfo->SetCaption(_T("ListBox")); pListBoxLogInfo= (CXTPControlListBox*)pPopupLogInfo->GetCommandBar()->GetControls()->Add(new CXTPControlListBox, 0); pListBoxLogInfo->GetListCtrl()->AddString(_T("Item 1")); pListBoxLogInfo->GetListCtrl()->AddString(_T("Item 2")); then we can see the list item , Item1 , Item2 , how can i add a message handle to the Item1 and Item2 .
I mean , if I click the Item1 ,the function1 will be called ,
if I click the Item2 ,the function2 will be called ,
How can I do that ,someboby give me help,please!
|
|
vjedlicka
Senior Member Joined: 04 September 2007 Status: Offline Points: 122 |
Post Options
Thanks(0)
|
Having the same question...
|
|
Thank you
Vaclav --------------------- ToolkitPro 20.1.0 VS2010-2022, Windows 11 |
|
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 |