#define WS_EX_ALPHA 0x00080000 # Define Lwa_alpha 0x00000002 # Define LWA_COLORKEY 0x00000001
SetWindowLong (this-> GetSafeHwnd (), GWL_EXSTYLE, GetWindowLong (this-> GetSafeHwnd (), GWL_EXSTYLE) ^ 0x80000); HINSTANCE hInst = LoadLibrary ( "User32.DLL"); if (hInst) {typedef BOOL (WINAPI * MYFUNC) (HWND, COLORREF, BYTE, DWORD); MYFUNC fun = NULL; // function pointer SetLayeredWindowAttributes made fun = (MYFUNC) GetProcAddress (hInst, "SetLayeredWindowAttributes"); if (fun) fun (this-> GetSafeHwnd (), 0,230, 2); freeelibrary (hinst);