GME
13
|
00001 // GMEPanningWindow.h: interface for the CGMEPanningWindow class. 00002 // 00004 //{{AFX_INCLUDES() 00005 #include "PanningWindowWrapper.h" 00006 //}}AFX_INCLUDES 00007 00008 #if !defined(AFX_GMEPANNINGWINDOW_H__EA4F9478_F8EB_4494_8D36_E31CF129200C__INCLUDED_) 00009 #define AFX_GMEPANNINGWINDOW_H__EA4F9478_F8EB_4494_8D36_E31CF129200C__INCLUDED_ 00010 00011 #if _MSC_VER > 1000 00012 #pragma once 00013 #endif // _MSC_VER > 1000 00014 00015 #include "resource.h" 00016 00018 // CGMEPanningWindow window 00019 00020 class CGMEPanningWindow : public CDockablePane 00021 { 00022 // Construction 00023 public: 00024 CGMEPanningWindow(); 00025 virtual ~CGMEPanningWindow() { theInstance = 0; }; 00026 00027 IDispatch * GetInterface() { 00028 LPUNKNOWN pUnk = m_PanningWindowWrapper.GetControlUnknown(); 00029 00030 // From there get the IDispatch interface of control. 00031 LPDISPATCH pDisp = NULL; 00032 pUnk->QueryInterface(IID_IDispatch, (LPVOID*)&pDisp); 00033 return pDisp; 00034 } 00035 00036 // Dialog Data 00037 //{{AFX_DATA(CGMEPanningWindow) 00038 enum { IDD = IDD_PANNING_WINDOW_DIALOG }; 00039 CPanningWindowWrapper m_PanningWindowWrapper; 00040 //}}AFX_DATA 00041 00042 static CGMEPanningWindow *theInstance; 00043 00044 // Overrides 00045 // ClassWizard generated virtual function overrides 00046 //{{AFX_VIRTUAL(CGMEPanningWindow) 00047 public: 00048 virtual BOOL PreTranslateMessage(MSG* pMsg); 00049 protected: 00050 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00051 //}}AFX_VIRTUAL 00052 00053 virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler); 00054 00055 // Generated message map functions 00056 //{{AFX_MSG(CGMEPanningWindow) 00057 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 00058 afx_msg void OnSize(UINT nType, int cx, int cy); 00059 DECLARE_EVENTSINK_MAP() 00060 //}}AFX_MSG 00061 DECLARE_MESSAGE_MAP() 00062 00063 // Implementation 00064 public: 00065 void SetBitmapDC(HWND owner, HDC bdc, HBITMAP oldBmp, CRect& ori, CRect& rect, COLORREF& bkgrnd); 00066 void SetViewRect(CRect vrect); 00067 00068 virtual void ShowPane(BOOL bShow, BOOL bDelay, BOOL bActivate/* = TRUE*/); 00069 }; 00070 00071 //{{AFX_INSERT_LOCATION}} 00072 // Microsoft Developer Studio will insert additional declarations immediately before the previous line. 00073 00074 #endif // !defined(AFX_GMEPANNINGWINDOW_H__EA4F9478_F8EB_4494_8D36_E31CF129200C__INCLUDED_)