Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - PreTranslateMessage in CXTPControlComboBox?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

PreTranslateMessage in CXTPControlComboBox?

 Post Reply Post Reply
Author
Message
Ashok View Drop Down
Senior Member
Senior Member


Joined: 02 May 2007
Status: Offline
Points: 164
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ashok Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Ashok View Drop Down
Senior Member
Senior Member


Joined: 02 May 2007
Status: Offline
Points: 164
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ashok Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Ashok View Drop Down
Senior Member
Senior Member


Joined: 02 May 2007
Status: Offline
Points: 164
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ashok Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2007 at 8:31am
Hi,
Thanks. My next query is. Is there is any equivalent function to    OnDestroy() in CXTPControlComboBox? Please.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2007 at 3:20pm
Hi,
 
you can use destructor or OnRemoved() method
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.031 seconds.