搜索资源列表
485通讯源码
- 485通讯
OwnDrawButton
- 一、用ClassWizard生成一个新类,名字假设起为CMyButton,基类选为CButton; 二、在新类中用ClassWizard添加函数:PreSubclassWindow()、DrawItem()、OnMouseMove()、OnLButtonDown()、OnLButtonUp();-one with ClassWizard generate a new category, the names of hypotheses for CMyButton, elected CBu
ui
- 封装 API 中窗口处理的数据结构和相关函数 提供两类成员函数: 窗口 API 函数:代替 SDK API 函数 消息响应函数:响应各种系统消息 窗口 API 函数例 ShowWindow、ScrollWindow、SetWindowText 消息响应函数例 OnPaint、OnLButtonDown、OnKeyUp、 OnMouseMove、OnClose、OnHScro-Packaging API window of data structure and re
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)
easywaytomovelabel
- To move a label during drag and drop operation, you need 3 procedures (onmousedown, onmousemove, onmouseup). Here s easier and better way: only one procedure, no globals, and a FocusRect.
MyCAD
- 使用vc++实现的一个简单的画图程序,其中主要是由CMyCADView类中的函数完成了画线的功能,主要是:OnDraw、OnLButtonDown和OnMouseMove这三个函数-Using vc++ implementation of a simple drawing program, which is mainly a function of the class by the CMyCADView completed the painting line, and mainly: OnDra
simpleDraw
- 把鼠标的三个事件响应函数OnLButtonDown,OnMouseMove,OnRButtonUp封装在同一个类Controller中。MFC程序中的M-V-C,控制器编程-Three mouse events response function OnLButtonDown, OnMouseMove, OnRButtonUp, packaged in the same class Controller. The MFC program MVC, controller programming
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
OnMouseMove
- Delphi:Delphi演示OnMouseMove事件的使用方法,注意,这里的OnMouseMove不是在鼠标移动时触发,而是在按住鼠标左键移动鼠标时触发,可看到FG字符在各个颜色条之间跟随鼠标的移动而移动位置,截图如上所示。 -Delphi: Delphi demo using the method OnMouseMove event of note here OnMouseMove is not triggered when the mouse moves, but when you
mouseprogress_demo
- 理论上利用SetCursor(…)函数 , 应该可以在任何时候,任何地方修改鼠标形状 ,但实际情况却并非如此 , 每次调用OnMouseMove时候(即每次鼠标移动时) , 系统会调用程序默认原来的一个光标来重新绘制鼠标形状-HCURSOR hCursor = (HCURSOR)AfxGetApp()->LoadStandardCursor(IDC_CROSS) ::SetCursor(hCursor)
Line
- 基于MFC的简单划线。该程序实现用异或法画橡皮筋直线 算法主要看CLineView.cpp文件中的OnMouseMove函数-Simple MFC Program.
GetMousePosition
- 通过消息处理函数OnMouseMove检测鼠标在窗体上的位置,对话框界面-By message processing function OnMouseMove detect the mouse position on the form, dialog interface