| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#include "gr.h" |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
class CMegacellDialog : public CDialog { |
| 28 |
|
| 29 |
public: |
| 30 |
CMegacellDialog(CWnd *pParent = NULL); |
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
enum { IDD = IDD_MEGACELL }; |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
public: |
| 42 |
virtual BOOL DestroyWindow(); |
| 43 |
|
| 44 |
protected: |
| 45 |
virtual void DoDataExchange(CDataExchange *pDX); |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
private: |
| 51 |
void SaveMegacellsOnClose(); |
| 52 |
void UpdateDialog(); |
| 53 |
void UpdateTextureView(); |
| 54 |
void UpdateMegacellView(); |
| 55 |
void TextureListUp(int); |
| 56 |
void TextureListDown(int); |
| 57 |
void CheckinTexture(int n, int tracklock_num); |
| 58 |
|
| 59 |
grHardwareSurface m_TextureSurf; |
| 60 |
int m_TexStart; |
| 61 |
int m_TexListPos; |
| 62 |
int m_TexPageLen; |
| 63 |
bool m_RedrawListbox; |
| 64 |
int m_CheckX, m_CheckY, m_CheckForTextureList; |
| 65 |
|
| 66 |
protected: |
| 67 |
|
| 68 |
|
| 69 |
afx_msg void OnNewMegacell(); |
| 70 |
afx_msg void OnLockMegacell(); |
| 71 |
afx_msg void OnCheckinMegacell(); |
| 72 |
afx_msg void OnDeleteMegacell(); |
| 73 |
afx_msg void OnNextMegacell(); |
| 74 |
afx_msg void OnPreviousMegacell(); |
| 75 |
afx_msg void OnSelendokMegacellPulldown(); |
| 76 |
afx_msg void OnMegacellsOut(); |
| 77 |
afx_msg void OnKillfocusMegacellNameEdit(); |
| 78 |
afx_msg void OnKillfocusMegaWidthEdit(); |
| 79 |
afx_msg void OnKillfocusMegaHeightEdit(); |
| 80 |
virtual BOOL OnInitDialog(); |
| 81 |
afx_msg void OnLButtonDown(UINT nFlags, CPoint point); |
| 82 |
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar); |
| 83 |
afx_msg void OnPaint(); |
| 84 |
afx_msg void OnRemapMegacell(); |
| 85 |
afx_msg void OnRotateMegacell(); |
| 86 |
afx_msg void OnCopyMegacell(); |
| 87 |
afx_msg void OnPasteMegacell(); |
| 88 |
afx_msg void OnImportTiny(); |
| 89 |
afx_msg BOOL OnHelpInfo(HELPINFO *pHelpInfo); |
| 90 |
afx_msg void OnImportSky(); |
| 91 |
afx_msg void OnImportSkyBand(); |
| 92 |
|
| 93 |
DECLARE_MESSAGE_MAP() |
| 94 |
}; |