Skip to content

Commit

Permalink
fix bug #425
Browse files Browse the repository at this point in the history
  • Loading branch information
huangkangfa committed Feb 19, 2024
1 parent 28a36b1 commit abc396d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/FluFramelessHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ void FluFramelessHelper::componentComplete(){
}else{
SetWindowLongPtr(hwnd, GWL_STYLE, style | WS_THICKFRAME);
}
LONG exstyle = ::GetWindowLong(hwnd, GWL_EXSTYLE);
exstyle = exstyle | WS_EX_LAYERED;
SetWindowLongPtr(hwnd, GWL_EXSTYLE, exstyle);
SetLayeredWindowAttributes(hwnd, RGB(251, 255, 242), 0, LWA_COLORKEY);
SetWindowPos(hwnd,nullptr,0,0,0,0,SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_NOMOVE | SWP_NOSIZE | SWP_FRAMECHANGED);
#else
window->setFlags((window->flags() & (~Qt::WindowMinMaxButtonsHint) & (~Qt::Dialog)) | Qt::FramelessWindowHint | Qt::Window);
Expand Down

0 comments on commit abc396d

Please sign in to comment.