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