Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Explorer type application

Explorer type application

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BicycleTheif
    wrote on last edited by
    #1

    i am trying to create a windows explorer type application in vc++.i am able to update the TreeView for the directory list. But i am unable to populate the ListView(right pane).i have listed the code below.. void CDirTreeDemoView::OnInitialUpdate() { CListView::OnInitialUpdate(); GetListCtrl ().InsertColumn (0, _T ("File Name"), LVCFMT_LEFT, 192); GetListCtrl ().InsertColumn (1, _T ("Size"), LVCFMT_RIGHT, 96); GetListCtrl ().InsertColumn (2, _T ("Last Modified"), LVCFMT_CENTER,128); } any help plz thanks

    P D 2 Replies Last reply
    0
    • B BicycleTheif

      i am trying to create a windows explorer type application in vc++.i am able to update the TreeView for the directory list. But i am unable to populate the ListView(right pane).i have listed the code below.. void CDirTreeDemoView::OnInitialUpdate() { CListView::OnInitialUpdate(); GetListCtrl ().InsertColumn (0, _T ("File Name"), LVCFMT_LEFT, 192); GetListCtrl ().InsertColumn (1, _T ("Size"), LVCFMT_RIGHT, 96); GetListCtrl ().InsertColumn (2, _T ("Last Modified"), LVCFMT_CENTER,128); } any help plz thanks

      P Offline
      P Offline
      P Rex
      wrote on last edited by
      #2

      BOOL CDirTreeDemoView::PreCreateWindow(CREATESTRUCT& cs) { cs.style |= LVS_EDITLABELS | LVS_REPORT; return CListView::PreCreateWindow(cs); } void CDirTreeDemoView::OnInitialUpdate() { CListView::OnInitialUpdate(); CListCtrl& refCtrl = GetListCtrl(); CMainFrame* pFrame = STATIC_DOWNCAST(CMainFrame, AfxGetMainWnd()); // insert columns refCtrl.InsertColumn(0, _T("File Name"), LVCFMT_LEFT, 192); refCtrl.InsertColumn(1, _T("Size"), LVCFMT_RIGHT, 96); refCtrl.InsertColumn(2, _T("Last Modified"), LVCFMT_CENTER, 128); DWORD dwExListStyles = LVS_EX_FULLROWSELECT; GetListCtrl().SetExtendedStyle(dwExListStyles); } Maybe this will help P.

      1 Reply Last reply
      0
      • B BicycleTheif

        i am trying to create a windows explorer type application in vc++.i am able to update the TreeView for the directory list. But i am unable to populate the ListView(right pane).i have listed the code below.. void CDirTreeDemoView::OnInitialUpdate() { CListView::OnInitialUpdate(); GetListCtrl ().InsertColumn (0, _T ("File Name"), LVCFMT_LEFT, 192); GetListCtrl ().InsertColumn (1, _T ("Size"), LVCFMT_RIGHT, 96); GetListCtrl ().InsertColumn (2, _T ("Last Modified"), LVCFMT_CENTER,128); } any help plz thanks

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        Nithyb wrote: But i am unable to populate the ListView Why? What problem(s) are you having?


        "One must learn from the bite of the fire to leave it alone." - Native American Proverb

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups