Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXTPControlListBox message handle
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPControlListBox message handle

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


Joined: 02 August 2012
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote perfectplug Quote  Post ReplyReply Direct Link To This Post Topic: CXTPControlListBox message handle
    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!
 
Back to Top
vjedlicka View Drop Down
Senior Member
Senior Member


Joined: 04 September 2007
Status: Offline
Points: 122
Post Options Post Options   Thanks (0) Thanks(0)   Quote vjedlicka Quote  Post ReplyReply Direct Link To This Post Posted: 16 October 2013 at 12:24pm
Having the same question...

Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11
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.140 seconds.