zoukankan      html  css  js  c++  java
  • 14)显示树状目录

    1)接着之前的代码

    2)最终结果展示:

            

    3)基本步骤:

          

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

          

     1 // CTree 消息处理程序
     2 void CTree::InsertOnePage(HTREEITEM hitem,CString cpath)
     3  {
     4      
     5      if(hitem==0||cpath==L"")
     6      {
     7         return ;
     8      }
     9      CFileFind cfile;
    10     BOOL flag= cfile.FindFile(cpath+L"\*.*");
    11     while(flag)
    12     {
    13         flag=cfile.FindNextFile();
    14         if(cfile.IsDots()==true)
    15         {
    16             continue;
    17         }
    18         CString stName=cfile.GetFileName();
    19         this->InsertItem(stName,hitem);
    20         
    21     }
    22 
    23  }

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

            

     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~·

          最终结果显示

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

            

  • 相关阅读:
    053(四十四)
    053(四十三)
    053(四十二)
    053(四十一)
    053(四十)
    053(三十九)
    053(三十八)
    053(三十七)
    053(三十六)
    【leetcode❤python】231. Power of Two
  • 原文地址:https://www.cnblogs.com/xiaoyoucai/p/8365120.html
Copyright © 2011-2022 走看看