mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
* feat: 初步实现自动隐藏光标 * UI: 稍微调整 UI * UI: 不再禁用某些子选项 * fix: 修复隐藏延迟不准确的问题 * chore: 添加模拟隐藏光标的窗口 重构和添加注释
18 lines
399 B
C++
18 lines
399 B
C++
#pragma once
|
|
#include "WindowBase.h"
|
|
|
|
class HideCursorWindow : public WindowBaseT<HideCursorWindow> {
|
|
using base_type = WindowBaseT<HideCursorWindow>;
|
|
friend base_type;
|
|
|
|
public:
|
|
bool Create(HINSTANCE hInst) noexcept;
|
|
|
|
private:
|
|
LRESULT _MessageHandler(UINT msg, WPARAM wParam, LPARAM lParam) noexcept;
|
|
|
|
void _UpdateButtonPos() noexcept;
|
|
|
|
HWND _hwndBtn = NULL;
|
|
bool _isCursorHidden = false;
|
|
};
|