souldog
May 2nd, 2003, 01:54 PM
I would like to get the handle to the edit control of a combo box with the style CBS_DROPDOWN. Let me say that I am using VC 6.0 and this combo box is a CComboBox added to a dialog with the dialog editor.
My attempt was to use
pCB is a pointer to the combo box
COMBOBOXINFO CBInfo;
::GetComboBoxInfo(pCB->m_Hwnd, &CBInfo);
CBInfo.hwndItem is the handle to the edit box.
Problem is that I get errors saying
COMBOBOXINFO indeclared identifier
GetComboBoxInfo is not a member of the global namespace
As far as I can tell the include needed is Windows.h so I do not know what is wrong here?
My attempt was to use
pCB is a pointer to the combo box
COMBOBOXINFO CBInfo;
::GetComboBoxInfo(pCB->m_Hwnd, &CBInfo);
CBInfo.hwndItem is the handle to the edit box.
Problem is that I get errors saying
COMBOBOXINFO indeclared identifier
GetComboBoxInfo is not a member of the global namespace
As far as I can tell the include needed is Windows.h so I do not know what is wrong here?