{"categories":["MFC"],"title":"CWnd::SetMenu","blog_title":"\u8eca\u8f2a\u306ex\u767a\u660e ~B.G's Blog~","provider_name":"Hatena Blog","blog_url":"https://bg1.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/BG1/","author_name":"BG1","width":"100%","url":"https://bg1.hatenablog.com/entry/2024/05/14/210000","published":"2024-05-14 21:00:00","height":"190","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbg1.hatenablog.com%2Fentry%2F2024%2F05%2F14%2F210000\" title=\"CWnd::SetMenu - \u8eca\u8f2a\u306ex\u767a\u660e ~B.G&#39;s Blog~\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/B/BG1/20240518/20240518133016.png","type":"rich","provider_url":"https://hatena.blog","description":"CWnd::SetMenu\u3067\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u30e1\u30cb\u30e5\u30fc\u3092\u30bb\u30c3\u30c8\u3059\u308b\u3002CWnd \u30af\u30e9\u30b9 | Microsoft LearnCWinApp_.cpp\u3067\u3001\u307e\u305f\u30a6\u30a3\u30f3\u30c9\u30a6\u30af\u30e9\u30b9\u306b\u30e1\u30cb\u30e5\u30fc\u30ea\u30bd\u30fc\u30b9\u3092\u6307\u5b9a\u3002 CFrameWnd_.h\u3067\u3001CMenu\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30dd\u30a4\u30f3\u30bfm_pMenu\u3092\u7528\u610f\u3002 CFrameWnd_.cpp\u3067\u3001CFrameWnd_::OnItem1_1\u3067\u30e1\u30cb\u30e5\u30fc\u306e\u5dee\u3057\u66ff\u3048\u3002 SetMenu(NULL)\u3067\u30e1\u30cb\u30e5\u30fc\u3092\u5916\u3059\u3002 Win32API\u306eDestroyMenu\u3067\u3001\u5916\u3057\u305f\u30e1\u30cb\u30e5\u30fc\u30cf\u30f3\u30c9\u30eb\u3092\u89e3\u653e\u3057\u3001\u65b0\u3057\u3044\u30e1\u30cb\u30e5\u30fc\u3092\u4f5c\u6210\u3057\u3066\u4ed8\u3051\u66ff\u3048\u3066\u308b\u3002 Item1-1\u3092\u62bc\u3059\u3068\u3001Item1-1\u3092\u62bc\u3059\u3068\u3001 Item1\u3054\u3068I\u2026"}