摘要: C#开发:openfiledialog的使用 文件对话框(FileDialog) 一、打开文件对话框(OpenFileDialog) 1、 OpenFileDialog控件有以下基本属性 InitialDirectory 对话框的初始目录 Filter 要在对话框中显示的文件筛选器,例如,"文本文件(*.txt)|*.txt|所有文件(*.*)||*.*" FilterIndex... 阅读全文
posted @ 2016-06-13 16:46 風行 阅读(5531) 评论(0) 推荐(0) 编辑
摘要: using System; namespace testClassApp { /// /// Class1 的摘要说明。 /// class Class1 { /// /// 应用程序的主入口点。 /// [STAThread] static void Main(st... 阅读全文
posted @ 2016-06-08 09:21 風行 阅读(732) 评论(0) 推荐(0) 编辑
摘要: Freme 类中 // CMainFrame construction/destruction CMainFrame::CMainFrame() { // TODO: add member initialization code here } CMainFrame::~CMainFrame() { 阅读全文
posted @ 2016-02-25 16:25 風行 阅读(1037) 评论(0) 推荐(0) 编辑
摘要: //在Frame类中,增加一个成员数组,HICON m_icon[3] //在Freame中添加,目的是对数组里的每个元素进行赋值 //setclasslong()是为了让初始的情况下,不显示MFC默认的ICON //定义定时器,然后Frame类中,添加WM_TIMER消息映射。 m_Icon[0] 阅读全文
posted @ 2016-02-25 16:25 風行 阅读(207) 评论(0) 推荐(0) 编辑
摘要: // TestDlg.cpp : implementation file // #include "stdafx.h" #include "Dlg.h" #include "TestDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE 阅读全文
posted @ 2016-02-25 16:24 風行 阅读(341) 评论(0) 推荐(0) 编辑
摘要: /*=================CWebWorld.h 头文件=======================*/ #include "wininet.h" class CWebWorld { public: void SetErrorMessage(CString s); CString Ge 阅读全文
posted @ 2016-02-25 16:23 風行 阅读(279) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h" #include "TestText.h" #include "TestTextDoc.h" #include "TestTextView.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE stat 阅读全文
posted @ 2016-02-25 16:23 風行 阅读(1077) 评论(0) 推荐(0) 编辑
摘要: CFileDialog dlg(true); dlg.m_ofn.lpstrInitialDir = "f:\新建文件夹"; CFileDialog dlg(true,NULL,NULL,OFN_HIDEREADONLY| OFN_OVERWRITEPROMPT,"文本文件(*.txt)|*.txt 阅读全文
posted @ 2016-02-25 16:23 風行 阅读(483) 评论(0) 推荐(0) 编辑
摘要: /****************************************************************************** * File Name : DataFile.h * * Description : The CDataFile class is used 阅读全文
posted @ 2016-02-25 16:22 風行 阅读(211) 评论(0) 推荐(0) 编辑
摘要: CFileFind tempFile; BOOL bIsFound; //查找文件夹中是否有*.Raw文件 bIsFound = tempFile.FindFile(Dir + _T("\*.raw")); //如果有,则开始遍历 while (bIsFound) { bIsFound = temp 阅读全文
posted @ 2016-02-25 16:20 風行 阅读(430) 评论(0) 推荐(0) 编辑