⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bezier1.h

📁 a mfc program一个简单的MFC程序
💻 H
字号:
///////////////////////////////////////////////////////////////////
//  Header  : BEZIER1.H
//
//  Purpose : Header for the BEZIER1 program.
//
//  Author  : Rob McGregor, rob_mcgregor@compuserve.com
//        
//  Date    : 05-01-96
///////////////////////////////////////////////////////////////////

#include <afxwin.h>  // MFC core classes
#include "colors.h"  // COLORREF definitions

///////////////////////////////////////////////////////////////////
// Derive an application class 

class CMyApp : public CWinApp
{ 
public: 
   virtual BOOL InitInstance();
};

///////////////////////////////////////////////////////////////////
// Derive a frame window class 

class CMainWnd : public CFrameWnd
{ 
protected:
   POINT m_apt[10];
   int   m_inCurPoint;
   BOOL  m_bMoving;

   // Helper methods
   void DoBezier();
   void EraseClient(CDC* pDC);
   int GetCurPoint(CPoint pt);
   void ResetControlPoints();

public: 
   CMainWnd();

   // Message handlers
   afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
   afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
   afx_msg void OnMouseMove(UINT nFlags, CPoint point);
   afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
   afx_msg BOOL OnEraseBkgnd(CDC* pDC);

   DECLARE_MESSAGE_MAP();
};

///////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -