{"id":96,"date":"1999-11-16T00:00:00","date_gmt":"1999-11-15T15:00:00","guid":{"rendered":"http:\/\/localhost\/blog\/?p=86"},"modified":"2014-08-14T16:08:36","modified_gmt":"2014-08-14T07:08:36","slug":"%e3%83%84%e3%83%bc%e3%83%ab%e3%83%90%e3%83%bc%e3%82%a2%e3%82%a4%e3%82%b3%e3%83%b3","status":"publish","type":"post","link":"https:\/\/denasu.com\/blog\/1999\/11\/diary96","title":{"rendered":"\u30c4\u30fc\u30eb\u30d0\u30fc\u30a2\u30a4\u30b3\u30f3"},"content":{"rendered":"<p>\u30c4\u30fc\u30eb\u30d0\u30fc\u30a2\u30a4\u30b3\u30f3\u3092\u30d5\u30eb\u30ab\u30e9\u30fc\u306b\u3059\u308b\u3002\u3055\u3066\u3069\u3046\u3057\u3088\u3046\u3068\u60a9\u3093\u3067\u30c0\u30a4\u30a2\u30ed\u30b0\u30d0\u30fc\u3067\u30aa\u30fc\u30ca\u30fc\u30c9\u30ed\u30fc\u30dc\u30bf\u30f3\u3067\u3082\u3064\u3051\u308b\u304b\uff0c\u3068\u304b\u8003\u3048\u305f\u304c\uff0c\u3081\u3093\u3069\u304f\u3055\u3059\u304e\u3066\u3042\u304d\u3089\u3081\u308b\u3002\u3044\u308d\u3044\u308d\u8abf\u3079\u3066\u3044\u308b\u3068\u65b0\u3057\u3044\u30b3\u30e2\u30f3\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3067\uff0c\u30c4\u30fc\u30eb\u30d0\u30fc\u306b\u76f4\u63a5\u30a4\u30e1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u30bb\u30c3\u30c8\u3067\u304d\u308b\u3053\u3068\u304c\u5224\u660e\u3002CMainFrame::OnCreate \u306b\uff0c<\/p>\n<pre class=\"brush:cpp\">\r\n\/\/ \u30c4\u30fc\u30eb\u30d0\u30fc\u3092\u4f5c\u6210\r\nif (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP\r\n| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC))\r\n{\r\nTRACE0(\"Failed to create toolbarn\");\r\nreturn -1;      \/\/ \u4f5c\u6210\u306b\u5931\u6557\r\n}\r\n\r\n\/\/ \u30a4\u30e1\u30fc\u30b8\u30ea\u30b9\u30c8\u306e\u4f5c\u6210\r\nCBitmap bitmap;\r\nbitmap.LoadBitmap(IDB_TOOLBAR);\r\n\r\nm_pImageToolBar-&gt;Create(32, 32, ILC_COLOR24 | ILC_MASK, TOOLBAR_MAX, 1);\r\nm_pImageToolBar-&gt;Add(&amp;bitmap, RGB(255, 255, 255));\r\n\r\nm_wndToolBar.SetSizes(CSize(39, 39), CSize(32, 32));\r\nm_wndToolBar.GetToolBarCtrl().SetImageList(m_pImageToolBar);\r\n\r\n\/\/ \u30dc\u30bf\u30f3\u306e\u8ffd\u52a0\r\nUINT command[] =\r\n{\r\nID_FILE_NEW,\r\n...\r\n};\r\n\r\nm_wndToolBar.SetButtons(command, TOOLBAR_MAX);\r\n<\/pre>\n<p>\u3066\u306a\u611f\u3058\u3067 ok\u3002\u900f\u660e\u8272\u3068\u304b\u3082\u3082\u3061\u308d\u3093\u3084\u3063\u3066\u304f\u308c\u308b\u306e\u3067\u7c21\u5358\u3002\u3061\u306a\u307f\u306b\u3053\u306e\u969b\uff0c\u6700\u521d\u30a4\u30e1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u30b9\u30bf\u30c3\u30af\u306b\u4f5c\u3063\u3066\u3066\u53cd\u6620\u3055\u308c\u306a\u304b\u3063\u305f\u3002\u3053\u308c\u306f\u30e1\u30f3\u30d0\u306b\u6301\u3064\u3053\u3068\u3067\u89e3\u6c7a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30c4\u30fc\u30eb\u30d0\u30fc\u30a2\u30a4\u30b3\u30f3\u3092\u30d5\u30eb\u30ab\u30e9\u30fc\u306b\u3059\u308b\u3002\u3055\u3066\u3069\u3046\u3057\u3088\u3046\u3068\u60a9\u3093\u3067\u30c0\u30a4\u30a2\u30ed\u30b0\u30d0\u30fc\u3067\u30aa\u30fc\u30ca\u30fc\u30c9\u30ed\u30fc\u30dc\u30bf\u30f3\u3067\u3082\u3064\u3051\u308b\u304b\uff0c\u3068\u304b\u8003\u3048\u305f\u304c\uff0c\u3081\u3093\u3069\u304f\u3055\u3059\u304e\u3066\u3042\u304d\u3089\u3081\u308b\u3002\u3044\u308d\u3044\u308d\u8abf\u3079\u3066\u3044\u308b\u3068\u65b0\u3057\u3044\u30b3\u30e2\u30f3\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3067\uff0c\u30c4\u30fc\u30eb\u30d0\u30fc\u306b\u76f4\u63a5\u30a4\u30e1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u30bb\u30c3\u30c8\u3067\u304d\u308b\u3053\u3068\u304c\u5224\u660e\u3002CMainFrame::OnCreate \u306b\uff0c \/\/ \u30c4\u30fc\u30eb\u30d0\u30fc\u3092\u4f5c\u6210 if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC)) { TRACE0(&#8220;Failed to create toolbarn&#8221;); return -1; \/\/ \u4f5c\u6210\u306b\u5931\u6557 } \/\/ \u30a4\u30e1\u30fc\u30b8\u30ea\u30b9\u30c8\u306e\u4f5c\u6210 CBitmap bitmap; bitmap.LoadBitmap(IDB_TOOLBAR); m_pImageToolBar-&gt;Create(32, 32, ILC_COLOR24 | ILC_MASK, TOOLBAR_MAX, 1); m_pImageToolBar-&gt;Add(&amp;bitmap, RGB(255, 255, 255)); m_wndToolBar.SetSizes(CSize(39, 39), CSize(32, 32)); m_wndToolBar.GetToolBarCtrl().SetImageList(m_pImageToolBar); \/\/ \u30dc\u30bf\u30f3\u306e\u8ffd\u52a0 UINT command[] [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[22],"class_list":["post-96","post","type-post","status-publish","format-standard","hentry","category-programming","tag-win32"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4ZThs-1y","_links":{"self":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts\/96","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/comments?post=96"}],"version-history":[{"count":2,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts\/96\/revisions"}],"predecessor-version":[{"id":2535,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts\/96\/revisions\/2535"}],"wp:attachment":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/media?parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/categories?post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/tags?post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}