![]() |
PreTranslateMessage in CXTPControlComboBox? |
Post Reply
|
| Author | |
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
Topic: PreTranslateMessage in CXTPControlComboBox?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.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 October 2007 at 8:31am |
|
Hi,
Thanks. My next query is. Is there is any equivalent function to OnDestroy() in CXTPControlComboBox? Please.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 October 2007 at 3:20pm |
|
Hi,
you can use destructor or OnRemoved() method
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |