2022-02-01から1日間の記事一覧

CWindow::OnDestroy

今度は、WM_DESTROYのメッセージハンドラOnDestroyをつくる。 Window.hに、OnDestroyを追加。 Window.cppは、CWindow::OnDestroyで、PostQuitMessage。WM_DESTROYで、OnDestroyを呼ぶ。 MainWindow.hにも、OnDestroy。 MainWindow.cppは、メッセージボックス…

SynchronizationContext.Current

WinForms(Windowsフォームアプリケーション)の場合、SynchronizationContext.Currentはどうなるか。SynchronizationContext.Current プロパティ (System.Threading) | Microsoft DocsWinFormsのプロジェクト久しぶり過ぎて、 アンダースコア('_')付けないと…