Quote:
|
Originally Posted by pcbrainbuster
Now that I think about it, is there a way to keep the font the same no matter what the default is?
|
The whole point of using dialog units is to accommodate various display properties (font size in particular).
If you've ever been presented with a fixed-size window where text or various controls run off the edge, and thereby become inaccessible, you will know the dangers inherent in assuming the user has certain settings in place. Some users may have changed the default fonts, and so long as you specify your own fonts (and these fonts are installed), this won't be a problem. A more serious issue arises when users enable font scaling, in particular to use larger-than-normal fonts for visibility (perhaps their monitor has a very fine pitch, or their vision is sub-par). This will scale up all fonts, and if you assume (or force) GDI rendering to be in terms of pixels, you'll have problems.
You should be able to convert the absolute (pixel) units to the logical (dialog) units at runtime, and adjust the positioning of your animation and controls accordingly.