pass a StringFormat (with HotkeyPrefix set to Show) to the DrawString
method.
--
Mick Doherty
http://homepage.ntlworld.com/mdaudi1...nate/home.html
"Lex" <de**@homerlex.mailshell.com> wrote in message
news:c5*************************@posting.google.co m...
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
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07/06/2004