Basically exactly what the title says. I would like to update the text that a button contains every 1 second when the user presses that particular button. I have noted that when
The WndProc
does not process messages asynchronously within an application which means all messages are expected to be handled quickly and a return value delivered immediately. You must not Sleep
in the UI thread since it will block other UI events from being processed. Any heavy work or synchronous requests/jobs which are likely to take a long time should be performed in worker threads. There are at least three viable options: