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

📄 block.h

📁 VC做的矢量画图程序!
💻 H
字号:
#if !defined(AFX_BLOCKDIALOG_H__2E50D0C2_DA9B_11D2_AE7B_444553540000__INCLUDED_)
#define AFX_BLOCKDIALOG_H__2E50D0C2_DA9B_11D2_AE7B_444553540000__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// BlockDialog.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// BlockDialog dialog
class CDrawDoc;
class BlockDialog : public CDialog	//用来组织管理图形块的对话框界面
{
// Construction
public:
	BlockDialog(CDrawDoc* p_Doc,int BlockIndex,BOOL bModify,CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(BlockDialog)
	enum { IDD = IDD_BLOCK_MANAGE };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(BlockDialog)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();
	//}}AFX_VIRTUAL

// Implementation
public:
	int m_BlockIndex;		//选中的图形块在数组中的序号
protected:
	int Index[250];			
	int n_Block;
	int m_BlockIndex1;		//选中的图例的顺序号
	BOOL m_bModify;
	float x_Old,y_Old,blc_Old;
	CDrawDoc *pDoc;
	BOOL b_DrawAllBlock;	//是否绘制所有的图例
	BOOL b_DrawSelectBlock;	//是否反写选中的图例
	BOOL b_DrawZoom;		//是否在放大显示图例
	BOOL b_RestoreBmp;		//原来的屏幕是否存储在位图中,通过位图恢复
	CRect r1;
	int rectwidth,rectheight;
	CDC pDc;
	CBitmap map;
	void draw();			
	void draw1();
	void InitNamesLst();
protected:

	// Generated message map functions
	//{{AFX_MSG(BlockDialog)
		afx_msg void OnUpdate1(CCmdUI* pCmdUI);
		afx_msg void OnOk();			//保存退出
		afx_msg void OnCancel();		//放弃退出
		afx_msg void OnBlockNew();		//创建新图形块
		//afx_msg void OnBlockDelete();	//删除图形块
		afx_msg void OnBlockModify();	//修改图形块
		afx_msg void OnPaint(){draw();}	//绘制函数
		afx_msg void OnLButtonDown(UINT nFlags,CPoint point);
		// NOTE: the ClassWizard will add member functions here
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_BLOCKDIALOG_H__2E50D0C2_DA9B_11D2_AE7B_444553540000__INCLUDED_)

⌨️ 快捷键说明

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