RunFileDialog

显示“运行”对话框。

语法

VOID WINAPI RunFileDlg(
  HWND hwndOwner,
  HICON hIcon,
  LPCTSTR lpstrDirectory,
  LPCTSTR lpstrTitle,
  LPCTSTR lpstrDescription,
  UINT uFlags
);
宽窄字符区分
 VOID WINAPI RunFileDlgW(
  HWND hwndOwner,
  HICON hIcon,
  LPCTSTR lpstrDirectory,
  LPCTSTR lpstrTitle,
  LPCTSTR lpstrDescription,
  UINT uFlags
);
VOID WINAPI RunFileDlgA(
  HWND hwndOwner,
  HICON hIcon,
  LPCTSTR lpstrDirectory,
  LPCTSTR lpstrTitle,
  LPCTSTR lpstrDescription,
  UINT uFlags
);

参数

hwndOwner

类型:HWND

所有者窗口句柄。

 

hIcon

类型:HICON

要显示的图标句柄。

 

lpstrDirectory

类型:LPCTSTR

未知用途。

 

lpstrTitle

类型:LPCTSTR

窗口标题的文字。

 

lpstrDescription

类型:LPCTSTR

窗口上的文本描述。

 

uFlags

类型:UINT

标志,可以取以下值的组合

含义
0x01 没有“浏览”按钮。
0x02 文本框中无默认值。
0x04 计算从文件名到工作路径。
0x08 去掉文本框前面的标签。
0x20 未知仅限Windows NT

要求

动态库:shell32.dll

函数索引:61

posted @ 2025-01-26 16:19  爱皮卡丘  阅读(25)  评论(0)    收藏  举报