Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   Font - (http://www.programmingforums.org/showthread.php?t=15119)

pcbrainbuster Feb 4th, 2008 2:17 PM

Font -
 
Sup guys,

How would I forcefully set a font size in my program and not allow to change(so default font has no effect)?

Thanks.

Klarre Feb 4th, 2008 3:08 PM

Re: Font -
 
How should we know how your font system works do you think?

pcbrainbuster Feb 4th, 2008 3:23 PM

Re: Font -
 
I don't understand, please elaborate.

Thanks.

Klarre Feb 4th, 2008 3:34 PM

Re: Font -
 
* Are you using some kind of font library?
* What kind of fonts are you using? TTF or bitmap fonts?
* Is the font implementation operating system specific? If it is - what OS are you using?
* ...

Gives us some more clues, and we will help you! :)

/Klarre

pcbrainbuster Feb 4th, 2008 4:10 PM

Re: Font -
 
Oh lol :) You mis-understood, what I was asking was "How do I set a font for a dialog box? And not use a default system font?".

Thanks.

Klarre Feb 4th, 2008 4:15 PM

Re: Font -
 
Hehe, ok!

But still - font for dialog boxes in what operating system?

pcbrainbuster Feb 4th, 2008 4:36 PM

Re: Font -
 
WinXP

Klarre Feb 5th, 2008 5:10 PM

Re: Font -
 
This function call might help you.
:

SendMessage(mYourDialogTextHwnd, WM_SETFONT, (WPARAM)hFont, TRUE);


All times are GMT -5. The time now is 3:42 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC