Transparent Dialog

xiaoxiao2021-03-06  66

#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);

转载请注明原文地址:https://www.9cbs.com/read-89490.html

New Post(0)