Home > Software engineering >  VC MFC message response thread
VC MFC message response thread

Time:10-09

I'm OnPaint () open a BMP file and put it on the Static controls,
In another message response response function is open the file, and created a modal dialog box,
As soon as the situation now is to create a modal dialog box OnPaint () in the MessageBox () will play out
I suspect that in the process of message response can also respond to other message, don't message response function is to create a thread to handle alone?
Confused now, wish you a great god can help

CodePudding user response:

As soon as the situation now is to create a modal dialog box OnPaint () in the MessageBox () will play out
I suspect that in the process of message response can also respond to other message, don't message response function is to create a thread to handle alone?
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

CodePudding user response:

Please go to code!

CodePudding user response:

Any shade window operation will lead to onpaint trigger

CodePudding user response:

If the other news of the response function is executing, will enter the OnPaint () function?

CodePudding user response:

"" OnPaint () in a MessageBox ()", "
Please don't in the OnPaint using MessageBox () (), because, a MessageBox (), and perform the OnPaint,

Using afxDump & lt; & lt;" Something happen \ n "; The TRACE function such as

CodePudding user response:

Because, MessageBox () closing OnPaint performed again,

CodePudding user response:

The question now is whether the other news of the response function but not performed in the implementation process, has entered the OnPaint () function

CodePudding user response:

Message response function will be interrupted?

CodePudding user response:

Any operation will lead to change the window onpaint trigger

CodePudding user response:

Support what upstairs said, although I don't know is what circumstance,

CodePudding user response:

CodePudding user response:

Multiple Threads in the User Interface of http://msdn.microsoft.com/zh-cn/library/ms810439.aspx
  • Related