How to i insert item into the combo box using coding
im using MFC dialog
This is a discussion on Combo Box ::MFC within the Windows Programming forums, part of the Platform Specific Boards category; How to i insert item into the combo box using coding im using MFC dialog...
How to i insert item into the combo box using coding
im using MFC dialog
One of the way is to use GetDlgItem with combobox resource id & cast it to CComboBox MFC class & then use AddString member to add an item.
CComboBox p_cbox = (CComboBox*) GetDlgItem(/* combobox rc id */);
p_cbox->AddString("Item1");
OR u can use DDX mechanism..
OR u can use subclassing