CCombobox drawitem question
-
Hi I have i combobox with dropdownlist style ( and ownerdrawfixed | havestrings) am filling it using addstring method how can i get the text of an item in the drawitem method? thanks alot
-
Hi I have i combobox with dropdownlist style ( and ownerdrawfixed | havestrings) am filling it using addstring method how can i get the text of an item in the drawitem method? thanks alot
if you use WM_DRAWITEM maybe it is some helpful to you CString str; GetLBText(lpDrawItem->itemID, str);
-
if you use WM_DRAWITEM maybe it is some helpful to you CString str; GetLBText(lpDrawItem->itemID, str);
thanks alot it worked fine in drawitem method after testing that the itemid is in the valid range of indices. but the items seems so close to each other, how can this be solved? and how can i remove the border from the edit area of the combo? again thanks alot for your help
-
thanks alot it worked fine in drawitem method after testing that the itemid is in the valid range of indices. but the items seems so close to each other, how can this be solved? and how can i remove the border from the edit area of the combo? again thanks alot for your help
for border see COMBOBOXINFO[^]
-
thanks alot it worked fine in drawitem method after testing that the itemid is in the valid range of indices. but the items seems so close to each other, how can this be solved? and how can i remove the border from the edit area of the combo? again thanks alot for your help
like this only enter numbers in combobox
COMBOBOXINFO m_info; ZeroMemory(&m_info, sizeof(COMBOBOXINFO)); m_info.cbSize = sizeof(COMBOBOXINFO); m_Combo.GetComboBoxInfo(&m_info); ModifyStyle(m_info.hwndItem,0,ES_NUMBER,0);