zoukankan
html css js c++ java
MFC 中打开 文件,文件夹,以及删除文件,文件夹操作
/**************************************** 打开文件 **************************************/ void CFileSendClientDlg::OnOpenfile() { // TODO: Add your control notification handler code here POSITION pos= m_FileList.GetFirstSelectedItemPosition(); int _nSelect = m_FileList.GetNextSelectedItem(pos); if(_nSelect>=0){ ShellExecute(NULL,"Open",m_FileList.GetItemText(_nSelect,0),NULL,NULL,SW_SHOWNORMAL); }else { AfxMessageBox("请选择一个你要打开的文件"); } }
/**************************************** 打开文件目录 **************************************/ void CFileSendClientDlg::OnOpenpath() { ShellExecute(NULL,"Open","",NULL,NULL,SW_SHOWNORMAL); }
/**************************************** 删除文件 **************************************/ void CFileSendClientDlg::OnDelete() { // TODO: Add your control notification handler code here POSITION pos= m_FileList.GetFirstSelectedItemPosition(); int _nSelect = m_FileList.GetNextSelectedItem(pos); if(_nSelect>=0){ DeleteFile(m_FileList.GetItemText(_nSelect,0));// m_FileList.DeleteItem(_nSelect); }else { AfxMessageBox("请选择一个你要删除的文件"); } }
rmdir() DeleteDirectory(sTempDir) RemoveDirectory(sTempDir)
查看全文
相关阅读:
两栏自适应布局
说说bfc 和 HasLayout
春联式弹动广告
Centos7安装完毕后重启提示Initial setup of CentOS Linux 7 (core)的解决方法
2016年新剧《欢乐颂》里面的经典台词
硬盘怎么保养
如何保养与维护笔记本硬盘
仔细看完,你会成为微信高手
电脑之间用网线直接连接起来快速传送大文件技巧
阿里云9折优惠码 GQH4IT 使用方法如下:
原文地址:https://www.cnblogs.com/javawebsoa/p/2458430.html
最新文章
ubuntu wireshark 没有接口
ubuntu 启动项创建器 选择不了CD镜像,IOS镜像的解决方法
ubuntu Screen 的比较详细的命令
ubuntu 14.04 键盘快捷键显示
horizon 修改local的logging 配置
转:dashboard的简明教程
ubuntu 14.04下 horizon openstack_dashboard 的开发环境搭建
ubuntu 命令的快捷启动
ubuntu 14.04 unity 管理工具 unity-tweak-tool
echarts柱状图
热门文章
Js Linq
jQuery中(function($){})(jQuery)与$(function(){})
Sharepoint workflow 带有条件的循环
sharepoint designer
sharepoint等脚本加载完后再执行对应的方法
Caml语句中筛选当前用户UserID
pnp的getItemsByCAMLQuery
利用pnp获取用户的property
如果没有你<!DOCTYPE>
html与xhtml傻傻分不清楚
Copyright © 2011-2022 走看看