CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 1999
    Posts
    1

    Directory Folders

    How would I go about displaying folder names of the C Drive in a CComboBox.
    I have been looking around for hours and have found no help.
    Thanks


  2. #2
    Join Date
    May 1999
    Location
    G day Mayt Land
    Posts
    971

    Re: Directory Folders

    Not clear.
    Two issues here and i m not sure which one you are having proble with.
    Is it populating the combobox?

    m_pCombo = new CComboBox();
    m_pCombo->SubclassDlgItem(IDC_COMBO , this);
    ...

    for(all your elements of i)
    m_pCombo->AddString(szdir[i]);

    ...
    //and to see which row has been selected
    int index=m_pCombo->GetCurSel();



    or is it fetching the Directory names?
    then you need to explain more ..........



    Using Java version on windows 1.8_51

  3. #3
    Join Date
    May 1999
    Location
    G day Mayt Land
    Posts
    971

    Re: Directory Folders

    Not clear.
    Two issues here and i m not sure which one you are having proble with.
    Is it populating the combobox?

    m_pCombo = new CComboBox();
    m_pCombo->SubclassDlgItem(IDC_COMBO , this);

    for(all your elements of i)
    m_pCombo->AddString(szdir[i]);
    /*and to see which row has been selected*/
    int index=m_pCombo->GetCurSel();



    or is it fetching the Directory names?
    then you need to explain more
    [/ccode]

    Using Java version on windows 1.8_51

  4. #4
    Join Date
    Aug 1999
    Location
    Somerset, England
    Posts
    20

    Re: Directory Folders

    Try looking at DlgDirList, not quite a combo box but close.

    Regards,

    James.



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