English | 简体中文
Highly encapsulated Win32 native menu implementation
MIT LICENSE
Built with 『CsWin32』
Shared publicly - feel free to try it!
By AuthorZiXi ❤️
- Reference the Win32Menu project or download via NuGet (will be uploaded soon)
- The core class
NativeMenuis fully documented - check the comments - For detailed examples:
- Download the project or visit 『GitHub』
- Review two demos demonstrating usage in WinForms and WPF
- Prefer
Win32MenuWinFormsDemofor more comprehensive menu styles
- Initially designed without support for popup menu methods
- Does not currently support menu icons
- Not recommended to interfere with menu class through external methods
Honestly, Win32 API feels anti-human by modern standards, especially in OOP languages.
It's bizarre how modifying submenu items requires parent menu intervention.
Developing this revealed odd behaviors in GetMenuItemInfo/SetMenuItemInfo -
even when returning success, data was incorrect.
Ultimately resorted to ModifyMenu for synchronization despite its limitations.
The concept originated from:
- Observing menu implementations in some krkr games
- Dissatisfaction with default WinForms menu styling
- Partial implementations in abandoned project 『LeafFallEngine』