Board index » cppbuilder » Underscore OwnerDraw MenuItem's

Underscore OwnerDraw MenuItem's


2005-05-04 05:49:27 PM
cppbuilder58
Ok I got my OwnerDraw Menu all done except for one thing and it's kind of
driving me up the
wall. =p How do I draw the underscore for each menu item?
Thanks
 
 

Re:Underscore OwnerDraw MenuItem's

"oLiVeS" <olives3#Remove#@earthlink.net>wrote:
Quote
Ok I got my OwnerDraw Menu all done except for one thing and
it's kind of driving me up the wall. =p
How do I draw the underscore for each menu item?
With an ampersand in the Caption: &File
 

Re:Underscore OwnerDraw MenuItem's

Quote
With an ampersand in the Caption: &File
I guess I was a little vague and kind of rushed the post.
I know you use the ampersand for the underscore.
I guess the question is how do I get Left and width of
the character that follows the ampersand to draw my
line?
Thanks
 

{smallsort}

Re:Underscore OwnerDraw MenuItem's

"oLiVeS" <olives3#Remove#@earthlink.net>wrote in message
Quote
>With an ampersand in the Caption: &File

I guess I was a little vague and kind of rushed the post.
I know you use the ampersand for the underscore.

I guess the question is how do I get Left and width of
the character that follows the ampersand to draw my
line?
Use the Win32 API function DrawText. It automatically underlines the
character following the &.
HTH
Jonathan
 

Re:Underscore OwnerDraw MenuItem's

Quote
Use the Win32 API function DrawText. It automatically underlines the
character following the &.
Thanks so much that works a lot better than trying to draw it. ^ ^
Thanks for everyone's help.