Hiding/Removing the Triangle from Parent MenuItem

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
 
W

William DePalo [MVP VC++]

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
 
S

Severian [MVP]

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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top