Message Handling in Controls instead of Dialog
-
I've added message handlers for a ComboBox control to that combobox's class (a subclass of CComboBoxEx which I have defined) to handle messages such as WM_CHAR, etc. However, when I use that combobox in a Dialog, my message handlers are not triggered by the user interactions which they are supposed to respond to. Any ideas on what is going on or how i can solve this problem would be much appreciated. Ben
-
I've added message handlers for a ComboBox control to that combobox's class (a subclass of CComboBoxEx which I have defined) to handle messages such as WM_CHAR, etc. However, when I use that combobox in a Dialog, my message handlers are not triggered by the user interactions which they are supposed to respond to. Any ideas on what is going on or how i can solve this problem would be much appreciated. Ben
-
I've added message handlers for a ComboBox control to that combobox's class (a subclass of CComboBoxEx which I have defined) to handle messages such as WM_CHAR, etc. However, when I use that combobox in a Dialog, my message handlers are not triggered by the user interactions which they are supposed to respond to. Any ideas on what is going on or how i can solve this problem would be much appreciated. Ben
As I understood you have your own class CComboBoxEx in which you have implemented a handler for WM_CHAR, right? And more you want to use this combo in your dialog. Then if this is correct then add a combobox to your dialog by dragging it from the resource editor and add a member variable to that combo of the type CComboBox. Then go where your variable was added and change the variable from type CComboBox to CComboBoxEx. I hope I understood corectly your question...