📄 lichaodlg.h
字号:
// lichaoDlg.h : header file
//
#if !defined(AFX_LICHAODLG_H__089233E2_DBD9_4320_84E4_D86BDA22D4CC__INCLUDED_)
#define AFX_LICHAODLG_H__089233E2_DBD9_4320_84E4_D86BDA22D4CC__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "math.h"
#include <stack>
using namespace std ;
typedef stack<CPoint> Stack;
/////////////////////////////////////////////////////////////////////////////
// CLichaoDlg dialog
typedef float Matrix3x3[3][3];
class CLichaoDlg : public CDialog
{
// Construction
public:
void rotate(float a, CPoint refpt);
void scale(float sx, float sy, CPoint refpt);
Matrix3x3 theMatrix;
void matrix3x3PreMultiply(Matrix3x3 a,Matrix3x3 b);
void translate(int tx,int ty);
void ScanlineSeedfill(int x,int y,COLORREF boundaryvalue,COLORREF newvalue);
void makecode(double x,double y, int *c);
bool cansee(double q,double d, double * t0,double * t1);
double xl,xr,yt,yb;
void liang(double x0,double y0,double x1,double y1);
void suth(double x0,double y0,double x1,double y1);
void Circle2(int r);
void Circle1(int r);
void line3();
void line2();
void line1();
CLichaoDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CLichaoDlg)
enum { IDD = IDD_LICHAO_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLichaoDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CLichaoDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnLine1();
afx_msg void OnLine2();
afx_msg void OnLine3();
afx_msg void OnCircle1();
afx_msg void OnCircle2();
afx_msg void OnFill1();
afx_msg void OnLiang();
afx_msg void OnSuth();
afx_msg void OnIn();
afx_msg void OnTranslate();
afx_msg void OnUpdateTranslate(CCmdUI* pCmdUI);
afx_msg void OnScale();
afx_msg void OnRotate();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LICHAODLG_H__089233E2_DBD9_4320_84E4_D86BDA22D4CC__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -