I currently successfully use
SetDlgItemText (hDlgNotify, ID_TEXT, s);
to updates a window called Notify that shows the user the percentage progress while loading my application.
(so I send "1%", "2%", "3%", etc to ID_TEXT).
However my problem is that if the user switches to another application while my application is loading, the above command no longer successfully works (so if for instance it was 3% loaded when they switched away from my application, then my dialog will wrongly continue to show 3% until my application finishes loading).
So how can I change the above code to successfully send and display the updated string to my dialog, yet not have to reset the focus to my application (since it would be annoying to the user if we tried to send the focus back to my application every percentage until my application finishes loading)?