Click here to Skip to main content
16,012,173 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problems with Sleep() in thread Pin
Chris Losinger8-Jan-07 8:55
professionalChris Losinger8-Jan-07 8:55 
GeneralRe: Problems with Sleep() in thread Pin
acerunner3168-Jan-07 9:11
acerunner3168-Jan-07 9:11 
GeneralRe: Problems with Sleep() in thread Pin
Chris Losinger8-Jan-07 10:32
professionalChris Losinger8-Jan-07 10:32 
AnswerRe: Problems with Sleep() in thread Pin
Mark Salsbery4-Jan-07 12:55
Mark Salsbery4-Jan-07 12:55 
AnswerRe: Problems with Sleep() in thread Pin
ThatsAlok4-Jan-07 18:02
ThatsAlok4-Jan-07 18:02 
AnswerRe: Problems with Sleep() in thread Pin
Joe Woodbury4-Jan-07 19:00
professionalJoe Woodbury4-Jan-07 19:00 
AnswerRe: Problems with Sleep() in thread Pin
kasturi_haribabu4-Jan-07 19:07
kasturi_haribabu4-Jan-07 19:07 
GeneralRe: Problems with Sleep() in thread Pin
acerunner3165-Jan-07 8:43
acerunner3165-Jan-07 8:43 
I don't know if it takes 0ms, but there is nothing else to my code other than repeatedly posting messages.

UINT CNOx1000MonitorDlg::FThreadLoop (LPVOID PptrToClass)<br />
{<br />
	CMainWindowDlg *LptrClass = static_cast<CMainWindowDlg *>(PptrToClass);<br />
	HWND *ptrWindowHandle = new HWND;<br />
	*ptrWindowHandle = LptrClass->GetSafeHwnd();<br />
<br />
	while(LptrClass->mbolThreadExecute)<br />
	{<br />
		::PostMessage(*ptrWindowHandle, WM_UPDATE_CONTROLS, 0, 0);<br />
		::Sleep(10);<br />
	}<br />
	delete ptrWindowHandle;<br />
	return 0;<br />
}

AnswerRe: Problems with Sleep() in thread Pin
S Douglas5-Jan-07 1:30
professionalS Douglas5-Jan-07 1:30 
QuestionWPF, XAML, Expression Blend and MFC [modified] Pin
AAntix4-Jan-07 10:00
AAntix4-Jan-07 10:00 
Questiondoubel buffering with GDI problem Pin
ceejeeb4-Jan-07 8:31
ceejeeb4-Jan-07 8:31 
AnswerRe: doubel buffering with GDI problem Pin
Mark Salsbery4-Jan-07 8:36
Mark Salsbery4-Jan-07 8:36 
GeneralRe: doubel buffering with GDI problem Pin
ceejeeb4-Jan-07 8:38
ceejeeb4-Jan-07 8:38 
GeneralRe: doubel buffering with GDI problem Pin
Mark Salsbery4-Jan-07 8:42
Mark Salsbery4-Jan-07 8:42 
GeneralRe: doubel buffering with GDI problem Pin
ceejeeb4-Jan-07 8:45
ceejeeb4-Jan-07 8:45 
GeneralRe: doubel buffering with GDI problem Pin
Mark Salsbery4-Jan-07 8:47
Mark Salsbery4-Jan-07 8:47 
GeneralRe: doubel buffering with GDI problem Pin
ceejeeb4-Jan-07 8:56
ceejeeb4-Jan-07 8:56 
Questiondynamic CImageList icons - possible? [modified] Pin
neilsolent4-Jan-07 8:13
neilsolent4-Jan-07 8:13 
AnswerRe: dynamic CImageList icons - possible? Pin
Mark Salsbery4-Jan-07 8:26
Mark Salsbery4-Jan-07 8:26 
AnswerRe: dynamic CImageList icons - possible? Pin
James R. Twine4-Jan-07 8:29
James R. Twine4-Jan-07 8:29 
AnswerRe: dynamic CImageList icons - possible? Pin
CPallini4-Jan-07 8:38
mveCPallini4-Jan-07 8:38 
AnswerRe: dynamic CImageList icons - possible? Pin
Hamid_RT4-Jan-07 18:11
Hamid_RT4-Jan-07 18:11 
GeneralRe: dynamic CImageList icons - possible? Pin
neilsolent6-Jan-07 0:09
neilsolent6-Jan-07 0:09 
GeneralRe: dynamic CImageList icons - possible? Pin
Hamid_RT6-Jan-07 19:13
Hamid_RT6-Jan-07 19:13 
QuestionRestricting access to Windows Pin
pcfilho4-Jan-07 7:26
pcfilho4-Jan-07 7:26 

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.