Print Page | Close Window

Event Handler for CXTListCtrl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2657
Printed Date: 04 September 2025 at 9:43am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Event Handler for CXTListCtrl
Posted By: GM20
Subject: Event Handler for CXTListCtrl
Date Posted: 28 July 2005 at 3:47pm
I graphically created a List Control object in an MFC dialog.
Programatically, I mapped that List Control to a CXTListCtrl, and I have been able to populate the CXTListCtrl just fine.

However, I have not been able to successful add an Event Handler to this CXTListCtrl.  I tried to use the Event Handler Wizard to add the event.  Here is my code for my event.

void CDlgMainStart::OnNMRclickStartList(NMHDR *pNMHDR, LRESULT *pResult)
{
    AfxMessageBox("Test");
    *pResult = 0;
}

What happens when I actually right-click on the CXTListCtrl is that my program freezes.

I have tested the above on a CListCtrl and it works perfectly.  However, I do not understand why it doesnt work for a CXTListCtrl.  Please help!




Replies:
Posted By: Oleg
Date Posted: 28 July 2005 at 11:42pm
What version do you have?

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


Posted By: GM20
Date Posted: 28 July 2005 at 11:51pm
I am currently linking in XTP9700EvalLibd.dll

Thanks.



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