00001
00004
00005
00006 #if !defined(AFX_VSCREEN_H__DC16767E_0866_4608_B96F_6A1FDB7FF0B7__INCLUDED_)
00007 #define AFX_VSCREEN_H__DC16767E_0866_4608_B96F_6A1FDB7FF0B7__INCLUDED_
00008
00009 #if _MSC_VER > 1000
00010 #pragma once
00011 #endif // _MSC_VER > 1000
00012
00021 class VScreen
00022 {
00023 public:
00024 int getScreenX() const;
00025 int getScreenY() const;
00026 virtual bool PointOnScreen(const int, const int);
00027
00028 virtual void paint(HDC) = 0;
00029 void invalidate(HWND, bool = false);
00030
00031 HRGN getRgn() const;
00032 RECT getRgnRect() const;
00033 int getHeight() const;
00034 int getWidth() const;
00035
00036 void moveScreen(const int, const int);
00037
00038 VScreen(const int, const int, const int, const int);
00039 private:
00040 int height;
00041 int width;
00042 int pointX;
00043 int pointY;
00044 HRGN screenRgn;
00045 RECT screenRect;
00046 };
00047
00048 #endif // !defined(AFX_VSCREEN_H__DC16767E_0866_4608_B96F_6A1FDB7FF0B7__INCLUDED_)