Click here to Skip to main content
16,005,241 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
Mark Salsbery9-Jun-07 7:56
Mark Salsbery9-Jun-07 7:56 
GeneralRe: error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'void (void)' Pin
shivditya10-Jun-07 22:14
shivditya10-Jun-07 22:14 
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 
Because the normal drawing code for list controls doesn't draw each item in a different colour you can't use the same sort of method as for the static text control. i.e. set the font, let it draw, reset the font. You need to intercept the drawing of each individual item in the list and decide whether you want it in one colour or the other.
As you're going to have to store per-item data for this anyway you might as well hold onto all the list data yourself and make it a virtual list control. There are a number of keywords you need to look for in MSDN, 'virtual list control', 'Owner Draw' and 'Custom Draw'.
I would start with Custom drawing as you probably don't want to do all the painting of the list control yourself.
Custom drawing is when the MFC control calls your functions to do parts of the painting, e.g. background or border or list item but does the rest itself.
Owner draw is where you do all the painting of the control, this is fun if you want to do something simple but list controls are not really that simple to paint.
A 'Virtual ListCtrl' is where MFC calls your functions to get each data item as it draws the list. this lets you supply the text but not the font as MFC doesn't expect it to change Smile | :) You might be able to cheat by finding the DC for the control each time it calls you for an item and setting the font but that is bad hacking Dead | X| In fact I didn't even suggest that Wink | ;)

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

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

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.