15,979
社区成员
发帖
与我相关
我的任务
分享
::SetWindowPos(m_hWnd,HWND_TOPMOST,0,0,0,0,SWP_NOSIZE|SWP_NOMOVE);
SetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE,
GetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE)^0x80000);
HINSTANCE hinstance = LoadLibrary("User32.dll");
if(NULL != hinstance)
{
typedef BOOL (WINAPI*MyFunc)(HWND,COLORREF,BYTE,DWORD);
MyFunc pFunc = NULL;
pFunc = (MyFunc)GetProcAddress(hinstance,"SetLayeredWindowAttributes");
if(pFunc != NULL)
{
pFunc(this->GetSafeHwnd(),0,128/*透明度0-255*/,2);
}
FreeLibrary(hinstance);
}