Hi,
is there a way to set the width and height of menu Items ?
I'm talking regular CMenu here.
I just want to be able to change the default size either after creating the menu in the resource editor or dynamically.
Hi,
You can set the width and height of CMenu items by overriding the OnMeasureItem virtual function. But this function is only called once, when the menu is created.
If you want to dynamically change the dimensions of the menu items, you have to delete and recreate the menu.
Look at the WM_MEASUREITEM message.
Hope this helps,
srfink
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.