Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これらの2つのWindowsAPIメソッドの違いは何ですか?
どのような状況で、ShowWindowAsyncを呼び出す必要がありますか?
ShowWindow()は、呼び出し元のスレッドによって作成されたウィンドウの可視性の状態を設定します。ShowWindowAsync()は、呼び出し側のスレッドがウィンドウを作成しなかった場合に使用されます。
別のスレッドからウィンドウの表示状態を変更する場合は、マルチスレッドアプリケーションでShowWindowAsync()を使用する必要があります。