搜索资源列表
TC 2.0 挖地雷
- TC 2.0 挖地雷 关于TC2.0版的挖地雷 1、整个游戏基于事件驱动的工作方式,这一点和windows应用程序是相通的。在程序的主 干中,不停的捕捉鼠标事件,再通过一个函数: Bool analysis(CPoint point, ClickInfor infor) 来分析鼠标事件作用在哪个对象上(游戏中的元素,比如按钮、菜单、地雷单元格都是 作为一个对象来看待),然后把鼠标事件分配到相应的对象上。不同的对象,对鼠标事件 有自己的事件处理函数,比如
Animation-Style_Dialog_Class
- 制作动画的类,很不错的 // construction CAniDialog(UINT nDlgID, CWnd* pParent) CAniDialog(CPoint pt, UINT nDlgID, CWnd* pParent) // operation // access frame number UINT GetFrameNum() const void SetFrameNum(UINT nFrames) // access an
snake_c++
- bool termination_point bool neighbor3by3 /* true means 3x3 neighborhood, false means 5x5 neighborhood */ int grad_mag[500][500] /* Magnitude of Gradient */ int m_Cols /* Number of Columns */ int m_Rows /* Number of Rows */ int no_of_s
VCjiemian
- ①、重载对话框的消息函数: void OnNcLButtonDown(UINT nHitTest, CPoint point) //单击标题栏时是响应 void OnNcMouseMove(UINT nHitTest, CPoint point) //Mous 在标题移动时响应 LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam) ②、添加关键成员函数为:BOOL D
notview
- 文件视图,CFrameWnd C Static CRect MoveWindow CreatePen CSize CDC SetBkMode SelectObject CPen LineTo SetTextColor CString TextOut CFont CreateFont DrawText CreateDC GetDeviceCaps DeleteDC GetObject GlobalAlloc GlobalLock GetStockObject GetDC SelectPalette
WM_NCLBUTTONDOWN
- void TransparentWnd::OnLButtonDown(UINT nFlags, CPoint point) { CWnd::OnLButtonDown(nFlags, point) //实现无标题拖动 PostMessage(WM_NCLBUTTONDOWN, HTCAPTION, MAKELPARAM(point.x,point.y)) }-void TransparentWnd : : OnLButtonDown (UINT nF
2
- 窗建一个CPoint类,代表平面直角坐标系中的点,创建构造函数和运算符重载函数, 运算符重载为类重载(非友元重载),可以实现计算两个点之间的距离。可以根据需要 加入自己的成员变量或成员函数 用3点来代表一个三角形, 输入三个点的坐标,实现判断此三角形是不是直角三角形,并输出此三角形的周长。 可以根据需要加入自己的成员变量或成员函数
newasp200611413439593
- int PosFromChar(UINT nChar) // 通过指定的字符获得其x轴的位置 int CharFromPos(int nPosX) // 通过给定的x轴的位置获得相应的字符 void CutString() // 剪切字符串 void PasteString() // 粘贴字符串 void CopyString() // 拷贝字符串 void MakeBKGround(CDC *pDC, COLORREF c
CPoint
- 2_Transform_用CPoint表示二维点.zip
Arrow.rar
- 在视图中画箭头的函数。DrawArrow(CDC *pDC, CPoint ptStart/*起始点*/, CPoint ptEnd/*终点*/),In view of the function arrow painting. DrawArrow (CDC* pDC, CPoint ptStart/* starting point* /, CPoint ptEnd/* end* /)
DirectoryList
- class CMyTreeCtrl : public CTreeCtrl { // Construction public: CMyTreeCtrl() // Attributes public: // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMyTreeCtrl)
chat
- class CMyTreeCtrl : public CTreeCtrl { // Construction public: CMyTreeCtrl() // Attributes public: // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMyTreeCtrl)
demo
- First of all, the heart and soul of this class is the DrawWireRects function, which was written by Almond and Maunder, so credits go there. I tried to leave that function as intact as possible, some small changes were necessary to be done, however, i
mfc
- 通讯录管理系统[经验]通讯录管理系统 - VC.NET论坛 - 编程论坛 8条回复 - 发帖时间: 2005年5月9日 利用MFC连接数据库有很多方法,选择一个比较适中的方法——利用MFC的ODBC类来制作通讯录管理系统。建立对话框应用程序,为其添加菜单实现登陆和密码修改功能,添加MFC-CDialog CString MessageBeep CWnd LoadIcon CDataExchange CWinApp CPoint CDC GetObject CreateFontIndir
MFC_class
- 文档中主要是一些MFC常用类、成员函数、数组类、Cstring类、CTime类、CPoint类,可以方便平时的使用-The main document used in some MFC classes, member functions, an array class, Cstring class, CTime class, CPoint class, you can easily make the usual Use
Button-tansparent
- Button-tansparent: LoadImage CPoint CWnd CButton GetActiveWindow GetCapture SetFocus SetCapture CRect GetClientRect PtInRect ReleaseCapture CDC CPen CBrush FrameRect FillRect GetSysColor SelectObject LineTo DrawFocusRect CString GetWindowText Offse
CUseSKin
- How to use skin control: LoadImage CPoint CWnd CButton GetActiveWindow GetCapture SetFocus SetCapture CRect GetClientRect PtInRect ReleaseCapture CDC CPen CBrush FrameRect FillRect GetSysColor SelectObject LineTo DrawFocusRect CString GetWindowText
test
- 类的设计,设计并测试一个CRect的矩形类,成员变量包括矩形左下角和右上脚两点坐标(CPoint类),要求实现矩形面积的求解float GetArea() -Class design, design and test a rectangle CRect class, member variables, including the rectangular lower left and right upper leg two coordinates (the CPoint class), to so
Owner-Draw-button
- 一个XP风格的CXPButton按钮类,目的不在于介绍CXPButton类的使用技巧,而在于向各位阐述实现自绘按钮的方法。-void CXPButton::OnMouseMove(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default if (!m_bTracking) { T
homework of Progamming Class
- 定义一个CPoint类并用setpoint函数修改坐标值; 友元函数、静态函数等。(Define a CPoint class and modify the coordinate value with the setpoint function)