How to redraw the up arrow key in in main menu?
-
Tuesday, July 31, 2012 9:36 AM
How to replace the image of the up arrow key in in main menu?
When the items in a menu are large and is not able to fit in a screen normally we can find two arrows on the top and bottom of the screen. I want to replace this arrow image with a new one in some OnPaint event.
Is there any API to get this image? I tried using GetMenuItemInfo with MIIM_BITMAP; it did not work.
Thanks
PRE
All Replies
-
Tuesday, July 31, 2012 1:39 PM
You need to create custom menu from CMenu.This links may help you.
http://www.codeproject.com/Articles/1493/A-Powerfull-Ownerdraw-Menu
http://www.codeproject.com/Articles/3696/A-Revolutionary-New-Approach-to-Custom-Drawn-Menus
http://www.codeproject.com/Articles/2354/Owner-Drawn-Menu-with-Icons-Titles-and-Shading
http://www.codeproject.com/KB/menus/ ( Filter with C++)
Thanks, Renjith V R
-
Tuesday, July 31, 2012 4:38 PMThanks Renjith for the details. There is an existing logic for custom menu. But this custom logic has not taken care the arrows which appears when number of menu item increases. So, I need to know if there is a way to achieve this.
-
Wednesday, August 01, 2012 6:13 AMWhat do you mean by the up arrow key in main menu? Do you use ribbon menu?
NEU_ShieldEdge
-
Wednesday, August 01, 2012 6:25 AMNo, I'm not using any ribbon menu. I'm using standard OS menu. When the number of menu items are more and cannot fit in the monitor, it displays additional arrow on top and bottom of the menu. I'm talking about this arrow in menu only.
-
Wednesday, August 01, 2012 12:38 PMMy question is more on CMenu scroll which appears as arrow on top and bottom of menu when menuItem count increases.
-
Thursday, August 02, 2012 6:52 AM
I think that is the system behavior, you cannot change it.
Why put many menu items into only one menu? you can use sub-menu or place them into different menu bars.
NEU_ShieldEdge

