DrawString - Drawing MenuItem Text with Underline Mnemonic?

  • Thread starter Thread starter Lex
  • Start date Start date
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
 
Back
Top