16,472
社区成员
发帖
与我相关
我的任务
分享
//鼠标穿透
UINT intExTemp = GetWindowLong( this->GetSafeHwnd(),GWL_EXSTYLE);
UINT oldGWLEx = SetWindowLong( this->GetSafeHwnd(),GWL_EXSTYLE,intExTemp|WS_EX_TRANSPARENT|WS_EX_LAYERED);
SetLayeredWindowAttributes(RGB(255,0,0),100, LWA_ALPHA);//一透明,内容也全透明了
//置顶
this->SetWindowPos(&CWnd::wndTopMost,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE|SWP_NOACTIVATE);