CMyWnd.h
上传用户:hyb6888
上传日期:2016-01-24
资源大小:5186k
文件大小:2k
- #if !defined(defCMyWnd)
- #define defCMyWnd
- #include "myHDC.h"
- class CMyWnd
- {
- public:
- CMyWnd::~CMyWnd();
- CMyWnd::CMyWnd();
- BOOL Create(LPCTSTR szClassName, LPCTSTR szTitle, HINSTANCE hInstance, HWND hWndParent = 0, DWORD dwStyle = WS_OVERLAPPEDWINDOW,DWORD dwExStyle = 0, HMENU hMenu = 0);
- LRESULT WINAPI WindowProc(UINT,WPARAM,LPARAM);
- static LRESULT WINAPI InitProc(HWND,UINT,WPARAM,LPARAM);
- static LRESULT WINAPI stdProc(HWND,UINT,WPARAM,LPARAM);
- WNDPROC CreateThunk();
- WNDPROC GetThunk(){return m_thunk;}
- HWND m_hWnd;
- HWND myHwndParent;
- char showtxt[100];
- OutTextPic(char *ss,long x,long y,HDC hDC1,HDC hDC2, long dw , long dh,double a,HDC backhdc);
- OutPicture(long x,long y,HDC hDC1,long startx,long starty,HDC hDC2, long dw , long dh,double a);
- SetText(char *ss);
- myHDC dm;
- myHDC Backhdc;
- char BackfileName[250];
- char PictfileName[250];
- char WhiteBack[250];
-
- SetBackPict(char *BackName,char *PictName,char *WhiteName);
- char Showss[100];
- void SetShowchar(char *ss);
- int chrHeight,chrWidth ;
- int ParentHeight,ParentWidth ;
- long r;
- double zoom;
- StopTime();
- ContinueTime();
- void TransparentBlt2(HDC hdc0,
- int nX0,int nY0,int nW0,int nH0,
- HDC hdc1,
- int nX1,int nY1,int nW1,int nH1,
- UINT Tcol);
- private:
- WNDPROC m_thunk;
- WNDPROC Oldproc;
- };
- #pragma pack(push,1) //该结构必须以字节对齐
- struct Thunk {
- BYTE Call;
- int Offset;
- WNDPROC Proc;
- BYTE Code[5];
- CMyWnd* Window;
- BYTE Jmp;
- BYTE ECX;
- };
- #pragma pack(pop)
-
- #endif // !defined(defCMyWnd)