Hiding/Removing the Triangle from Parent MenuItem

  • Thread starter Thread starter javadkhan
  • Start date Start date
J

javadkhan

Hi All,

I am trying to supress the small black triangle that shows up in the
menus meaning the menuitem is parent. The reason for that is I drew my
own 3D looking triangle in DrawItem using GraphicPath glyph. What I
have right now is my 3D triangle and default windows menu triangle on
it.

My question is, is it possible to hide this default triangle or send it
behind mine or some other way of doing this?

Thanks in advance
 
I am trying to supress the small black triangle that shows up in the
menus meaning the menuitem is parent. The reason for that is I drew my
own 3D looking triangle in DrawItem using GraphicPath glyph. What I
have right now is my 3D triangle and default windows menu triangle on
it.

My question is, is it possible to hide this default triangle or send it
behind mine or some other way of doing this?

It is possible to take charge for _all_ of the drawing details of a menu by
marking it as "owner-drawn". Follow this link

http://msdn.microsoft.com/library/d...suserinterface/resources/menus/usingmenus.asp

and read the section on owner-drawing.

Please post follow-up in the user interface group

microsoft.public.win32.programmer.ui

Regards,
Will
 
It is possible to take charge for _all_ of the drawing details of a menu by
marking it as "owner-drawn". Follow this link

http://msdn.microsoft.com/library/d...suserinterface/resources/menus/usingmenus.asp

and read the section on owner-drawing.

Please post follow-up in the user interface group

microsoft.public.win32.programmer.ui

The problem is that Windows paints the triangle after you draw the
menu item. (I assume from the OP's description that he's already using
an owner-draw menu item).
 
Back
Top