Click here to Skip to main content
15,897,315 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionLooking for a Library... Pin
Bob X1-Aug-06 15:32
Bob X1-Aug-06 15:32 
AnswerRe: Looking for a Library... Pin
valikac1-Aug-06 16:15
valikac1-Aug-06 16:15 
GeneralRe: Looking for a Library... Pin
bob169721-Aug-06 18:07
bob169721-Aug-06 18:07 
GeneralRe: Looking for a Library... Pin
Bob X2-Aug-06 11:14
Bob X2-Aug-06 11:14 
QuestionCan a program minimise itself ? Pin
cgb1431-Aug-06 11:51
cgb1431-Aug-06 11:51 
AnswerRe: Can a program minimise itself ? Pin
Jörgen Sigvardsson1-Aug-06 12:50
Jörgen Sigvardsson1-Aug-06 12:50 
Question"this" pointer for thread seems does not work [modified] Pin
zhijia.yuan1-Aug-06 11:38
zhijia.yuan1-Aug-06 11:38 
AnswerRe: "this" pointer for thread seems does not work Pin
Michael Dunn1-Aug-06 19:33
sitebuilderMichael Dunn1-Aug-06 19:33 
In MFC, you can't access certain kinds of objects from a different thread than the one that created the object. CWnd is one of those kinds. Also, doing GDI operations from a thread different than the one that created the window is not advisible because it will result in lots of context switches (and it may not even work at all in Vista with its new desktop composition).
The preferred way is to have the thread post a message to the window (post to the HWND, not the CWnd) when drawing needs to be done. That way, the drawing happens on the UI thread.


--Mike--
Visual C++ MVP Cool | :cool:
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
QuestionCan't send register value to port 0x43 Pin
Heinz_1-Aug-06 11:00
Heinz_1-Aug-06 11:00 
QuestionRice Compression Pin
masnu1-Aug-06 9:32
masnu1-Aug-06 9:32 
QuestionRe: Rice Compression Pin
David Crow1-Aug-06 10:22
David Crow1-Aug-06 10:22 
AnswerRe: Rice Compression Pin
masnu1-Aug-06 10:25
masnu1-Aug-06 10:25 
GeneralRe: Rice Compression Pin
David Crow2-Aug-06 2:54
David Crow2-Aug-06 2:54 
Questionhow can i implement acelp encoding? Pin
premium11-Aug-06 7:34
premium11-Aug-06 7:34 
AnswerRe: how can i implement acelp encoding? Pin
Ravi Bhavnani1-Aug-06 7:48
professionalRavi Bhavnani1-Aug-06 7:48 
QuestionOpening a Picture File and displaying it in a pictureBox Pin
michmela441-Aug-06 7:22
michmela441-Aug-06 7:22 
AnswerRe: Opening a Picture File and displaying it in a pictureBox Pin
Programm3r1-Aug-06 7:31
Programm3r1-Aug-06 7:31 
GeneralRe: Opening a Picture File and displaying it in a pictureBox Pin
michmela441-Aug-06 7:36
michmela441-Aug-06 7:36 
AnswerRe: Opening a Picture File and displaying it in a pictureBox Pin
Ravi Bhavnani1-Aug-06 7:31
professionalRavi Bhavnani1-Aug-06 7:31 
QuestionRe: Opening a Picture File and displaying it in a pictureBox Pin
David Crow1-Aug-06 7:37
David Crow1-Aug-06 7:37 
QuestionRe: Opening a Picture File and displaying it in a pictureBox Pin
michmela441-Aug-06 7:40
michmela441-Aug-06 7:40 
AnswerRe: Opening a Picture File and displaying it in a pictureBox Pin
michmela441-Aug-06 7:58
michmela441-Aug-06 7:58 
AnswerRe: Opening a Picture File and displaying it in a pictureBox Pin
Ravi Bhavnani1-Aug-06 7:45
professionalRavi Bhavnani1-Aug-06 7:45 
AnswerRe: Opening a Picture File and displaying it in a pictureBox Pin
Ravi Bhavnani1-Aug-06 8:14
professionalRavi Bhavnani1-Aug-06 8:14 
QuestionRe: Opening a Picture File and displaying it in a pictureBox Pin
michmela441-Aug-06 8:06
michmela441-Aug-06 8: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.