Click here to Skip to main content
16,005,236 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can I make my main window resizable in win32? Pin
Paresh Chitte7-Mar-07 18:30
Paresh Chitte7-Mar-07 18:30 
AnswerRe: How can I make my main window resizable in win32? Pin
Nibu babu thomas7-Mar-07 18:35
Nibu babu thomas7-Mar-07 18:35 
QuestionUpdateAllViews() in Multithreaded App Pin
Dalfxxx7-Mar-07 16:48
Dalfxxx7-Mar-07 16:48 
AnswerRe: UpdateAllViews() in Multithreaded App Pin
Mark Salsbery8-Mar-07 8:32
Mark Salsbery8-Mar-07 8:32 
GeneralRe: UpdateAllViews() in Multithreaded App Pin
Blake Miller9-Mar-07 5:33
Blake Miller9-Mar-07 5:33 
GeneralRe: UpdateAllViews() in Multithreaded App Pin
Mark Salsbery9-Mar-07 11:25
Mark Salsbery9-Mar-07 11:25 
GeneralRe: UpdateAllViews() in Multithreaded App Pin
Dalfxxx9-Mar-07 10:28
Dalfxxx9-Mar-07 10:28 
GeneralRe: UpdateAllViews() in Multithreaded App Pin
Mark Salsbery9-Mar-07 11:29
Mark Salsbery9-Mar-07 11:29 
Dalfxxx wrote:
Could you elaborate a bit on your comment:
"Assuming you've made your painting thread safe"?


I meant if you are calling your painting method(s) directly from multiple threads then any GDI
calls there need to be synchronized. A critical section works fine Smile | :)

If you're relying on WM_PAINT (which is the case if you use InvalidateRect() to mark the window
for repainting) then you should be ok. All of those messages will go through your UI thread.

Mark



"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")

QuestionNamed pipe question Pin
mhp1307-Mar-07 15:34
mhp1307-Mar-07 15:34 
AnswerRe: Named pipe question Pin
Mark Salsbery7-Mar-07 16:27
Mark Salsbery7-Mar-07 16:27 
QuestionAssociate menu with dialog boxes on a tab control Pin
Trevy7-Mar-07 15:05
Trevy7-Mar-07 15:05 
AnswerRe: Associate menu with dialog boxes on a tab control Pin
Nibu babu thomas7-Mar-07 16:21
Nibu babu thomas7-Mar-07 16:21 
Questionc++ list sorting Pin
mehmetned7-Mar-07 14:36
mehmetned7-Mar-07 14:36 
AnswerRe: c++ list sorting Pin
Stephen Hewitt7-Mar-07 15:34
Stephen Hewitt7-Mar-07 15:34 
QuestionBase class to subclass conversion Pin
mehmetned7-Mar-07 13:10
mehmetned7-Mar-07 13:10 
AnswerRe: Base class to subclass conversion Pin
Stephen Hewitt7-Mar-07 15:42
Stephen Hewitt7-Mar-07 15:42 
Questionreturn a bitmap Pin
Zapacila7-Mar-07 10:51
Zapacila7-Mar-07 10:51 
AnswerRe: return a bitmap Pin
Paresh Chitte7-Mar-07 17:27
Paresh Chitte7-Mar-07 17:27 
GeneralRe: return a bitmap Pin
Zapacila7-Mar-07 18:31
Zapacila7-Mar-07 18:31 
AnswerRe: return a bitmap Pin
Paresh Chitte7-Mar-07 20:17
Paresh Chitte7-Mar-07 20:17 
GeneralRe: return a bitmap Pin
Zapacila8-Mar-07 1:56
Zapacila8-Mar-07 1:56 
QuestionSlider Pin
mannur7-Mar-07 8:53
mannur7-Mar-07 8:53 
AnswerRe: Slider Pin
Mark Salsbery7-Mar-07 9:33
Mark Salsbery7-Mar-07 9:33 
AnswerRe: Slider Pin
David Crow7-Mar-07 10:21
David Crow7-Mar-07 10:21 
QuestionHelp choosing between VS6.0 and VS2005 Pin
BRShroyer7-Mar-07 8:16
BRShroyer7-Mar-07 8:16 

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.