mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
* feat: 初步实现自动隐藏光标 * UI: 稍微调整 UI * UI: 不再禁用某些子选项 * fix: 修复隐藏延迟不准确的问题 * chore: 添加模拟隐藏光标的窗口 重构和添加注释
40 lines
798 B
C++
40 lines
798 B
C++
#include "pch.h"
|
|
#include "KirikiriWindow.h"
|
|
#include "HungWindow.h"
|
|
#include "TopmostWindow.h"
|
|
#include "PopupHostWindow.h"
|
|
#include "HideCursorWindow.h"
|
|
|
|
int APIENTRY wWinMain(
|
|
_In_ HINSTANCE hInstance,
|
|
_In_opt_ HINSTANCE /*hPrevInstance*/,
|
|
_In_ LPWSTR /*lpCmdLine*/,
|
|
_In_ int /*nCmdShow*/
|
|
) {
|
|
// 模拟 TVP(KIRIKIRI) 2 引擎窗口
|
|
// KirikiriWindow window;
|
|
|
|
// 模拟挂起的窗口
|
|
// HungWindow window;
|
|
|
|
// 模拟中途置顶/取消置顶的窗口
|
|
// TopmostWindow window;
|
|
|
|
// 模拟有弹窗的窗口
|
|
// PopupHostWindow window;
|
|
|
|
// 模拟隐藏光标的窗口
|
|
HideCursorWindow window;
|
|
|
|
if (!window.Create(hInstance)) {
|
|
return false;
|
|
}
|
|
|
|
MSG msg;
|
|
while (GetMessage(&msg, nullptr, 0, 0)) {
|
|
TranslateMessage(&msg);
|
|
DispatchMessage(&msg);
|
|
}
|
|
|
|
return (int)msg.wParam;
|
|
}
|