myWinAttrib.h
上传用户:hyb6888
上传日期:2016-01-24
资源大小:5186k
文件大小:1k
- #if !defined(myWindowsAttribset)
- #define myWindowsAttribset
- #define LWA_COLORKEY 0x00000001
- #define WS_EX_LAYERED 0x080000L
- #define LWA_ALPHA 2
- typedef BOOL (WINAPI *lpfnSetLayeredWindowAttributes)(HWND hWnd, COLORREF crKey, BYTE bAlpha, DWORD dwFlags);
- class myWinAttrib
- {
- HMODULE hUser32;
- int isset;
- BOOL MyIsWinNT();
- public:
- myWinAttrib();
- ~myWinAttrib();
- lpfnSetLayeredWindowAttributes SetLayeredWindowAttributes;
- int mySetWindow(HWND hWnd , long crKey, BYTE bAlpha, DWORD dwFlags);
- };
- #endif