This commit is contained in:
睿 安
2026-01-25 23:46:14 +08:00
parent 2a2a3d68d8
commit 37e7d278bd
727 changed files with 193377 additions and 7 deletions

View File

@@ -0,0 +1,20 @@
#pragma once
#include "EzUI.h"
namespace ezui {
//菜单类
class UI_EXPORT Menu :public Object
{
private:
HMENU m_hMenu = NULL;
public:
//菜单子项被选点击的回调事件 UINT:子项ID
std::function<void(UINT_PTR)> MouseClick = NULL;
Menu(Object* ownerObject = NULL);
virtual ~Menu();
HMENU HMenu();
UINT_PTR Append(const UIString& text);
void Remove(const UINT_PTR id);
};
};