GME
13
|
00001 #pragma once 00002 00003 00004 // GMEViewOverlay 00005 00006 class GMEViewOverlay : public CWnd 00007 { 00008 DECLARE_DYNAMIC(GMEViewOverlay) 00009 int m_opacity; 00010 UINT_PTR m_timerID; 00011 HBITMAP m_bitmap; 00012 public: 00013 CDC* m_memcdc; 00014 public: 00015 GMEViewOverlay(); 00016 virtual ~GMEViewOverlay(); 00017 00018 protected: 00019 DECLARE_MESSAGE_MAP() 00020 public: 00021 afx_msg void OnClose(); 00022 afx_msg void OnTimer(UINT_PTR nIDEvent); 00023 virtual BOOL DestroyWindow(); 00024 00025 public: 00026 afx_msg void PostNcDestroy() 00027 { 00028 // need to remove timer events from queue 00029 // delete this; 00030 } 00031 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 00032 void OnDraw(CDC* pDC); 00033 void Init1(); 00034 void Init2(); 00035 const static DWORD exstyle = WS_EX_LAYERED 00036 | WS_EX_TRANSPARENT 00037 | WS_EX_TOPMOST 00038 | WS_EX_TOOLWINDOW 00039 | WS_EX_NOACTIVATE; 00040 ; 00041 const static DWORD style = WS_POPUP | WS_VISIBLE; 00042 };