Advertisement
Java_Volume1 Miscellaneous #100171

How to do DoEvents in the C++ Language without function cycles

Heres a function, which will allow you to setup doevents in your C++ program. What I mean by that is DoEvents is a VB keyword it allows your program to continue updating windows while a specific function is in a loop. Well do this in C++ have that function in your source and say while(whatever) { // processing cppDoEvents(); } and thats it!. thanks to inc for the info on how to do this!

AI

AIサマリー: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

ソースコード
original-source
// C++ Version of DoEvents
void cppDoEvents() 
{ 
	MSG Msg; 
	while(PeekMessage(&Msg,NULL,0,0,PM_REMOVE))
	{
		if (Msg.message == WM_QUIT)break;
		TranslateMessage(&Msg); 
		DispatchMessage(&Msg);
	} 
}
オリジナルのコメント (3)
Wayback Machineから復元