GME
13
|
00001 #pragma once 00002 00003 00004 #include "PanningViewDlg.h" 00005 00006 00007 // PanningViewCtrl.h : Declaration of the CPanningViewCtrl ActiveX Control class. 00008 00009 00010 // CPanningViewCtrl : See PanningViewCtrl.cpp for implementation. 00011 00012 class CPanningViewCtrl : public COleControl 00013 { 00014 DECLARE_DYNCREATE(CPanningViewCtrl) 00015 00016 // Constructor 00017 public: 00018 CPanningViewCtrl(); 00019 00020 // Overrides 00021 // ClassWizard generated virtual function overrides 00022 //{{AFX_VIRTUAL(CPanningViewCtrl) 00023 public: 00024 virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid); 00025 virtual void DoPropExchange(CPropExchange* pPX); 00026 virtual void OnResetState(); 00027 protected: 00028 virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 00029 //}}AFX_VIRTUAL 00030 00031 // Implementation 00032 protected: 00033 ~CPanningViewCtrl(); 00034 00035 DECLARE_OLECREATE_EX(CPanningViewCtrl) // Class factory and guid 00036 DECLARE_OLETYPELIB(CPanningViewCtrl) // GetTypeInfo 00037 DECLARE_PROPPAGEIDS(CPanningViewCtrl) // Property page IDs 00038 DECLARE_OLECTLTYPE(CPanningViewCtrl) // Type name and misc status 00039 00040 CPanningViewDlg m_panningViewDlg; 00041 00042 // Message maps 00043 //{{AFX_MSG(CPanningViewCtrl) 00044 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 00045 //}}AFX_MSG 00046 DECLARE_MESSAGE_MAP() 00047 00048 // Dispatch maps 00049 //{{AFX_DISPATCH(CPanningViewCtrl) 00050 afx_msg void SetBitmapDC(ULONGLONG ownerWnd, ULONGLONG bDC, ULONGLONG oldBmp, 00051 LONG orix, LONG oriy, LONG oriw, LONG orih, 00052 LONG rx, LONG ry, LONG rw, LONG rh, 00053 OLE_COLOR bkgrnd); 00054 afx_msg void SetViewRect(LONG vrx, LONG vry, LONG vrw, LONG vrh); 00055 //}}AFX_DISPATCH 00056 DECLARE_DISPATCH_MAP() 00057 00058 afx_msg void AboutBox(); 00059 00060 // Event maps 00061 //{{AFX_EVENT(CPanningViewCtrl) 00062 //}}AFX_EVENT 00063 DECLARE_EVENT_MAP() 00064 00065 // Dispatch and event IDs 00066 public: 00067 enum { 00068 //{{AFX_DISP_ID(CPanningViewCtrl) 00069 dispidSetBitmapDC = 1L, 00070 dispidSetViewRect = 2L 00071 //}}AFX_DISP_ID 00072 }; 00073 }; 00074