News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Custom MessageBox Button Text

Started by dedndave, August 16, 2011, 11:16:09 PM

Previous topic - Next topic

dedndave

GetTextExtentPoint32 gets me a string height - maybe i can work with that...

found it...
GetTextMetrics

thanks, guys   :P

hutch--

Dave,

A normal edit control does the job for just plonking text into a control but if you want more formatting options, use a rich edit 2 or later control, you can easily control many more things.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

dedndave

it's not "what i can do" with the control that i am trying to learn  :bg
i am figuring out how text of different fonts is rendered in a static control
i have to know how it works in order to take a specified string and know how large to make the static
i have a pretty good "handle" on it, now
it always comes down to messing with fonts - lol - hate the damn things
there is too much stuff to know that i didn't want to know about   :bg

simply put...
the caller gives me a string
the OS gives me a font and pitch
i have to figure out what dimensions are required for the static control   :P
(and, if it's a long string, how to break it up into lines)

dedndave

part of my learning process
i think it's a bug that the larger font returns true for Italics when it is not
if it really were an italic font, the overhang would be non-zero




the attached file is the above PNG image renamed to ZIP