摘要:
//写入文件 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
風行
阅读(340)
评论(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
風行
阅读(160)
评论(0)
推荐(0)
摘要:
首先,在stdafx.h文件中,导入ado15.dll,添加代码: #import "ado/msado15.dll"no_namespace rename("EOF","adoEOF") no_namespace 表示没有命名空间 rename ("EOF","adoEOF")表示将记录集结束标记 阅读全文
posted @ 2016-02-25 16:11
風行
阅读(413)
评论(0)
推荐(0)
摘要:
BOOL CTestMouseDlg::OnMouseWheel(UINT nFlags, short zDelta, CPoint pt) { if(nFlags&MK_CONTROL) { if (zDelta>0) { m_ListCtrl.InsertItem(0,"滑轮向上操作"); } 阅读全文
posted @ 2016-02-25 16:11
風行
阅读(451)
评论(0)
推荐(0)
摘要:
#include "stdafx.h" #include "Menu.h" #include "MainFrm.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #e 阅读全文
posted @ 2016-02-25 16:10
風行
阅读(891)
评论(0)
推荐(0)
摘要:
void CMfcView::OnLButtonDown(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default m_old = point; m_bool = true 阅读全文
posted @ 2016-02-25 16:09
風行
阅读(213)
评论(0)
推荐(0)
摘要:
m_ImageList.Create(32,32,ILC_COLOR24|ILC_MASK,1,1); m_ImageList.Add(AfxGetApp()->LoadIcon(IDI_KAITAI)); m_ImageList.Add(AfxGetApp()->LoadIcon(IDI_CANT 阅读全文
posted @ 2016-02-25 16:09
風行
阅读(876)
评论(0)
推荐(0)
摘要:
1.下载(GDI+ for VC6.0 SDK)GDIPlus文件将其中的Includes和Lib中的文件拷到vc目录下的Includes和Lib文件夹中.下载地址:http://www.codeguru.com/code/legacy/gdi/GDIPlus.zip 2.在你将要使用GDI+的工程 阅读全文
posted @ 2016-02-25 16:08
風行
阅读(226)
评论(0)
推荐(0)
摘要:
//将16进制的一个字符转换为十进制的数 unsigned char CConvNumsDlg::BtoH(char ch) { //0-9 if (ch >= '0' && ch <= '9') return (ch - '0'); //9-15 if (ch >= 'A' && ch <= 'F 阅读全文
posted @ 2016-02-25 16:08
風行
阅读(1979)
评论(0)
推荐(0)
摘要:
CPoint CPaintFFRDlg::Inter(int x0,int y0,int x1,int x2,int y1,int y2,int x3,int y3,int x,int y) { bool lim1 = false,lim2 = false;//是否垂直X轴 double k1,b1 阅读全文
posted @ 2016-02-25 16:07
風行
阅读(1234)
评论(0)
推荐(0)
浙公网安备 33010602011771号