for example, lets say i got a edit box that i want to give the value "hi",
n = "hi"
UpdateData(0);
MessageBox("hi");
for
{
.... // alot of crap here
}
now the problem is, if i didnt put the message box, the program would first comlete all the damn for looping and then update the edit box to say hi, is there a way for force the program to show hi in the edit box before it starts all its longgggg for loop coding, instead of using MessageBox() to freeze the program allowing it to update (forcing it)
The problem is the UpdateData puts messages in the application's message queue that are not processed until the function returns back to the message loop, or you run an embedded message loop. The MessageBox function runs an embedded message loop. You can also run an embedded message loop yourself. There is an example on this MSDN page.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.