winforms - How to create Modern Menus in Win Api? -


by modern menus mean menus made using mfc or windows forms(menustrips). know possible since have seen apps use developed in windows api. has been done in win32++ library, , mfc , winforms win api wrappers if contain modern menus, win api must contain them too. question is... how can make menustrip directly in windows api? included in commoncontrols? or have implement myself? if how? example code needed, not necessary.

menus this

enter image description here

mfc , winforms win api wrappers if contain modern menus, win api must contain them too

this not true. basic menu handling code exists in win32 code libraries (basically user32.dll), , enables create, draw, , handle messages make menus work, basic menus (just plain text). mfc works calling win32 functions , handling messages else would, uses custom drawing routines spice how look. , how every other library it. other way draw entire menu (it's window), drawing icons, handling highlighting mouse moves on it, handling button clicks, etc, yourself, waste of time if can win32 it.

so, if want have menus that, either have code yourself, or use library others have coded. it's simple that.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -