[dad864]: / WedPolygon.h  Maximize  Restore  History

Download this file

99 lines (86 with data), 2.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#if !defined(AFX_WEDPOLYGON_H__884E66DF_37C6_43DC_8710_74ED1D1236D9__INCLUDED_)
#define AFX_WEDPOLYGON_H__884E66DF_37C6_43DC_8710_74ED1D1236D9__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// WedPolygon.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CWedPolygon dialog
class CWedPolygon : public CDialog
{
// Construction
public:
CWedPolygon(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CWedPolygon)
enum { IDD = IDD_WEDPOLY };
CListBox m_vertexpicker;
BOOL m_graphics;
BOOL m_open;
BOOL m_insertpoint;
BOOL m_movepolygon;
//}}AFX_DATA
wed_polygon *wedpolygon;
area_vertex *wedvertex;
int first;
int m_vertexnum;
int m_polynum;
int m_changed;
BOOL insertpoint;
POSITION pos;
void SetPolygon(int type, int number);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CWedPolygon)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CToolTipCtrl m_tooltip;
CImageView m_preview;
void RefreshPolygon(bool repos);
void Shift(int where);
void FixPolygon(CPoint &point);
// Generated message map functions
//{{AFX_MSG(CWedPolygon)
afx_msg void OnFlag1();
afx_msg void OnFlag2();
afx_msg void OnFlag3();
afx_msg void OnFlag4();
afx_msg void OnFlag5();
afx_msg void OnFlag6();
afx_msg void OnFlag7();
afx_msg void OnFlag8();
afx_msg void OnKillfocusFlags();
afx_msg void OnKillfocusUnknown();
afx_msg void OnKillfocusMinx();
afx_msg void OnKillfocusMiny();
afx_msg void OnKillfocusMaxx();
afx_msg void OnKillfocusMaxy();
afx_msg void OnKillfocusVertexpicker();
afx_msg void OnSelchangeVertexpicker();
afx_msg void OnKillfocusPosx();
afx_msg void OnKillfocusPosy();
afx_msg void OnRecalcbox();
afx_msg void OnReverse();
afx_msg void OnOrder();
virtual BOOL OnInitDialog();
afx_msg void OnPreview();
afx_msg void OnOpen();
afx_msg void OnDblclkVertexpicker();
afx_msg void OnInsert();
afx_msg void OnDeltaposShift(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnMove();
afx_msg void OnSave();
afx_msg void OnLoad();
//}}AFX_MSG
void RefreshVertex(); //do we need afx_msg or not?
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_WEDPOLYGON_H__884E66DF_37C6_43DC_8710_74ED1D1236D9__INCLUDED_)