Click here to Skip to main content
15,903,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'void (void)' Pin
bolivar1237-Jun-07 7:27
bolivar1237-Jun-07 7:27 
QuestionRe: error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'void (void)' Pin
David Crow7-Jun-07 10:28
David Crow7-Jun-07 10:28 
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 
Two steps are needed. First you need a font, or in the case of MFC a CFont. Then you need to select that font into the DeviceContext you already have a pointer to, pDC, before the static gets drawn. I guess in the same place as you put SetTextColor, the WM_PAINT handler.
I Can't remember off the top of my head whether you call a function on the DC pDC->SelectObject(myFont) or if you can do it the other way around myFont.Select(pDC) but you'll figure that out in no time.
Remember to record the previously selected Font which will get returned when you do the SelectObject and re-select that one back into your DC after you've finished painting or you might screw up the next guys control by drawing it with your font OMG | :OMG:


Nothing is exactly what it seems but everything with seems can be unpicked.

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 
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 

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.