Magpie/tools/WindowCase/main.cpp
2025-08-15 14:03:34 +08:00

24 lines
453 B
C++

#include "pch.h"
#include "KirikiriWindow.h"
#include "HungWindow.h"
#include "TopmostWindow.h"
int APIENTRY wWinMain(
_In_ HINSTANCE hInstance,
_In_opt_ HINSTANCE /*hPrevInstance*/,
_In_ LPWSTR /*lpCmdLine*/,
_In_ int /*nCmdShow*/
) {
TopmostWindow window;
if (!window.Create(hInstance)) {
return false;
}
MSG msg;
while (GetMessage(&msg, nullptr, 0, 0)) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return (int)msg.wParam;
}