Click here to Skip to main content
15,892,643 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is this code ok? Pin
Maximilien12-Oct-05 0:47
Maximilien12-Oct-05 0:47 
GeneralRe: Is this code ok? Pin
Bob Stanneveld12-Oct-05 5:56
Bob Stanneveld12-Oct-05 5:56 
AnswerRe: Is this code ok? Pin
Mateusz Karbowy12-Oct-05 11:22
Mateusz Karbowy12-Oct-05 11:22 
QuestionReplacing http headers with LSP Pin
Tomek.Sergey11-Oct-05 12:37
Tomek.Sergey11-Oct-05 12:37 
QuestionContolling the Font with CDC text methods? Pin
Ian Bowler11-Oct-05 12:02
Ian Bowler11-Oct-05 12:02 
AnswerRe: Contolling the Font with CDC text methods? Pin
Chris Losinger11-Oct-05 14:00
professionalChris Losinger11-Oct-05 14:00 
GeneralRe: Contolling the Font with CDC text methods? Pin
Ian Bowler11-Oct-05 14:01
Ian Bowler11-Oct-05 14:01 
AnswerRe: Contolling the Font with CDC text methods? Pin
Roger Allen12-Oct-05 13:42
Roger Allen12-Oct-05 13:42 
You need to create the font, select it into the CDC, do the textout, then select it out.

You should always return any CDC object to the system in the same state as when you got it.

As for getting the default system font, you need to do a call to GetSystemParameterInfo or some such (I am at home and dont have the docs in front of me)

CFont font;

font.CreateFont(...);
CFOnt oldFont = (CFont*)dc.SelectObject(&font);
dc.TextOut(...);
dc.SelectObject(oldFont);


If you vote me down, my score will only get lower
QuestionCFtpConnection::GetFile - error 12003 ? Pin
chenggong11-Oct-05 8:12
chenggong11-Oct-05 8:12 
AnswerRe: CFtpConnection::GetFile - error 12003 ? Pin
RadioOpa11-Oct-05 8:31
RadioOpa11-Oct-05 8:31 
QuestionMFC multiple groups of radio buttons Pin
Axonn Echysttas11-Oct-05 7:37
Axonn Echysttas11-Oct-05 7:37 
AnswerRe: MFC multiple groups of radio buttons Pin
David Crow11-Oct-05 9:02
David Crow11-Oct-05 9:02 
GeneralRe: MFC multiple groups of radio buttons Pin
Axonn Echysttas11-Oct-05 20:00
Axonn Echysttas11-Oct-05 20:00 
QuestionReally Urgent (Function to get the size of a file) Pin
REU11-Oct-05 7:08
REU11-Oct-05 7:08 
AnswerRe: Really Urgent (Function to get the size of a file) Pin
Chris Losinger11-Oct-05 7:18
professionalChris Losinger11-Oct-05 7:18 
GeneralRe: Really Urgent (Function to get the size of a file) Pin
REU11-Oct-05 7:28
REU11-Oct-05 7:28 
GeneralRe: Really Urgent (Function to get the size of a file) Pin
REU11-Oct-05 7:42
REU11-Oct-05 7:42 
Questionconstructor : 2 step constructor ... Pin
Maximilien11-Oct-05 6:47
Maximilien11-Oct-05 6:47 
AnswerRe: constructor : 2 step constructor ... Pin
Prakash Nadar11-Oct-05 7:13
Prakash Nadar11-Oct-05 7:13 
QuestionGreat News! Pin
Al Baraki11-Oct-05 6:01
Al Baraki11-Oct-05 6:01 
AnswerRe: Great News! Pin
Prakash Nadar11-Oct-05 6:09
Prakash Nadar11-Oct-05 6:09 
GeneralRe: Great News! Pin
Bob Stanneveld11-Oct-05 6:28
Bob Stanneveld11-Oct-05 6:28 
AnswerRe: Great News! Pin
Maximilien11-Oct-05 6:13
Maximilien11-Oct-05 6:13 
QuestionString Help Pin
Anonymous11-Oct-05 5:59
Anonymous11-Oct-05 5:59 
QuestionRe: String Help Pin
David Crow11-Oct-05 6:06
David Crow11-Oct-05 6:06 

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.