Hi!
How can I get a pointer to the edit control of
a combobox?
Thanks in advance
Holger
Printable View
Hi!
How can I get a pointer to the edit control of
a combobox?
Thanks in advance
Holger
Did you try to to GetDlgItem with a value of 1001, it is an undocumented feature that has seen widespread use
CEdit* pComboEdit = (CEdit*)GetDlgItem(IDC_XXXXX); // XXXXX is the name of your combobox
Depending upon what you need it for (Dialog based, SDI, MDI, etc.), you may have to add this:
CEdit* pComboEdit = (CEdit*)(GetDlgItem(IDC_XXXXX)->GetWindow(GW_CHILD) );