简体   繁体   中英

what's the difference between ShowWindow and ShowWindowAsync?

I am wondering what's the difference between those two Windows API method?

In which situation, we need to call ShowWindowAsync?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM