1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-15 06:52:34 +02:00

Change when the window is shown, so that we no longer see the ugly base window

This commit is contained in:
kelteseth 2017-03-25 19:02:50 +01:00
parent b97fa87538
commit 74aba035d4

View File

@ -48,7 +48,7 @@ ScreenPlay::ScreenPlay(int width, int height)
WS_CAPTION | WS_THICKFRAME | WS_MINIMIZE | WS_MAXIMIZE | WS_SYSMENU);
SetWindowLongPtr(hwnd, GWL_EXSTYLE,
WS_EX_LEFT | WS_EX_LTRREADING | WS_EX_RIGHTSCROLLBAR | WS_EX_NOACTIVATE | WS_EX_TOPMOST | WS_EX_TRANSPARENT | WS_EX_TOOLWINDOW);
ShowWindow(hwnd, SW_SHOWDEFAULT);
this->quickRenderer = new QQuickView(QUrl(QStringLiteral("qrc:/qml/ScreenPlay.qml")), this);
@ -56,6 +56,7 @@ ScreenPlay::ScreenPlay(int width, int height)
this->setFlags(flags | Qt::FramelessWindowHint | Qt::WindowStaysOnBottomHint);
this->show();
quickRenderer->show();
ShowWindow(hwnd, SW_SHOWDEFAULT);
}
ScreenPlay::~ScreenPlay()