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

📄 gdiplusview.h

📁 《Visual C++.NET专业项目实例开发》源代码Project02Chapter12
💻 H
字号:
#ifndef __GDIPLUSVIEW_H__
#define __GDIPLUSVIEW_H__

#using <mscorlib.dll>

#using <System.DLL>
#using <System.Drawing.DLL> 
#using <System.Windows.Forms.DLL>

using namespace System;
using namespace System::ComponentModel;
using namespace System::Windows::Forms;
using namespace System::Collections;
using namespace System::IO;
using namespace System::Drawing;
using namespace System::Drawing::Printing;
using namespace System::Collections;

#include "GDIPlusDoc.h"

__gc class CGDIPlusView : public Form
{
    /// <summary> 
    ///    Required designer variable
    /// </summary>
private:
	System::ComponentModel::Container* pComponents;
	CGDIPlusDoc* pDoc;
	CMainWindow* pMainWin;

public:
	 Point ptPrevPoint;
	 CStroke* pCurrentStroke;

     CGDIPlusView(CGDIPlusDoc* pDoc1, CMainWindow* pParent);
    ~CGDIPlusView();
    
     void InitializeComponent();

	 void MouseDownHandler(Object* sender,MouseEventArgs* e);
	 void MouseMoveHandler(Object* sender,MouseEventArgs* e);
	 void MouseUpHandler(Object* sender,MouseEventArgs* e);
	 void PaintHandler(Object* sender, PaintEventArgs* e);
	 void ClosingHandler(Object* sender, CancelEventArgs* e);	
	 void ClosedHandler(Object* sender, EventArgs* e);	
	 
	 CGDIPlusDoc* GetDocument();

public:
	void HandleLineDraw();
	void HandleEllipseDraw();
	void HandleRectDraw();
	void HandleTextDraw(String* pStr, Drawing::Font* pFont, Color colorText);
	void HandleFilledEllipseDraw();
	void HandleFilledRectDraw();
};

#endif __GDIPLUSVIEW_H__

⌨️ 快捷键说明

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