15,979
社区成员
发帖
与我相关
我的任务
分享
HINSTANCE hInst;
const LWA_COLORKEY = 0x00001;
const LWA_ALPHA = 0x00002;
typedef BOOL (WINAPI *FSetLayeredWindowAttributes)(HWND,COLORREF,BYTE,DWORD);
FSetLayeredWindowAttributes SetLayeredWindowAttributes;
hInst = LoadLibrary("User32.dll");
SetLayeredWindowAttributes = (FSetLayeredWindowAttributes)
GetProcAddress(hInst,"SetLayeredWindowAttributes");
SetLayeredWindowAttributes(GetSafeHwnd(),RGB(0,0,0),150,LWA_ALPHA);
FreeLibrary(hInst);