📢 Webサイト閉鎖と移転のお知らせ
このWebサイトは2026年9月に閉鎖いたします。
新しい記事は移転先で追加しております。(旧サイトでは記事を追加しておりません)
ページの作成:「== サンプルコード == <source lang="c++"> // CApp.cpp #include "CApp.h" // CApp_クラス #include "CMainFrame.h" // CMainFrameクラス #include "resource…」 |
|||
| 64行目: | 64行目: | ||
// メニュー項目Item1のUI更新ハンドラ | // メニュー項目Item1のUI更新ハンドラ | ||
void CMainFrame::OnUpdateItem1(CCmdUI* pCmdUI) | void CMainFrame::OnUpdateItem1(CCmdUI* pCmdUI) | ||
{ | { | ||
// メニュー項目Item1のUI更新 | // メニュー項目Item1のUI更新 | ||
if(pCmdUI) | if(pCmdUI) | ||
{ | { // メニュー項目Item1の有効化 | ||
// | pCmdUI->Enable(TRUE); | ||
pCmdUI->Enable(); | } | ||
else | |||
{ // メニュー項目Item1の無効化 | |||
pCmdUI->Enable(FALSE); | |||
} | } | ||
} | } | ||