GME
13
|
00001 #if !defined(AFX_TESTWINDOW_H__A7B87C94_3DCC_4768_82F6_C913E586FFE5__INCLUDED_) 00002 #define AFX_TESTWINDOW_H__A7B87C94_3DCC_4768_82F6_C913E586FFE5__INCLUDED_ 00003 00004 #if _MSC_VER > 1000 00005 #pragma once 00006 #endif // _MSC_VER > 1000 00007 // TestWindow.h : header file 00008 // 00009 00010 #include "ScrollZoomView.h" 00011 #include <string> 00012 00014 // CTestWindow window 00015 00016 class CTestWindow : public CWnd 00017 { 00018 // Construction 00019 public: 00020 CTestWindow(const CString& titleStr, const CRect& pos, CScrollZoomView* parent); 00021 virtual ~CTestWindow(); 00022 00023 // Attributes 00024 protected: 00025 CFont txtMetricFont; 00026 COLORREF backgroundColor; 00027 COLORREF canvasBgndColor; 00028 CScrollZoomView* parentWindowPtr; 00029 CString title; 00030 CRect position; 00031 bool created; 00032 00033 public: 00034 00035 // Implementation 00036 CString GetTitle(void) const { return title; }; 00037 void CreateWindowSpecial(const CString& wndClassStr); 00038 void DestroyWindowSpecial(void); 00039 void MoveWindowSpecial(int deltax, int deltay); 00040 bool IsIntersectRect(const CRect& rect); 00041 00042 // Generated message map functions 00043 protected: 00044 //{{AFX_MSG(CTestWindow) 00045 afx_msg void OnPaint(); 00046 afx_msg BOOL OnEraseBkgnd(CDC* pDC); 00047 afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 00048 //}}AFX_MSG 00049 DECLARE_MESSAGE_MAP() 00050 }; 00051 00053 00054 //{{AFX_INSERT_LOCATION}} 00055 // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 00056 00057 #endif // !defined(AFX_TESTWINDOW_H__A7B87C94_3DCC_4768_82F6_C913E586FFE5__INCLUDED_)