摘要: 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) 编辑
摘要: #define ROW 3072 #define COL 3072 void CQweqweqweDlg::OnCancel() { int i=0,j=0; //取平局后的二位数组 BYTE *rawAvg=new BYTE[COL*ROW*2]; memset(rawAvg,0,sizeof(B 阅读全文
posted @ 2016-02-25 16:20 風行 阅读(236) 评论(0) 推荐(0) 编辑
摘要: DWORD Serial; DWORD Length; GetVolumeInformation("D:",NULL, MAX_PATH,&Serial,&Length, NULL,NULL,MAX_PATH); CString StrSerial; StrSerial.Format("%ud",S 阅读全文
posted @ 2016-02-25 16:19 風行 阅读(221) 评论(0) 推荐(0) 编辑
摘要: void WriteLog(CString Msg) { CTime tm =CTime::GetCurrentTime(); CString str = tm.Format("%Y-%m-%d-%H-%M-%S"); CString sPage = str + " "+Msg+"r"+"n"; C 阅读全文
posted @ 2016-02-25 16:18 風行 阅读(652) 评论(0) 推荐(0) 编辑
摘要: #include "stdio.h" #include "conio.h" void splitname(const char *szfullfilename, char *szpathname, char *szfilename, char *szextname); int main(void) 阅读全文
posted @ 2016-02-25 16:17 風行 阅读(738) 评论(0) 推荐(0) 编辑
摘要: #define _WidthPitch(w) ((w + w + w + 3) & 0xFFFFFFFC) void CTestPanitDlg::OnDaochu() { // TODO: Add your command handler code here CRect rect; GetClie 阅读全文
posted @ 2016-02-25 16:17 風行 阅读(2798) 评论(0) 推荐(0) 编辑
摘要: void CThreadDlg::OnOne() { // TODO: Add your control notification handler code here for (int i =1; i<=300000;i++) { for (int j =1 ; j<=300000;j++) { f 阅读全文
posted @ 2016-02-25 16:16 風行 阅读(127) 评论(0) 推荐(0) 编辑
摘要: BOOL BMP24to8(char *szSourceFile,char *szTargetFile) { HANDLE hSourceFile=INVALID_HANDLE_VALUE,hTargetFile=INVALID_HANDLE_VALUE; DWORD dwSourceSize=0, 阅读全文
posted @ 2016-02-25 16:16 風行 阅读(628) 评论(0) 推荐(0) 编辑
摘要: HHOOK hook = NULL; HHOOK hook1 = NULL; LRESULT CALLBACK MouseProc//屏蔽键盘上的鼠标操作 ( int nCode, // hook code WPARAM wParam, // message identifier LPARAM lP 阅读全文
posted @ 2016-02-25 16:14 風行 阅读(520) 评论(0) 推荐(0) 编辑
摘要: void CColorDlgDlg::OnButton1() { COLORREF MyColor=RGB(0,0,0);//定义一个RGB颜色 CColorDialog Dlg(0,CC_FULLOPEN,this);//定义一个颜色对话框对象 if(IDOK==Dlg.DoModal())//如 阅读全文
posted @ 2016-02-25 16:13 風行 阅读(269) 评论(0) 推荐(0) 编辑
摘要: DLL中:cpp #define DLL_API _declspec(dllexport) #include "dll.h" #include "windows.h" #include "stdio.h" int add (int x, int y ) { return x+y ; } int su 阅读全文
posted @ 2016-02-25 16:13 風行 阅读(205) 评论(0) 推荐(0) 编辑
摘要: //写入文件 void CFDlg::OnButton1() { CFile file; file.Open("f:\test1.txt",CFile::modeCreate|CFile::modeReadWrite); file.Write("vcshare.net",strlen("vcshar 阅读全文
posted @ 2016-02-25 16:12 風行 阅读(322) 评论(0) 推荐(0) 编辑
摘要: void CActiveXCtrl::OnDraw( CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid) { CBrush bursh(TranslateColor(GetBackColor())); pdc->FillRect(rcBo 阅读全文
posted @ 2016-02-25 16:12 風行 阅读(150) 评论(0) 推荐(0) 编辑