Hello,
You can also call ProcessDrawEvents function, instead of ProcessSystemEvents function. ProcessDrawEvents processes only user interface events if they occur, whereas ProcessSystemEvents processes any events if they occur. In your case, it looks like you just want to be able to process user interface events, so ProcessDrawEvents should solve the problem.
Mika Fukuchi
Application Engineer
National Instruments