Click to See Complete Forum and Search --> : Thanks guys!


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!

Michelle
March 29th, 1999, 12:41 AM
For those who replied,

Really appreciate your help.After trying and trying,all the questions I have

asked are finally solved.But that does not mean I will be gone.Will be

back asking questions soon!Cheers!