Hello,
Is there a member function to modify the width of a context menu.
Can ModifyMenu() be used in any way?
Thanks in advance
Printable View
Hello,
Is there a member function to modify the width of a context menu.
Can ModifyMenu() be used in any way?
Thanks in advance
The width of popup menu depends on the width of menu item texts!
But it appears like lot of space are padded to the left and right of the string.
Do I have to change any menu style for this.
Thanks
What do you mean by "lot"? :confused:
For example, space to the left of item text is used/reserved for item icons (like ckeckbox or any user defined icon).
Space to the right of item text is used/reserved for the symbol signing the pop-up menu (see the attached picture)
So, what "space" would you like to reduce? :confused:
Just get the window menu HWND and change its width
Please, supply some lines of code to "get the window menu HWND". :rolleyes:
The only way I can think of is if the menu's owner-draw flag is set and you handle drawing and measuring manually. Altho maybe a menu HWND can be obtained through ::FindWindow("#32768",NULL) for MFC menus and some manipulation can be done on it but i dont think it is likely to work.