Babak,
The MFC analog to CVI ProcesSystemEvents is a message loop. Check out the MSDN article titled "Idle Loop Processing" for more information. The URL for the online MSDN is below.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/_core_Idle_Loop_Processing.asp
David Rohacek
National Instruments