There is a method to get m_hWnd of CComboBox ?
-
There is a method to get m_hWnd of dropdown list of CComboBox , of course , except GetComboBoxInfo(...) ? I need to get that handle to work on Windows NT SP6 , and there I haven't COMBOBOXINFO struct and GetComboBoxInfo ... :( I try this[^] method , but is not good for me for two reason : 1. Don't function 'nCtlColor == CTLCOLOR_LISTBOX' part , I don't know why 2. This handle will be avaiable only after I clicked to dropdown button of CComboBox , and I needed in PreSublclassWindow already . Thank you .
-
There is a method to get m_hWnd of dropdown list of CComboBox , of course , except GetComboBoxInfo(...) ? I need to get that handle to work on Windows NT SP6 , and there I haven't COMBOBOXINFO struct and GetComboBoxInfo ... :( I try this[^] method , but is not good for me for two reason : 1. Don't function 'nCtlColor == CTLCOLOR_LISTBOX' part , I don't know why 2. This handle will be avaiable only after I clicked to dropdown button of CComboBox , and I needed in PreSublclassWindow already . Thank you .
I don't know the answer, but I will give you a few ideas. Are you sure this is not just an SDK version problem? Have you tried sending the CB_GETCOMBOBOXINFO to the combobox on WinNT? If it's not in the SDK, you can define it along with a COMBOBOXINFO struct and then send the message for testing purposes. Nothing bad will happen, and you will see if the COMBOBOXINFO data changes. If it does, fine, if it doesn't you will need another approach. Most of the MSDN documentation says minimum supported client = Windows 2000 professional, even though the messages has been around since at least Win 3.1. AddString[^] example. Are you sure the list box is even created when you want to subclass the control? Finally, have a look at the implementation of a ComboTree[^].