rlm@1: #if !defined(AFX_ZOOMCONTROL_H__BC193230_D2D6_4240_93AE_28C2EF2C641A__INCLUDED_) rlm@1: #define AFX_ZOOMCONTROL_H__BC193230_D2D6_4240_93AE_28C2EF2C641A__INCLUDED_ rlm@1: rlm@1: #if _MSC_VER > 1000 rlm@1: #pragma once rlm@1: #endif // _MSC_VER > 1000 rlm@1: // ZoomControl.h : header file rlm@1: // rlm@1: #ifndef WM_COLINFO rlm@1: #define WM_COLINFO WM_APP+100 rlm@1: #endif rlm@1: rlm@1: ///////////////////////////////////////////////////////////////////////////// rlm@1: // ZoomControl window rlm@1: rlm@1: class ZoomControl : public CWnd rlm@1: { rlm@1: // Construction rlm@1: public: rlm@1: ZoomControl(); rlm@1: rlm@1: // Attributes rlm@1: public: rlm@1: // Operations rlm@1: public: rlm@1: // Overrides rlm@1: // ClassWizard generated virtual function overrides rlm@1: //{{AFX_VIRTUAL(ZoomControl) rlm@1: //}}AFX_VIRTUAL rlm@1: rlm@1: // Implementation rlm@1: public: rlm@1: void setColors(const u8 *c); rlm@1: static bool isRegistered; rlm@1: virtual ~ZoomControl(); rlm@1: rlm@1: // Generated message map functions rlm@1: protected: rlm@1: //{{AFX_MSG(ZoomControl) rlm@1: afx_msg void OnPaint(); rlm@1: afx_msg void OnLButtonDown(UINT nFlags, CPoint point); rlm@1: afx_msg BOOL OnEraseBkgnd(CDC*pDC); rlm@1: //}}AFX_MSG rlm@1: DECLARE_MESSAGE_MAP() rlm@1: private: rlm@1: int selected; rlm@1: u8 colors[3*64]; rlm@1: void registerClass(); rlm@1: }; rlm@1: rlm@1: ///////////////////////////////////////////////////////////////////////////// rlm@1: rlm@1: //{{AFX_INSERT_LOCATION}} rlm@1: // Microsoft Visual C++ will insert additional declarations immediately before the previous line. rlm@1: rlm@1: #endif // !defined(AFX_ZOOMCONTROL_H__BC193230_D2D6_4240_93AE_28C2EF2C641A__INCLUDED_)