Click here to Skip to main content
15,899,313 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: question to the pros: nasty ASSERTION in BOOST Pin
Maxwell Chen7-Mar-08 8:11
Maxwell Chen7-Mar-08 8:11 
GeneralRe: question to the pros: nasty ASSERTION in BOOST Pin
Nemanja Trifunovic7-Mar-08 8:19
Nemanja Trifunovic7-Mar-08 8:19 
Generalavi file on Status bar Pin
ptr_Electron7-Mar-08 3:18
ptr_Electron7-Mar-08 3:18 
GeneralRe: avi file on Status bar Pin
toxcct7-Mar-08 3:38
toxcct7-Mar-08 3:38 
GeneralRe: avi file on Status bar Pin
ptr_Electron7-Mar-08 5:21
ptr_Electron7-Mar-08 5:21 
GeneralRe: avi file on Status bar Pin
super_ttd7-Mar-08 7:02
super_ttd7-Mar-08 7:02 
GeneralRe: avi file on Status bar Pin
led mike7-Mar-08 7:18
led mike7-Mar-08 7:18 
GeneralRe: avi file on Status bar Pin
Randor 7-Mar-08 7:08
professional Randor 7-Mar-08 7:08 
Hi,

Its hard to give you advice without seeing what type of 'processing' you are doing. You should avoid drawing on a window from a separate thread if at all possible. You may be able to simply pump the message que and move the AVI-frame painting into OnPaint.

In the while loop you can probably add:

while(somecondition)
{
	MSG oMSG;
	while(::PeekMessage(&oMSG, NULL, 0, 0, PM_NOREMOVE))
	{
		if(::GetMessage(&oMSG, NULL, 0, 0))
		{
			::TranslateMessage(&oMSG);
			::DispatchMessage(&oMSG);
		}
		else
		{
			break;
		}
	}

	//Your processing code goes here
	//Hopefully the work is done in chunks and continues to the top of the loop.

}
pre>


This will allow the dialog to process WM_PAINT messages normally.
GeneralRe: avi file on Status bar Pin
super_ttd7-Mar-08 7:13
super_ttd7-Mar-08 7:13 
GeneralRe: avi file on Status bar Pin
Randor 7-Mar-08 7:29
professional Randor 7-Mar-08 7:29 
GeneralRe: avi file on Status bar Pin
ptr_Electron10-Mar-08 23:56
ptr_Electron10-Mar-08 23:56 
GeneralRe: avi file on Status bar Pin
Randor 11-Mar-08 4:05
professional Randor 11-Mar-08 4:05 
GeneralRe: avi file on Status bar Pin
Rajkumar R7-Mar-08 3:42
Rajkumar R7-Mar-08 3:42 
GeneralRe: avi file on Status bar Pin
ptr_Electron7-Mar-08 4:34
ptr_Electron7-Mar-08 4:34 
GeneralRe: avi file on Status bar Pin
Nathan Holt at EMOM7-Mar-08 5:41
Nathan Holt at EMOM7-Mar-08 5:41 
QuestionSHFileOperation file deletion using the Recycle bin is SLOW!!! Pin
Member 38546007-Mar-08 2:53
Member 38546007-Mar-08 2:53 
AnswerRe: SHFileOperation file deletion using the Recycle bin is SLOW!!! Pin
Rajkumar R7-Mar-08 3:53
Rajkumar R7-Mar-08 3:53 
GeneralRe: SHFileOperation file deletion using the Recycle bin is SLOW!!! Pin
Member 38546007-Mar-08 5:05
Member 38546007-Mar-08 5:05 
GeneralRe: SHFileOperation file deletion using the Recycle bin is SLOW!!! Pin
led mike7-Mar-08 10:40
led mike7-Mar-08 10:40 
GeneralSetWindowContextHelpId always fails, Pin
ptr_Electron7-Mar-08 2:46
ptr_Electron7-Mar-08 2:46 
GeneralRe: SetWindowContextHelpId always fails, Pin
led mike7-Mar-08 4:17
led mike7-Mar-08 4:17 
Questionhow to wait for a file to be free? Pin
VCsamir7-Mar-08 2:33
VCsamir7-Mar-08 2:33 
AnswerRe: how to wait for a file to be free? Pin
CPallini7-Mar-08 2:34
mveCPallini7-Mar-08 2:34 
GeneralRe: how to wait for a file to be free? Pin
Hamid_RT9-Mar-08 0:58
Hamid_RT9-Mar-08 0:58 
AnswerRe: how to wait for a file to be free? Pin
Chris Meech7-Mar-08 3:01
Chris Meech7-Mar-08 3:01 

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.