Print Page | Close Window

CXTPControlListBox message handle

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=20011
Printed Date: 06 May 2024 at 4:59am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPControlListBox message handle
Posted By: perfectplug
Subject: CXTPControlListBox message handle
Date 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!
 



Replies:
Posted By: vjedlicka
Date Posted: 16 October 2013 at 12:24pm
Having the same question...



-------------
Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11



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