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;
}
查看全文
相关阅读:
【学习笔记】最小表示法
bzoj1912【Apio2010】patrol 巡逻
hdu1057
hdu1056
hdu1055
hdu1054
hdu1053
hdu1052
hdu1051
hdu1050
原文地址:https://www.cnblogs.com/strinkbug/p/743226.html
最新文章
BSS段、数据段、代码段、堆与栈
组合类详解
Ubuntu 17.4下如何安装VMwareTools
Ubuntu 17.4下如何安装和配置flash player
JAVA- 面向对象
JAVA- continue与break与return关键字
JAVA-三大语句(选择语句、条件语句、循环语句)
MyEclipse中文乱码解决方法
JAVA-关键字&标识符
JAVA-配置path环境
热门文章
如何在VMware Workstation上安装CentOS_7
Linux学习之路(三)搜索命令
【bzoj3926】【Zjoi2015】诸神眷顾的幻想乡
【bzoj4199】【Noi2015】品酒大会
【bzoj2938】【Poi2000】病毒
【bzoj2754】【scoi2012】喵星球上的点名
【学习笔记】回文自动机
【bzoj4310】跳蚤
【bzoj3238】【Ahoi2013】差异
【学习笔记】ac自动机&fail树
Copyright © 2011-2022 走看看