mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
* feat: 模拟中途置顶的窗口 * fix: 按钮随 DPI 缩放 * fix: 始终置顶 * fix: 修复切换前台窗口 * feat: 删除置顶选项 * refactor: 检查逻辑 * refactor: 用更简单的方式将缩放窗口置于源窗口之前 * fix: 支持源窗口中途置顶 * refactor: 小优化 * fix: 修复特定操作下意外将源窗口置顶 * fix: 提高取消置顶的可靠性 * fix: 调试模式下不置顶 * chore: WindowCase 支持模拟弹窗 * fix: 不要把被禁用的窗口设为前台 * feat: WindowCase 支持模拟“模拟模态弹窗” * chore: 避免大量错误日志 * fix: 优化 Z 顺序维护 * fix: 不再使用 SWP_NOOWNERZORDER * fix: 修复消息弹窗可能影响窗口 Z 顺序 * refactor: 小优化 * chore: 添加注释 * chore: 添加注释 * fix: 小优化 * chore: 小优化
18 lines
361 B
C++
18 lines
361 B
C++
#pragma once
|
|
#include "WindowBase.h"
|
|
|
|
class HungWindow : public WindowBaseT<HungWindow> {
|
|
using base_type = WindowBaseT<HungWindow>;
|
|
friend base_type;
|
|
|
|
public:
|
|
bool Create(HINSTANCE hInst) noexcept;
|
|
|
|
protected:
|
|
LRESULT _MessageHandler(UINT msg, WPARAM wParam, LPARAM lParam) noexcept;
|
|
|
|
private:
|
|
void _UpdateButtonPos() noexcept;
|
|
|
|
HWND _hwndBtn = NULL;
|
|
};
|