Print Page | Close Window

PreTranslateMessage in CXTPControlComboBox?

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=8504
Printed Date: 14 November 2025 at 1:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: PreTranslateMessage in CXTPControlComboBox?
Posted By: Ashok
Subject: PreTranslateMessage in CXTPControlComboBox?
Date Posted: 23 October 2007 at 5:25am
Hi,
  I have a class which is derived from CXTPControlComboBox. I want to implement PreTranslateMessage in the combo box code. How I can do? Is it possible? Please give me the solution. If it is not possible what is the alternate way to implement that? Please help.



Replies:
Posted By: Oleg
Date Posted: 23 October 2007 at 6:06am
Hi,
CXTPControlComboBox is not CWnd derived class and doesn't have PreTranslateMessage. What message you need catch in PreTranslateMessage?


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


Posted By: Ashok
Date Posted: 23 October 2007 at 8:19am
Hi,
 The problem is SetCurSel() is automatically calling the OnSelChanged() method,but I have some settings in the OnSelChanged(). So whenever if I call SetCurSel() the code in the OnSelChanged is running. I do not want the SetCurSel to call the OnSelChanged() Method. How? Please Help.


Posted By: Oleg
Date Posted: 23 October 2007 at 8:21am
Hi,
 
Don't see how PreTranslateMessage can help here...
 
Anyway. you can add some BOOL  variable in your derived class and before call SetCurSel set it to true/ after call set to FALSE and check this variable in OnSelChanged.


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


Posted By: Ashok
Date Posted: 24 October 2007 at 8:31am
Hi,
Thanks. My next query is. Is there is any equivalent function to    OnDestroy() in CXTPControlComboBox? Please.


Posted By: Oleg
Date Posted: 24 October 2007 at 3:20pm
Hi,
 
you can use destructor or OnRemoved() method


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



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