OwnerDrawn Menu Items

  • Thread starter Thread starter Dino Buljubasic
  • Start date Start date
D

Dino Buljubasic

Hi,

My application has a menu with some of the menu items that have their
own menu items. By default, VB will add a black right rectangle when
a menu items has its own menu items.

However, when my menu items have thier property OwnerDrawn set to
true I have to draw menu items and text inside each menu items by
myself. All that works fine, but how do I get the black right
triangle drawn as well?

Thank you
 
Dino Buljubasic said:
Hi,

My application has a menu with some of the menu items that have their
own menu items. By default, VB will add a black right rectangle when
a menu items has its own menu items.

However, when my menu items have thier property OwnerDrawn set to
true I have to draw menu items and text inside each menu items by
myself. All that works fine, but how do I get the black right
triangle drawn as well?

Thank you

Have a look at the ControlPaint class, lots of goodies in there.
DrawMenuGlyph should be of particular interest to you.

Best Regards,

Andy
 
Back
Top