2022-03-23から1日間の記事一覧

CUserControl::Destroy

CMainWindow、そしてCUserControlにも、Destroyを実装する。 MainWindow.hに、Destroyを追加。 MainWindow.cppで、こう定義する。 UserControl.hにもDestroyを追加し、 UserControl.cppでは、MessageBoxを出すためにオーバーライドしてるけど、これ定義しな…

Panel

Panelは、複数コントロールのグループ化に使う。 Panelの上に、いくつかControlを置いて、Panelごと表示/非表示を切り替えたりできる。Panel クラス (System.Windows.Forms) | Microsoft Docs Formを大きめに拡げるFormを大きめに拡げる。 ツールボックスか…