What is VC++ 6 equivalent of VB's DoEvents
-
Is there anything equivalent to DoEvents of VB in VC++ 6??? Mahesh
-
Is there anything equivalent to DoEvents of VB in VC++ 6??? Mahesh
Mahesh Perumal wrote: Is there anything equivalent to DoEvents of VB in VC++ 6??? I would assume it's along the lines of SendMessage[^]. -Nick Parker
-
Mahesh Perumal wrote: Is there anything equivalent to DoEvents of VB in VC++ 6??? I would assume it's along the lines of SendMessage[^]. -Nick Parker
-
Is there anything equivalent to DoEvents of VB in VC++ 6??? Mahesh
It doesn't exist, but you can certainly write it:
void DoEvents()
{
for (MSG msg; ::PeekMessage(&msg, NULL, 0, 0, PM_REMOVE); )
{
::TranslateMessage(&msg);
::DispatchMessage(&msg);
}
}Regards, Alvaro
Quitters never win. Winners never quit. But those who never win and never quit are idiots. -- despair.com
-
It doesn't exist, but you can certainly write it:
void DoEvents()
{
for (MSG msg; ::PeekMessage(&msg, NULL, 0, 0, PM_REMOVE); )
{
::TranslateMessage(&msg);
::DispatchMessage(&msg);
}
}Regards, Alvaro
Quitters never win. Winners never quit. But those who never win and never quit are idiots. -- despair.com
Thanx a lot. I have got it working...:)