谢谢各位的指点,特别是版主大哥。现在问题解决了,我是用SetWindowLong(GetSafeHwnd(),GWL_EXSTYLE,GetWindowLong
(GetSafeHwnd(),GWL_EXSTYLE)|0x00080000)
HINSTANCE hInst=LoadLibrary("User32.DLL");
if(hInst) {
typedef BOOL(WINAPI *MYFUNC)(HWND,COLORREF,BYTE,DWORD);
MYFUNC fun=NULL;
fun=(MYFUNC)GetProcAddress(hInst,"SetLayeredWindowAttributes");
if(fun)
fun(this->GetSafeHwnd(),GetSysColor(15),250,1
FreeLibrary(hInst);
}
没有安装新的SDK,不能直接调用SetLayeredWindowAttributes,只好转这么大一个弯,呵呵