我想在程序中用SHELLEXECUTEINFO调用文件浏览对话框,应该如何写代码,请指教

解决方案 »

  1.   


       SHELLEXECUTEINFO ShExecInfo = {0};
       ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
       ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;
       ShExecInfo.hwnd = NULL;
       ShExecInfo.lpVerb = NULL;
       ShExecInfo.lpFile = "explorer.exe";
       ShExecInfo.lpParameters = "";
       ShExecInfo.lpDirectory = NULL;
       ShExecInfo.nShow = SW_SHOW;
       ShExecInfo.hInstApp = NULL;
       ShellExecuteEx(&ShExecInfo);
      

  2.   

    记得#include <ShellAPI.h>
      

  3.   

    文件浏览对话框
    为什么不用CFileDialog
      

  4.   

    动态设定CFileDialog然后再使用应该如何做呢
      

  5.   

    就是在程序中动态设定CFileDialog通用对话框,然后再用CFileDialog来打开和保存文件