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
 

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

Back
Top