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

📄 treedlg.h

📁 摇曳的递归分形树(在其中使用了双缓存技术
💻 H
字号:
// treeDlg.h : header file
//

#if !defined(AFX_TREEDLG_H__3C0872FE_9DD5_468B_AADB_B08852A39EFD__INCLUDED_)
#define AFX_TREEDLG_H__3C0872FE_9DD5_468B_AADB_B08852A39EFD__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CTreeDlg dialog
class CTreeDlg : public CDialog
{
// Construction
public:
	CTreeDlg(CWnd* pParent = NULL);	// standard constructor

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

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

// Implementation
protected:
	BOOL m_dir;
	float m_C;

	/************************************************************************/
	//画笔
	CPen m_Pen;
	//前景颜色
	COLORREF m_fgColor;
	//背景颜色
	COLORREF m_bgColor;
	//物理画布
	CDC m_DC;
	//内存位图
	CBitmap m_Bitmap;
	//内存画布
	CDC m_MemDC;
	//窗口客户区大小
	CRect m_Rect;
	//定时器间隔,单位毫秒
	int m_Interval;
	//绘制树叶
	void drawLeaf(double x, double y, double L, double a,float B,float C);
	//记录定时器是否在工作
	BOOL m_bRunning;
	/************************************************************************/	

	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CTreeDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TREEDLG_H__3C0872FE_9DD5_468B_AADB_B08852A39EFD__INCLUDED_)

⌨️ 快捷键说明

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