Wndbase.h
上传用户:hyb6888
上传日期:2016-01-24
资源大小:5186k
文件大小:1k
- #if !defined(defWndbase)
- #define defWndbase
- #include "myWinAttrib.h"
- #include "CmyFC.h"
- class Wndbase : public CmyFC
- {
- private:
- WNDPROC CreateThunk();
- WNDPROC GetThunk(){return m_thunk;}
- public:
- static LRESULT WINAPI endProc(HWND,UINT,WPARAM,LPARAM);
- static LRESULT WINAPI InitProc(HWND,UINT,WPARAM,LPARAM);
- static LRESULT WINAPI stdProc(HWND,UINT,WPARAM,LPARAM);
- virtual LRESULT WINAPI WindowProc(UINT,WPARAM,LPARAM);
- WNDPROC Oldproc;
- WNDPROC m_thunk;
- HINSTANCE hInst;
- HWND m_hWnd;
- HWND *Main_hWnd;
- HWND *Cont_hWnd;
- HWND *inpu_hWnd;
- void *Main_CWnd;
- myWinAttrib myset;
- Wndbase();
- ~Wndbase();
- };
- #pragma pack(push,1) //该结构必须以字节对齐
- struct Thunk {
- BYTE Call;
- int Offset;
- WNDPROC Proc;
- BYTE Code[5];
- Wndbase* Window;
- BYTE Jmp;
- BYTE ECX;
- };
- #pragma pack(pop)
-
- #endif // !defined(defCMyWnd)