::SetWindowLong(GetSafeHwnd(), GWL_EXSTYLE, ::GetWindowLongPtr(GetSafeHwnd(), GWL_EXSTYLE) | WS_EX_LAYERED); this->SetLayeredWindowAttributes(0, (255 * 70) / 100, LWA_ALPHA);
::SetWindowLong(GetSafeHwnd(), GWL_EXSTYLE, ::GetWindowLongPtr(GetSafeHwnd(), GWL_EXSTYLE) | WS_EX_LAYERED); this->SetLayeredWindowAttributes(0, (255 * 70) / 100, LWA_ALPHA);
转载于:https://www.cnblogs.com/nightnine/p/5207315.html