Michelle
March 28th, 1999, 06:34 PM
YES!It worked!I din realized that one little '=' matters so much.Thank you
those who replied.However,I have another problem,using a 'master' combo box,I
want to disable certain 'slave' combo boxes temporarily by clicking the
master combo box.A code snipplet is shown below:
void CTestcomboDlg::OnSelchangeCombo1()
{ // TODO: Add your control notification handler code here
if (m_combo.GetItemData(0))
{
GetDlgItem(IDC_COMBO2)->ShowWindow(SW_HIDE);
}
if (m_combo.GetItemData(1))
{
GetDlgItem(IDC_COMBO3)->ShowWindow(SW_HIDE);
}
if (m_combo.GetItemData(2))
{
GetDlgItem(IDC_COMBO4)->ShowWindow(SW_HIDE);
}
}
m_combo is the 'master' combo box while the rest are 'slave' combo boxes.
Is there anything wrong here?Thanks!
those who replied.However,I have another problem,using a 'master' combo box,I
want to disable certain 'slave' combo boxes temporarily by clicking the
master combo box.A code snipplet is shown below:
void CTestcomboDlg::OnSelchangeCombo1()
{ // TODO: Add your control notification handler code here
if (m_combo.GetItemData(0))
{
GetDlgItem(IDC_COMBO2)->ShowWindow(SW_HIDE);
}
if (m_combo.GetItemData(1))
{
GetDlgItem(IDC_COMBO3)->ShowWindow(SW_HIDE);
}
if (m_combo.GetItemData(2))
{
GetDlgItem(IDC_COMBO4)->ShowWindow(SW_HIDE);
}
}
m_combo is the 'master' combo box while the rest are 'slave' combo boxes.
Is there anything wrong here?Thanks!