diff --git a/GlosSITarget/TargetWindow.cpp b/GlosSITarget/TargetWindow.cpp index ee01712..a9a662e 100644 --- a/GlosSITarget/TargetWindow.cpp +++ b/GlosSITarget/TargetWindow.cpp @@ -335,6 +335,10 @@ void TargetWindow::createWindow() style &= ~WS_OVERLAPPED; style |= WS_POPUP; SetWindowLong(hwnd, GWL_STYLE, style); + + auto exStyle = GetWindowLong(hWnd, GWL_EXSTYLE); + exStyle |= WS_EX_TOOLWINDOW; + SetWindowLong(hWnd, GWL_EXSTYLE, exStyle); MARGINS margins; margins.cxLeftWidth = -1;