Click here to Skip to main content
15,881,413 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: size of an empty class?? Pin
Nemanja Trifunovic25-May-04 6:01
Nemanja Trifunovic25-May-04 6:01 
GeneralRe: size of an empty class?? Pin
avenger_sb2525-May-04 17:46
avenger_sb2525-May-04 17:46 
Generalmenu next to images Pin
Member 466743725-May-04 4:34
Member 466743725-May-04 4:34 
GeneralRe: menu next to images Pin
jmkhael25-May-04 4:43
jmkhael25-May-04 4:43 
GeneralRe: menu next to images Pin
Member 466743725-May-04 9:26
Member 466743725-May-04 9:26 
GeneralRe: menu next to images Pin
Maximilien25-May-04 9:30
Maximilien25-May-04 9:30 
GeneralRe: menu next to images Pin
Member 466743726-May-04 11:14
Member 466743726-May-04 11:14 
GeneralQuestion about Saving Fonts. Pin
Mike Doner25-May-04 4:15
Mike Doner25-May-04 4:15 
I have a quick question regarding saving font settings in a drawing type package.

For example, an application like Corel Draw who has a TextBox on the canvas who uses Arial font, how would that information be saved?

Obviously, we'd store the text in some kind of string/char object, but for the font, would you just store the szFontName, nPointSize and some style bits (bold/italics/underline)?

We're working on an issue with our product where somebody has chose to save the LOGFONT structure, but we're finding that the logfont.height guy is based on the DC because of the call:

logfont.lfHeight = -MulDiv ( PointSize, GetDeviceCaps(hdc, LOGPIXELSY), 72 );

Bottom line, Whats the common way to save this stuff?

Any info you could send would be greatly appreciated.

Mike.
GeneralRe: Question about Saving Fonts. Pin
Johan Rosengren25-May-04 21:28
Johan Rosengren25-May-04 21:28 
GeneralHelp: How to retrieve UNIT of a scroll bar Pin
fotoONE25-May-04 3:57
fotoONE25-May-04 3:57 
GeneralRe: Help: How to retrieve UNIT of a scroll bar Pin
Maximilien25-May-04 4:19
Maximilien25-May-04 4:19 
Generalprivate member in base class problem Pin
kzyczynski25-May-04 3:52
kzyczynski25-May-04 3:52 
GeneralRe: private member in base class problem Pin
Maximilien25-May-04 3:55
Maximilien25-May-04 3:55 
GeneralRe: private member in base class problem Pin
kzyczynski25-May-04 5:24
kzyczynski25-May-04 5:24 
GeneralRe: private member in base class problem Pin
jmkhael25-May-04 3:59
jmkhael25-May-04 3:59 
GeneralRe: private member in base class problem Pin
Hans Ruck25-May-04 5:04
Hans Ruck25-May-04 5:04 
QuestionHow to increase print preview area Pin
Member 16246225-May-04 3:41
Member 16246225-May-04 3:41 
Questionwhat wrong with this function template? Pin
DengJW25-May-04 2:17
DengJW25-May-04 2:17 
AnswerRe: what wrong with this function template? Pin
jmkhael25-May-04 2:38
jmkhael25-May-04 2:38 
AnswerRe: what wrong with this function template? Pin
ilostmyid225-May-04 2:39
professionalilostmyid225-May-04 2:39 
AnswerRe: what wrong with this function template? Pin
DengJW25-May-04 2:47
DengJW25-May-04 2:47 
GeneralRe: what wrong with this function template? Pin
ilostmyid225-May-04 2:51
professionalilostmyid225-May-04 2:51 
GeneralRe: what wrong with this function template? Pin
DengJW25-May-04 3:14
DengJW25-May-04 3:14 
GeneralRe: what wrong with this function template? Pin
ilostmyid225-May-04 3:25
professionalilostmyid225-May-04 3:25 
GeneralRe: what wrong with this function template? Pin
DengJW25-May-04 3:36
DengJW25-May-04 3:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.