DrawString - Drawing MenuItem Text with Underline Mnemonic?

L

Lex

I have a c# app that has a OwnerDrawn menu items.

Is there and easy way to use DrawString to draw the underline under
the mnemonic character?

BTW - I figured out how to detected if we should be showing the
underline or not from my draw method:

if ((e.State.Equals(DrawItemState.None)) ||
(e.State.Equals(DrawItemState.Selected)))
acceleratorOn = true;

Regards
 

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