diff --git a/src/widgets/osdpretty.cpp b/src/widgets/osdpretty.cpp index f70ba5bee..55558e52c 100644 --- a/src/widgets/osdpretty.cpp +++ b/src/widgets/osdpretty.cpp @@ -98,9 +98,9 @@ OSDPretty::OSDPretty(Mode mode, QWidget *parent) #ifdef Q_OS_WIN32 // Don't show the window in the taskbar. Qt::ToolTip does this too, but it // adds an extra ugly shadow. - int ex_style = GetWindowLong(winId(), GWL_EXSTYLE); + int ex_style = GetWindowLong((HWND) winId(), GWL_EXSTYLE); ex_style |= WS_EX_NOACTIVATE; - SetWindowLong(winId(), GWL_EXSTYLE, ex_style); + SetWindowLong((HWND) winId(), GWL_EXSTYLE, ex_style); #endif // Mode settings