zoukankan
html css js c++ java
选择路径对话框
CString CPublicFuncs::GetFilePath(CString title)
{
CString strFilePath;
TCHAR pszBuffer[_MAX_PATH];
BROWSEINFO bi; LPITEMIDLIST pidl;
bi.hwndOwner
=
NULL;
bi.pidlRoot
=
NULL;
bi.pszDisplayName
=
pszBuffer;
bi.lpszTitle
=
title;
bi.ulFlags
=
BIF_RETURNFSANCESTORS
|
BIF_RETURNONLYFSDIRS;
bi.lpfn
=
NULL;
bi.lParam
=
0
;
if
((pidl
=
SHBrowseForFolder(
&
bi))
!=
NULL)
{
if
(SHGetPathFromIDList(pidl, pszBuffer))
{
CString strTemp(pszBuffer); strFilePath
=
strTemp;
if
(strFilePath.GetLength()
<=
1
)
{
}
else
if
(strFilePath.Right(
1
)
!=
_T(
"
\\
"
))
strFilePath
+=
_T(
"
\\
"
);
}
}
return
strFilePath;
}
查看全文
相关阅读:
2017.5.8下午
2017.5.8上午
2017.5.5下午
2017.5.5上午
2017.5.4下午
WPF DataGrid LoadingRow style 滚动失效
centos nginx 环境变量
Kettle-03-定时转换
Kettle-02-转换
Kettle-01-安装(CentOS 7 离线)
原文地址:https://www.cnblogs.com/strinkbug/p/743226.html
最新文章
Oracle安装注意点与工具使用简说
【java开发】封装与继承
【java开发】面向对象初步认识与基础概念讲解
【java开发】数组基本学习
【java开发】分支语句、循环语句学习
【java开发】数据类型
【java开发】ubuntu常用命令及环境搭建
Function类型以及函数表达式
【Core Spring】三、AOP
【Core Spring】二、装配beans
热门文章
第九章 接口
第八章 多态
第七章 复用类
第五章 初始化与清理
基本概念
2017.5.11上午
2017.5.10下午
2017.5.10上午
2017.5.9下午
2017.5.9上午
Copyright © 2011-2022 走看看