一个MFC风格的BrowseForFolder 封装类

 原文链接:CYABFFW: Yet Another BrowseForFolder Wrapper

      以良好的MFC风格将Shell API函数SHBrowseForFolder()封装为一个CWnd子类。

使用示例1

CYABFFW dlg();
if (IDOK == dlg.DoModal())
{
    CString s 
= dlg.GetPath();
    
// Do something with `s' 

使用示例2
CYABFFW dlg(_T("Please select a directory"), // Hint to user

            BIF_USE_NEWUI,                   
// Flags for the dlg

            
this,                            // Parent window

            CSIDL_DRIVES);                   
// Root of search

if (IDOK == dlg.DoModal())
{
    CString s 
= dlg.GetPath();
    
// Do something with `s' 


YABFFW.h

YABFFW.cpp

posted on 2008-06-20 11:04  Phinecos(洞庭散人)  阅读(1252)  评论(0编辑  收藏  举报

导航