Overlay.h
上传用户:hxb_1234
上传日期:2010-03-30
资源大小:8328k
文件大小:2k
源码类别:

VC书籍

开发平台:

Visual C++

  1. #if !defined(AFX_OVERLAY_H__A97F5203_1703_11D2_B64C_000055005701__INCLUDED_)
  2. #define AFX_OVERLAY_H__A97F5203_1703_11D2_B64C_000055005701__INCLUDED_
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif // _MSC_VER >= 1000
  6. // Overlay.h : header file
  7. //
  8. #include ".av8incav8api.h"
  9. /////////////////////////////////////////////////////////////////////////////
  10. // COverlay frame
  11. class COverlay : public CFrameWnd
  12. {
  13. DECLARE_DYNCREATE(COverlay)
  14. protected:
  15.    HDRVR g_hVFDrv;
  16.    WORD wOverlaySrcWidth;
  17.    WORD wOverlaySrcHeight;
  18.    CMenu cOverlayMenu;
  19.    int nScreenX;
  20.    int nScreenY;
  21. // Attributes
  22. public:
  23. int gnPosX, gnPosY;
  24. // Operations
  25. public:
  26. COverlay( HDRVR hVFDrv, RECT rectOverlay, WORD wSrcWidth, WORD wSrcHeight);           
  27. COverlay(); //HDRVR hVFDrv);
  28. BOOL COverlay::SetSrc(WORD wSrcWidth, WORD wSrcHeight);
  29. virtual ~COverlay();
  30. // Overrides
  31. // ClassWizard generated virtual function overrides
  32. //{{AFX_VIRTUAL(COverlay)
  33. protected:
  34. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  35. //}}AFX_VIRTUAL
  36. // Implementation
  37. protected:
  38. // Generated message map functions
  39. //{{AFX_MSG(COverlay)
  40. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  41. afx_msg void OnMove(int x, int y);
  42. afx_msg void OnSize(UINT nType, int cx, int cy);
  43. afx_msg void OnClose();
  44. afx_msg void OnPaint();
  45. //}}AFX_MSG
  46. DECLARE_MESSAGE_MAP()
  47. };
  48. /////////////////////////////////////////////////////////////////////////////
  49. //{{AFX_INSERT_LOCATION}}
  50. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  51. #endif // !defined(AFX_OVERLAY_H__A97F5203_1703_11D2_B64C_000055005701__INCLUDED_)