{"id":369,"date":"2001-01-13T00:59:59","date_gmt":"2001-01-12T15:59:59","guid":{"rendered":"http:\/\/farine.orz.hm\/~tapo\/blog\/?p=369"},"modified":"2001-01-13T00:59:59","modified_gmt":"2001-01-12T15:59:59","slug":"%e8%a4%87%e6%95%b0%e3%81%ae%e3%83%84%e3%83%bc%e3%83%ab%e3%83%90%e3%83%bc-%e3%83%a1%e3%83%8b%e3%83%a5%e3%83%bc%e3%81%a8%e9%80%a3%e6%90%ba","status":"publish","type":"post","link":"https:\/\/www.tapoblog.0t0.jp\/?p=369","title":{"rendered":"\u8907\u6570\u306e\u30c4\u30fc\u30eb\u30d0\u30fc \u30e1\u30cb\u30e5\u30fc\u3068\u9023\u643a"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" align=\"right\" src=\"\/archives\/images\/toolbar.png\" alt=\"\u30c4\u30fc\u30eb\u30d0\u30fc\u3068\u30e1\u30cb\u30e5\u30fc\" width=\"299\" height=\"171\"><br \/>\n\u30c4\u30fc\u30eb\u30d0\u30fc\u3092\u76ee\u7684\u5225\u306b\u5206\u3051\u3066\u307f\u305f\uff0e\u524d\u56de\u306e\u72b6\u614b\u3092\u5fa9\u5143\u3059\u308b\u3088\u3046\u306b\u3057\u305f\uff0e<br \/>\n\u3055\u3089\u306b\uff0c\u305d\u308c\u3092\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u64cd\u4f5c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\uff0e<\/p>\n<p><a href=\"http:\/\/www2s.biglobe.ne.jp\/~maekawa\/dev\/vc\/tips\/lib\/toolbar_possave.html\">\u8907\u6570\u306e\u30c4\u30fc\u30eb\u30d0\u30fc<\/a> :<br \/>\n\u30dd\u30a4\u30f3\u30c8\u306f\uff0c\u30c4\u30fc\u30eb\u30d0\u30fc\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092 CreateEx() \u3067\u751f\u6210\u3059\u308b\u3068\u3053\u308d\uff0e<br \/>\n\u4e0a\u306e\u30ea\u30f3\u30af\u3067\u306f Create() \u3092\u4f7f\u3063\u3066\u308b\u304c\uff0cVC++ 6.0 \u306e AppWizard \u304c\u751f\u6210\u3059\u308b\u30b3\u30fc\u30c9\u3067\u306f<br \/>\nCreateEx() \u3092\u4f7f\u3063\u3066\u3044\u308b\uff0e\u305f\u3076\u3093\u521d\u671f\u306e\u72b6\u614b\u2193<\/p>\n<pre>    if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP\n| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||\n!m_wndToolBar.LoadToolBar(IDR_MAINFRAME))\n{\nTRACE0(\"Failed to create toolbar\n\");\nreturn -1;      \/\/ \u4f5c\u6210\u306b\u5931\u6557\n}\n(\u30b9\u30c6\u30fc\u30bf\u30b9\u30d0\u30fc\u306f\u7701\u7565)\n\/\/ TODO: \u30c4\u30fc\u30eb \u30d0\u30fc\u3092\u30c9\u30c3\u30ad\u30f3\u30b0\u53ef\u80fd\u306b\u3057\u306a\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\uff13\u884c\u3092\u524a\u9664\n\/\/       \u3057\u3066\u304f\u3060\u3055\u3044\u3002\nm_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);\nEnableDocking(CBRS_ALIGN_ANY);\nDockControlBar(&amp;m_wndToolBar);\n<\/pre>\n<p>\u307e\u305a\u5909\u6570\u540d\u3092\u9069\u5f53\u306b\u5909\u3048\u3066\u305a\u3089\u305a\u3089\u9023\u306d\u3066\u307f\u305f\uff0e<\/p>\n<pre>    if (!m_wndToolBar1.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP\n| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||\n!m_wndToolBar1.LoadToolBar(IDR_MAINFRAME))\n{\nTRACE0(\"Failed to create toolbar\n\");\nreturn -1;      \/\/ \u4f5c\u6210\u306b\u5931\u6557\n}\nif (!m_wndToolBar2.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP\n| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||\n!m_wndToolBar2.LoadToolBar(IDR_TOOLS))\n{\nTRACE0(\"Failed to create toolbar\n\");\nreturn -1;      \/\/ \u4f5c\u6210\u306b\u5931\u6557\n}\nif (!m_wndToolBar3.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP\n| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||\n!m_wndToolBar3.LoadToolBar(IDR_DEBUG))\n{\nTRACE0(\"Failed to create toolbar\n\");\nreturn -1;      \/\/ \u4f5c\u6210\u306b\u5931\u6557\n}\n(\u30b9\u30c6\u30fc\u30bf\u30b9\u30d0\u30fc\u306f\u7701\u7565)\n\/\/ TODO: \u30c4\u30fc\u30eb \u30d0\u30fc\u3092\u30c9\u30c3\u30ad\u30f3\u30b0\u53ef\u80fd\u306b\u3057\u306a\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\uff13\u884c\u3092\u524a\u9664\n\/\/       \u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\/\/ \u53c2\u8003: http:\/\/www2s.biglobe.ne.jp\/~maekawa\/dev\/vc\/tips\/lib\/toolbar_possave.html\nm_wndToolBar1.SetWindowText(\"\u6a19\u6e96\");\nm_wndToolBar1.EnableDocking(CBRS_ALIGN_ANY);\nm_wndToolBar2.SetWindowText(\"\u30c4\u30fc\u30eb\");\nm_wndToolBar2.EnableDocking(CBRS_ALIGN_ANY);\nm_wndToolBar3.SetWindowText(\"\u30c7\u30d0\u30c3\u30b0\");\nm_wndToolBar3.EnableDocking(CBRS_ALIGN_ANY);\nEnableDocking(CBRS_ALIGN_ANY);\nDockControlBar(&amp;m_wndToolBar1);\nDockControlBar(&amp;m_wndToolBar2);\nDockControlBar(&amp;m_wndToolBar3);\n<\/pre>\n<p>\u2191\u3053\u308c\u3067\u30b9\u30c6\u30fc\u30bf\u30b9\u30d0\u30fc\u306f3\u3064\u8868\u793a\u3055\u308c\u305f\u304c\uff0c\u72b6\u614b\u306e\u4fdd\u5b58\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u3044\uff0e<br \/>\n\u6b21\u306f Create() \u3092\u4f7f\u3063\u3066\u307f\u305f\uff0e<\/p>\n<pre>    if (!m_wndToolBar1.Create(this, WS_CHILD | WS_VISIBLE | CBRS_TOP\n| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC, ID_TB_GENERAL) ||\n!m_wndToolBar1.LoadToolBar(ID_TB_GENERAL))\n{\nTRACE0(\"Failed to create toolbar\n\");\nreturn -1;      \/\/ \u4f5c\u6210\u306b\u5931\u6557\n}\nif (!m_wndToolBar2.Create(this, WS_CHILD | WS_VISIBLE | CBRS_TOP\n| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC, ID_TB_TOOLS) ||\n!m_wndToolBar2.LoadToolBar(ID_TB_TOOLS))\n{\n...\n<\/pre>\n<p>\u2191\u3046\u307e\u304f\u3044\u3063\u305f\uff0e\u3057\u304b\u3057\u30dc\u30bf\u30f3\u306e\u30b9\u30bf\u30a4\u30eb\u304c\u65e7\u5f0f\uff0e<br \/>\n\u62e1\u5f35\u30b9\u30bf\u30a4\u30eb TBSTYLE_FLAT \u304c\u4f7f\u3048\u306a\u3044\u304b\u3089\u3060\u308d\u3046\uff0e\u3082\u3046\u3061\u3087\u3063\u3068\u6311\u6226\uff0e<br \/>\n\u8abf\u3079\u3066\u307f\u308b\u3068 Creatve(), CreateEx() \u306e\u5f15\u6570\u306f\u6b21\u306e\u3068\u304a\u308a\uff0e<\/p>\n<pre>CToolBar::Create\nBOOL Create( CWnd* pParentWnd, DWORD dwStyle = WS_CHILD | WS_VISIBLE\n| CBRS_TOP, UINT nID = AFX_IDW_TOOLBAR );\nCToolBar::CreateEx\nBOOL CreateEx(CWnd* pParentWnd, DWORD dwCtrlStyle = TBSTYLE_FLAT,\nDWORD dwStyle = WS_CHILD | WS_VISIBLE | CBRS_ALIGN_TOP,\nCRect rcBorders = CRect(0, 0, 0, 0), UINT nID = AFX_IDW_TOOLBAR);\n<\/pre>\n<p>\u3080\u3080\uff0c\u6700\u5f8c\u306e\u5f15\u6570\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024<br \/>\n<strong>AFX_IDW_TOOLBAR<\/strong>\u304c\u602a\u3057\u3044\uff01<br \/>\n\u3068\u3044\u3046\u308f\u3051\u3067 CreateEx() \u306e\u6700\u5f8c\u306e\u5f15\u6570\u306b\u305d\u308c\u305e\u308c\u306e\u30c4\u30fc\u30eb\u30d0\u30fc\u306eID\u3092\u6e21\u3057\u3066\u307f\u305f\uff0e\u2193<\/p>\n<pre>    if (!m_wndToolBar1.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP\n| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC,\nCRect(0,0,0,0), ID_TB_GENERAL) ||\n!m_wndToolBar1.LoadToolBar(ID_TB_GENERAL))\n{\nTRACE0(\"Failed to create toolbar\n\");\nreturn -1;      \/\/ \u4f5c\u6210\u306b\u5931\u6557\n}\nif (!m_wndToolBar2.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP\n| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC,\nCRect(0,0,0,0), ID_TB_TOOLS) ||\n!m_wndToolBar2.LoadToolBar(ID_TB_TOOLS))\n{\n...\n<\/pre>\n<p>\u5927\u6210\u529f\uff01\u3081\u3067\u305f\u3057\u3081\u3067\u305f\u3057\uff0e\n<\/p>\n<p><a href=\"http:\/\/www2s.biglobe.ne.jp\/~maekawa\/dev\/vc\/tips\/lib\/toolbar_possave.html\">\u72b6\u614b\u4fdd\u5b58<\/a> :<br \/>\n\u3053\u306e\u30ea\u30f3\u30af\u306b\u3042\u308b\u3088\u3046\u306b\uff0cLoadBarState(&#8220;ToolBarState&#8221;); SaveBarState(&#8220;ToolBarState&#8221;); \u3092\u4f7f\u3048\u3070OK\uff0e<br \/>\n\u3068\u3044\u3046\u304b\uff0c\u3053\u308c\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306b\u524d\u306e\u9805\u306e\u3088\u3046\u306a\u82e6\u52b4\u3092\u3057\u305f\u3093\u3060\u304c\u2026\uff0e<br \/>\n\u3042\u3068\u306f\u3053\u306e\u30ea\u30f3\u30af\u3068\u540c\u3058\u3088\u3046\u306b\uff0c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30c4\u30fc\u30eb\u30d0\u30fc\u304c\u6a2a\u306b\u4e26\u3076\u3088\u3046\u306b\u3057\u305f\u3044\u306a\u2026\uff0e\n<\/p>\n<p><a href=\"http:\/\/www.pascalia.co.jp\/~oga\/programming\/AutoToolBar.html\">\u30c4\u30fc\u30eb\u30d0\u30fc\u3092\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u64cd\u4f5c<\/a> :<br \/>\n\u4e0a\u306e\u30ea\u30f3\u30af\u5148\u306e\u8aac\u660e\u306f\u3061\u3087\u3063\u3068\u4e0d\u5341\u5206\uff0e<\/p>\n<pre>BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)\n\/\/ \u8ffd\u52a0\u5206\nON_UPDATE_COMMAND_UI(\u30b3\u30de\u30f3\u30c9ID, CFrameWnd::OnUpdateControlBarMenu)\nON_COMMAND_EX(\u30b3\u30de\u30f3\u30c9ID, CFrameWnd::OnBarCheck)\nEND_MESSAGE_MAP()\n<\/pre>\n<p>\u3053\u3053\u3067<br \/>\n<strong>\u30b3\u30de\u30f3\u30c9ID<\/strong>\u3068\u8a00\u3063\u3066\u308b\u306e\u306f\uff0c\u30e1\u30cb\u30e5\u30fc\u306eID = \u30c4\u30fc\u30eb\u30d0\u30fc\u306eID \u306e\u3088\u3046\u3060\uff0e<br \/>\n\u3060\u304b\u3089\u53f3\u4e0a\u306e\u753b\u50cf\u306e\u5834\u5408\uff0c\u6a19\u6e96 = ID_TB_GENERAL\uff0c\u30c4\u30fc\u30eb = ID_TB_TOOLS\uff0c<br \/>\n\u30c7\u30d0\u30c3\u30b0 = ID_TB_DEBUG \u3068\u3057\u3066\uff0c\u6b21\u306e\u3088\u3046\u306b\u3059\u308b\u3068\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u64cd\u4f5c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\uff0e<\/p>\n<pre>BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)\n...\nON_UPDATE_COMMAND_UI(ID_TB_GENERAL, CFrameWnd::OnUpdateControlBarMenu)\nON_COMMAND_EX(ID_TB_GENERAL, CFrameWnd::OnBarCheck)\nON_UPDATE_COMMAND_UI(ID_TB_TOOLS, CFrameWnd::OnUpdateControlBarMenu)\nON_COMMAND_EX(ID_TB_TOOLS, CFrameWnd::OnBarCheck)\nON_UPDATE_COMMAND_UI(ID_TB_DEBUG, CFrameWnd::OnUpdateControlBarMenu)\nON_COMMAND_EX(ID_TB_DEBUG, CFrameWnd::OnBarCheck)\nEND_MESSAGE_MAP()\n<\/pre><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30c4\u30fc\u30eb\u30d0\u30fc\u3092\u76ee\u7684\u5225\u306b\u5206\u3051\u3066\u307f\u305f\uff0e\u524d\u56de\u306e\u72b6\u614b\u3092\u5fa9\u5143\u3059\u308b\u3088\u3046\u306b\u3057\u305f\uff0e \u3055\u3089\u306b\uff0c\u305d\u308c\u3092\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u64cd\u4f5c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\uff0e \u8907\u6570\u306e\u30c4\u30fc\u30eb\u30d0\u30fc : \u30dd\u30a4\u30f3\u30c8\u306f\uff0c\u30c4\u30fc\u30eb\u30d0\u30fc\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092 CreateEx() \u3067\u751f\u6210\u3059\u308b\u3068\u3053\u308d\uff0e  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[],"class_list":{"0":"post-369","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-3"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.tapoblog.0t0.jp\/index.php?rest_route=\/wp\/v2\/posts\/369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tapoblog.0t0.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tapoblog.0t0.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tapoblog.0t0.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tapoblog.0t0.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=369"}],"version-history":[{"count":0,"href":"https:\/\/www.tapoblog.0t0.jp\/index.php?rest_route=\/wp\/v2\/posts\/369\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tapoblog.0t0.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tapoblog.0t0.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tapoblog.0t0.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}