Code:
void ISREPAIR::OnSelchangeCombo1()
{
// TODO: Add your control notification handler code here
m_Dropdown;
char data [8] = "LVD-PTB";
UpdateData ();
CComboBox* pCB = (CComboBox*)GetDlgItem(IDC_COMBO1);
CString str;
pCB->GetWindowText(str);
if ((strcmp(m_Dropdown, data)==0))
{
MessageBox("LVD-PTB");
}
}
My thought was just to call the update code whenever the droplist was accessed which I thought could be done with the above code. Hope that answers your question about where I'm calling the code. I'm just using the combobox's function I added to its class OnSelchange.