Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

how to access CDocker in ListView

Help
diyalcin
2012-06-11
2013-05-28
  • diyalcin
    diyalcin
    2012-06-11

    hi
    I'm sorry, my English is not good.
    my problem->
    how to access CDocker in ListView

    I tried this way but did not.

    CViewList & mDockFiles = (CViewList &) GetDockApp (). GetMainFrame (). GetDockFiles ().GetViewList ();
        //MainFrame OnCommand()
    case IDM_DELETEALLITEMS:
          mDockFiles.DeleteAllItems();
        return TRUE;
    

    Can you make a sample

    I'm sorry, my English is not. Thank you in advance for your help.

     
  • diyalcin
    diyalcin
    2012-06-13

    I found a method.

            CDockFiles* pDockParent = (CDockFiles*)m_DockView.GetDockFromID(ID_DOCK_FILES1);
            pDockParent->GetViewListView().AddItem(_T("New Item"),1);