FMT_USE_WINDOWS_H -> USEWINSDK

This commit is contained in:
DatGuy1 2018-06-09 21:58:36 +03:00 committed by fourtf
parent 56fcc496cf
commit 2e8b168f19

View file

@ -1,7 +1,7 @@
#include "widgets/logindialog.hpp" #include "widgets/logindialog.hpp"
#include "common.hpp" #include "common.hpp"
#include "util/urlfetch.hpp" #include "util/urlfetch.hpp"
#if FMT_USE_WINDOWS_H #if USEWINSDK
#include <Windows.h> #include <Windows.h>
#endif #endif
@ -190,7 +190,7 @@ void AdvancedLoginWidget::refreshButtons()
LoginWidget::LoginWidget() LoginWidget::LoginWidget()
{ {
#if FMT_USE_WINDOWS_H #if USEWINSDK
::SetWindowPos((HWND)this->winId(), HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW); ::SetWindowPos((HWND)this->winId(), HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
#endif #endif