当调用SetLayeredWindowAttributes函数时,错误提示如下:
error C2065: 'SetLayeredWindowAttributes' : undeclared identifier程序中已经包含
#include <Winuser.h>
#include <Windows.h>
的声明。#define LWA_ALPHA 0x00000002
SetLayeredWindowAttributes(hwnd,RGB(0,0,0),100,LWA_ALPHA);系统是Win2000,所以是支持此函数的。不知道是不是还需要设定什么条件?