mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
* feat: 尝试模拟 kirikiri 窗口行为 * feat: 完善模拟 kirikiri 窗口 * feat: 优化 WGC 对 kirikiri 窗口的处理 * chore: 优化注释 * fix: 优化错误处理 * chore: 添加注释
22 lines
403 B
C++
22 lines
403 B
C++
#include "pch.h"
|
|
#include "KirikiriWindow.h"
|
|
|
|
int APIENTRY wWinMain(
|
|
_In_ HINSTANCE hInstance,
|
|
_In_opt_ HINSTANCE /*hPrevInstance*/,
|
|
_In_ LPWSTR /*lpCmdLine*/,
|
|
_In_ int /*nCmdShow*/
|
|
) {
|
|
KirikiriWindow window;
|
|
if (!window.Create(hInstance)) {
|
|
return false;
|
|
}
|
|
|
|
MSG msg;
|
|
while (GetMessage(&msg, nullptr, 0, 0)) {
|
|
TranslateMessage(&msg);
|
|
DispatchMessage(&msg);
|
|
}
|
|
|
|
return (int)msg.wParam;
|
|
}
|