Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'void (void)' Pin
shivditya9-Jun-07 5:40
shivditya9-Jun-07 5:40 
JokeRe: error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'void (void)' Pin
shivditya9-Jun-07 5:41
shivditya9-Jun-07 5:41 
QuestionCE C++ - list control color and font problems Pin
LaCoder7-Jun-07 6:25
LaCoder7-Jun-07 6:25 
AnswerRe: CE C++ - list control color and font problems Pin
Matthew Faithfull7-Jun-07 7:42
Matthew Faithfull7-Jun-07 7:42 
QuestionCE C++ - static text font and size how to [modified] Pin
LaCoder7-Jun-07 6:15
LaCoder7-Jun-07 6:15 
AnswerRe: CE C++ - static text font and size how to Pin
Matthew Faithfull7-Jun-07 6:33
Matthew Faithfull7-Jun-07 6:33 
GeneralRe: CE C++ - static text font and size how to Pin
LaCoder7-Jun-07 6:50
LaCoder7-Jun-07 6:50 
AnswerRe: CE C++ - static text font and size how to Pin
Anurag Gandhi7-Jun-07 6:35
professionalAnurag Gandhi7-Jun-07 6:35 
To change the font face, size, weight and other properties, Create a new font and attach it with your Device context.
use following code:
CFont font;
font.CreateFont(20,0,0,0,200,0,0,0,0,0,0,0,0,_T("Times New Roman"));
pDC->SelectObject(&font);

//First parameter is Height and 2nd is width. when 0 is passed, it takes proportionate height or width.
Now you will be able to change the font size. I will suggest read more about fonts in VC++ from any tutorial.


Anurag Gandhi.

GeneralRe: CE C++ - static text font and size how to Pin
LaCoder7-Jun-07 6:53
LaCoder7-Jun-07 6:53 
QuestionVariable Resource Ids Pin
maberry7-Jun-07 6:05
maberry7-Jun-07 6:05 
QuestionRe: Variable Resource Ids Pin
Mark Salsbery7-Jun-07 6:50
Mark Salsbery7-Jun-07 6:50 
AnswerRe: Variable Resource Ids Pin
maberry7-Jun-07 7:59
maberry7-Jun-07 7:59 
GeneralRe: Variable Resource Ids Pin
Mark Salsbery7-Jun-07 8:13
Mark Salsbery7-Jun-07 8:13 
QuestionLoadLibrary(Ex) and SetErrorMode problem Pin
Nitrogenycs7-Jun-07 5:59
Nitrogenycs7-Jun-07 5:59 
AnswerRe: LoadLibrary(Ex) and SetErrorMode problem Pin
bob169727-Jun-07 7:58
bob169727-Jun-07 7:58 
GeneralRe: LoadLibrary(Ex) and SetErrorMode problem Pin
Nitrogenycs7-Jun-07 8:36
Nitrogenycs7-Jun-07 8:36 
QuestionRe: LoadLibrary(Ex) and SetErrorMode problem Pin
bob169727-Jun-07 9:24
bob169727-Jun-07 9:24 
GeneralRe: LoadLibrary(Ex) and SetErrorMode problem Pin
Nitrogenycs7-Jun-07 9:45
Nitrogenycs7-Jun-07 9:45 
Questionstd::map but with multiple values for one key? Pin
Cyrilix7-Jun-07 3:57
Cyrilix7-Jun-07 3:57 
AnswerRe: std::map but with multiple values for one key? Pin
CPallini7-Jun-07 4:12
mveCPallini7-Jun-07 4:12 
GeneralRe: std::map but with multiple values for one key? Pin
Cyrilix7-Jun-07 4:23
Cyrilix7-Jun-07 4:23 
AnswerRe: std::map but with multiple values for one key? Pin
Michael Sadlon7-Jun-07 8:11
Michael Sadlon7-Jun-07 8:11 
GeneralRe: std::map but with multiple values for one key? Pin
Cyrilix7-Jun-07 8:19
Cyrilix7-Jun-07 8:19 
AnswerRe: std::map but with multiple values for one key? Pin
Michael Sadlon8-Jun-07 10:19
Michael Sadlon8-Jun-07 10:19 
Question#include files included more than once Pin
prithaa7-Jun-07 2:57
prithaa7-Jun-07 2:57 

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.