CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 1999
    Location
    Germany (south)
    Posts
    147

    CComboBox in CDialogBar

    Hi there,
    the problem is: how can I select an item of a ComboBox at the start(!) (e.g. "Hallo" should be written at the beginning). No problem if the ComboBox is in a Dialog, but
    what have I to do if the ComboBox is in a DialogBar...?

    Thanx, ANDI


  2. #2
    Join Date
    Jun 1999
    Location
    Germany (south)
    Posts
    147

    Re: CComboBox in CDialogBar

    ...sorry, I found the solution 5 minutes later by myself......but if anyone else wants to know:

    Write in your CMainFrame OnCreate():
    CComboBox* aBox = (CComboBox*)m_wnd_a_DialogBar.GetDlgItem(ID_.....);
    aBox->SetCurSel(0);

    Thanx at all,
    ANDI



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