I am wondering what's the difference between those two Windows API method?
In which situation, we need to call ShowWindowAsync?
Sets the show state of a window without waiting for the operation to complete.
ShowWindow() sets the visibility state of a window created by the calling thread, ShowWindowAsync() is used when the calling thread did not create the window.
You would need to use ShowWindowAsync() in a multithreaded application when changing the visibility state of a window from a different thread.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With