I'm trying to enable or disable some controls on my window depending on a Combo Box list selection.....
I've used this before with a Check Box selection and it worked OK, nevertheless it only gives me two diferent options (ON or OFF) and I would like to have more options....
Below the code I've used with success on a Check Box selection, Can anyone give an Idea on how to accomplish this in a ComboBox....
==============================================
void Dialog::OnCheck1()
{
UpdateData(TRUE);
if (m_Selection == TRUE)
{
GetDlgItem(IDC_HSN) ->ShowWindow(TRUE);
}
else
{
GetDlgItem(IDC_HSN) ->ShowWindow(FALSE);
}
}
==============================================