Hello. I was wondering if anybody could help me with a little problem. If I go into a loop in a message handler (like a click event for a button), then windows will no longer recognize any events on that window from my mouse or keyboard (ie. the window will be frozen until the loop completes).

Anyways, i was wondering if there was any way to make it so that the window will still receive events, while it is in the loop? Like maybe a function that allows the processing of uncompleted events, or something?

Any help would be appreciated!
Thanks alot, Marshall