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;
}
查看全文
相关阅读:
mysql中explain的type的解释
MySQL——合并查询结果
XML fragments parsed from previous mappers already contains value for xxxxx
XXXX is not in the sudoers file. This incident will be reported解决方法
Linux htop工具使用详解
Manifest merger failed : Attribute application@icon value=(@mipmap/ic_launcher) from AndroidManifest
使用FindBugs寻找bug,代码分析
MySQL中怎么对varchar类型排序问题(转)
Java 字符串拼接 五种方法的性能比较分析 从执行100次到90万次(转)
Apache No installed service named "Apache2.4"的解决办法
原文地址:https://www.cnblogs.com/strinkbug/p/743226.html
最新文章
android ButterKnife 点击事件没反应的解决方案
使用RecyclerView实现聊天界面
Program type already present: android.support.v4.widget.EdgeEffectCompat
android查看屏幕密度,分辨率的shell命令
android 使用Retrofit2 RxJava 文件上传
python开发环境安装
FileProvider相关 Failed to find configured root that contains
升级安装APK兼容Android7.0,解决FileUriExposedException
Android 获取手机内部信息,内核版本、基带版本、内部版本等
Es6 Promise 用法详解
热门文章
sessionStorage、localStorage 存储及如何存储数组与对象
js 操作数组(过滤对应数据)
js 操作数组(过滤对应数据)
vue 父组件向子组件传递事件/调用事件
vue 父组件向子组件传递事件/调用事件
vue2.0 网页标题更新实现思路
组件传参
vue+axios 前端实现登录拦截(路由拦截、http拦截)
mysql查看死锁和解除锁
mysql强制索引和禁止某个索引
Copyright © 2011-2022 走看看