CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Thanks guys!

  1. #1
    Join Date
    Mar 1999
    Location
    Virginai
    Posts
    4

    Thanks guys!



    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!

  2. #2
    Join Date
    Mar 1999
    Location
    Virginai
    Posts
    4

    My problems are solved!



    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured