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;
}
查看全文
相关阅读:
msp430项目编程57
msp430项目编程56
msp430项目编程55
msp430项目编程54
msp430项目编程53
msp430项目编程52
msp430项目编程51
msp430项目编程50
msp430项目编程47
msp430项目编程46
原文地址:https://www.cnblogs.com/strinkbug/p/743226.html
最新文章
2.13 Hive中自带Function使用及自定义UDF编程
2.12 Hivet中order by,sort by、distribute by和cluster by
2.11 Hive中数据导入导出Import和Export使用
2.9-2.10 hive中常见查询
2.7-2.8 导入、导出数据(进/出)hive表的方式
2017 Multi-University Training Contest
ecjtu-summer training #8
二次筛选区间素数 POJ2689
ecjtu-summer training #7
简单DP
热门文章
51nod 1256 扩展欧几里得
LCA在线处理 基于二分搜索
51nod 1242 斐波那契数列的第N项
51nod 1185 威佐夫博奕
51nod 1183 编辑距离
msp430入门学习34
msp430入门学习33
msp430入门学习32
msp430入门学习31
msp430项目编程60
Copyright © 2011-2022 走看看