-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cubeview.h
159 lines (147 loc) · 5.1 KB
/
Cubeview.h
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
// cubeview.h : interface of the CCubeView class
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft Foundation Classes product.
#include "csettings.h"
#include "csettings2.h"
#include "csettings3.h"
#include "csettings4.h"
class CCubeView : public CView
{
csettings st;
csettings2 st2;
csettings3 st3;
protected: // create from serialization only
CCubeView();
DECLARE_DYNCREATE(CCubeView)
// Attributes
public:
CCubeDoc* GetDocument();
CPalette m_cPalette;
CPalette *m_pOldPalette;
CRect m_oldRect;
float m_fRadius;
CClientDC *m_pDC;
// Operations
public:
inline void print(char* val);
void Init();
void CreateRGBPalette(void);
BOOL bSetupPixelFormat(void);
unsigned char ComponentFromIndex(int i, UINT nbits, UINT shift);
//void DrawScene(void);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCubeView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CCubeView();
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CCubeView)
afx_msg void OnFilePlay();
afx_msg void OnUpdateFilePlay(CCmdUI* pCmdUI);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnDestroy();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnTimer(UINT_PTR nIDEvent);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
inline void main2(char* argv);
inline void mtinit();
inline void arecloop();
inline void DrawScene(void);
afx_msg void OnDropFiles(HDROP hDropInfo);
virtual void OnInitialUpdate();
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
// afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMButtonDown(UINT nFlags, CPoint point);
afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
// afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
// afx_msg void OnMButtonDblClk(UINT nFlags, CPoint point);
afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnRButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnNcLButtonUp(UINT nHitTest, CPoint point);
afx_msg void OnMouseLeave();
afx_msg void OnSizing(UINT fwSide, LPRECT pRect);
// afx_msg void OnNcMButtonDblClk(UINT nHitTest, CPoint point);
afx_msg void OnMButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnFileOpen32773();
afx_msg void OnViewSetbackgroundimage();
afx_msg void OnViewLoadsoundfont();
// afx_msg void OnRecent1();
// afx_msg void OnRecent10();
// afx_msg void OnRecent2();
// afx_msg void OnRecent3();
// afx_msg void OnRecent4();
// afx_msg void OnRecent5();
// afx_msg void OnRecent6();
// afx_msg void OnRecent7();
// afx_msg void OnRecent8();
// afx_msg void OnRecent9();
// afx_msg void OnMenuSelect(UINT nItemID, UINT nFlags, HMENU hSysMenu);
// afx_msg void OnMenuSelect(UINT nItemID, UINT nFlags, HMENU hSysMenu);
afx_msg void OnRecent11();
afx_msg void OnRecent12();
afx_msg void OnRecent13();
afx_msg void OnRecent14();
afx_msg void OnRecent15();
afx_msg void OnRecent16();
afx_msg void OnRecent17();
afx_msg void OnRecent18();
afx_msg void OnRecent19();
afx_msg void OnRecent20();
afx_msg void OnFileReset();
afx_msg void OnSettingsViewsettings();
afx_msg void OnPlayPause();
afx_msg void OnPlayPitchdown();
afx_msg void OnPlayPitchup();
afx_msg void OnPlayPlay();
afx_msg void OnPlayReplay();
afx_msg void OnPlaySkipback();
afx_msg void OnPlaySkipforward();
afx_msg void OnPlaySpeeddown();
afx_msg void OnPlaySpeedup();
afx_msg void OnPlayStop();
afx_msg void OnPlayVolumedown();
afx_msg void OnPlayVolumeup();
afx_msg void OnPlayReset();
afx_msg void OnPlayPitchspeed();
afx_msg void OnHelpViewreadme();
afx_msg void OnEditClearAll();
afx_msg void OnRecentClearall();
afx_msg void OnFileUninstall();
afx_msg void OnMove(int x, int y);
afx_msg void OnMoving(UINT fwSide, LPRECT pRect);
protected:
// afx_msg LRESULT a(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT OnA(WPARAM wParam, LPARAM lParam);
};
#ifndef _DEBUG // debug version in cubeview.cpp
inline CCubeDoc* CCubeView::GetDocument()
{ return (CCubeDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////