{"id":994,"date":"2009-08-10T15:53:23","date_gmt":"2009-08-10T06:53:23","guid":{"rendered":"https:\/\/www.iss.ai\/?p=994"},"modified":"2009-08-10T16:02:07","modified_gmt":"2009-08-10T07:02:07","slug":"%e3%82%bf%e3%82%b9%e3%82%af%e3%83%88%e3%83%ac%e3%82%a4%e3%81%ab%e7%8c%ab%e5%85%a5%e3%82%8c%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.iss.ai\/?p=994","title":{"rendered":"\u30bf\u30b9\u30af\u30c8\u30ec\u30a4\u306b\u732b\u5165\u308c\u308b"},"content":{"rendered":"\t\t\t\t<p><P>\u25cf\u30bf\u30b9\u30af\u30c8\u30ec\u30a4\u306b\u5165\u308c\u308b<\/P><br \/>\n\t\t\t\t<P>\u3053\u306e\u624b\u306e\uff08\u5e38\u99d0\uff1f\uff09\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\uff0c\u30bf\u30b9\u30af\u30d0\u30fc\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u753b\u9762\u4e00\u756a\u4e0b\u306b\u3042\u308b\uff0c\u958b\u3044\u305f\u30a6\u30a3\u30f3\u30c9\u30a6\u3068\u304b\u304c\u4e26\u3076\u3068\u3053\u308d\uff09\u306b\u8868\u793a\u305b\u305a\u306b\uff0c\u30bf\u30b9\u30af\u30c8\u30ec\u30a4\uff08\u30bf\u30b9\u30af\u30d0\u30fc\u53f3\u5074\u306e\u6642\u8a08\u306e\u8fba\u308a\uff09\u306b\u30a2\u30a4\u30b3\u30f3\u3092\u8868\u793a\u3059\u308b\u306e\u304c\u4e00\u822c\u7684\u306a\u3088\u3046\u3067\u3059\uff0e<BR>\u305d\u3053\u3067\uff0c\u732b\u30a6\u30a3\u30f3\u30c9\u30a6\u30af\u30e9\u30b9CCatWnd\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u751f\u6210\u7528\u30e1\u30bd\u30c3\u30c9\u3067\u3042\u308bCCatWnd::CreateWnd()\u306b\u5f15\u6570\u3092\u8ffd\u52a0\u3057\uff0c\u732b\u30a6\u30a3\u30f3\u30c9\u30a6\u751f\u6210\u6642\u306b\u30bf\u30b9\u30af\u30c8\u30ec\u30a4\u306b\u5165\u308c\u308b\u304b\u3069\u3046\u304b\u3092\u9078\u3079\u308b\u3088\u3046\u306b\u3057\u307e\u3059\uff0e<\/P><br \/>\n\t\t\t\t<P>&nbsp; virtual bool CreateWnd( &#8230;, bool bInTaskTray, UINT IconID );<\/P><br \/>\n\t\t\t\t<P>bInTaskTray\u304ctrue\u306e\u3068\u304d\u306f\uff0cIconID\u3067\u30bf\u30b9\u30af\u30c8\u30ec\u30a4\u306b\u8868\u793a\u3059\u308b\u305f\u3081\u306e\u30a2\u30a4\u30b3\u30f3\u3092\u6307\u5b9a\u3057\u307e\u3059\uff0e<BR>\uff08\u30b3\u30ec\uff0cIconID\u306e\u5024\u3060\u3051\u3067\u5224\u65ad\u3059\u308c\u3070\uff0cbInTaskTray\u5f15\u6570\u306f\u3044\u3089\u306a\u3044\u3088\u3046\u306a\u2026\uff09<BR>\uff08\u3068\uff0c\u3053\u3053\u307e\u3067\u30b3\u30fc\u30c9\u66f8\u3044\u305f\u3068\u3053\u308d\u3067\uff0c\u30a6\u30a3\u30f3\u30c9\u30a6\u30af\u30e9\u30b9(RagisterClassEx\u3067\u767b\u9332\u3059\u308b\u65b9\u306e\u300c\u30a6\u30a3\u30f3\u30c9\u30a6\u30af\u30e9\u30b9\u300d\u306d)\u81ea\u4f53\u306e\u30a2\u30a4\u30b3\u30f3\u3092\u6307\u5b9a\u3059\u308b\u624b\u6bb5\u300d\u304c\u7121\u3044\u3053\u3068\u306b\u6c17\u4ed8\u304d\u307e\u3057\u305f\u2026\u2026\u5f8c\u3067\u8003\u3048\u3088\u3046\uff09<\/P><br \/>\n\t\t\t\t<P><br \/>\n\t\t\t\t<HR><\/p>\n\t\t\t\t<p><P><\/P><br \/>\n\t\t\t\t<P>\u25cf\u30bf\u30b9\u30af\u30c8\u30ec\u30a4\u3078\u306e\u30a2\u30a4\u30b3\u30f3\u767b\u9332\u65b9\u6cd5<\/P><br \/>\n\t\t\t\t<P>\u2026\u306b\u3064\u3044\u3066\u306f\uff0c\u5148\u306b<a href=\"https:\/\/www.iss.ai\/?p=949\">\u4ed6\u8005\u304c\u66f8\u3044\u305f\u8a18\u4e8b<\/a>\u304c\u3042\u308b\u3088\u3046\u306a\u306e\u3067\u7c21\u6f54\u306b\u7b87\u6761\u66f8\u304d\uff0e<\/P><br \/>\n\t\t\t\t<UL><br \/>\n\t\t\t\t<LI>\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u62e1\u5f35\u30b9\u30bf\u30a4\u30eb\u306bWS_EX_TOOLWINDOW\u3092\u6307\u5b9a\u3059\u308c\u3070\u30bf\u30b9\u30af\u30d0\u30fc\u306b\u8868\u793a\u3055\u308c\u306a\u304f\u306a\u308b\uff0e<br \/>\n\t\t\t\t<LI>\u30bf\u30b9\u30af\u30c8\u30ec\u30a4\u3078\u306f ::Shell_NotifyIcon(NIM_ADD,&#8230;) \u3067\u767b\u9332\u3059\u308b\uff0e(\u8981#include &#8220;shellapi.h&#8221;)<br \/>\n\t\t\t\t<LI>\u30bf\u30b9\u30af\u30c8\u30ec\u30a4\u3078\u767b\u9332\u3057\u305f\u30a2\u30a4\u30b3\u30f3\u306f\uff0c\u6700\u5f8c\u306b\u3061\u3083\u3093\u3068 Shell_NotifyIcon(NIM_DELETE,&#8230;) \u3067\u767b\u9332\u89e3\u9664\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\uff0e<br \/>\n\t\t\t\t<LI>\u767b\u9332\u6642\u306b Shell_NotifyIcon() \u306b\u4e0e\u3048\u308b\u69cb\u9020\u4f53\u306b\u30a6\u30a3\u30f3\u30c9\u30a6\u30cf\u30f3\u30c9\u30eb\u3068\u30a4\u30d9\u30f3\u30c8\u901a\u77e5\u7528\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u756a\u53f7\u3092\u6307\u5b9a\u3057\u3066\u304a\u3051\u3070\uff0c\u30bf\u30b9\u30af\u30c8\u30ec\u30a4\u4e0a\u3067\u30a2\u30a4\u30b3\u30f3\u306b\u5bfe\u3059\u308b\u30de\u30a6\u30b9\u30a4\u30d9\u30f3\u30c8\u7b49\u304c\u8d77\u3053\u3063\u305f\u3068\u304d\u306b\u901a\u77e5\u3055\u308c\u308b\uff0e<\/LI><\/UL><br \/>\n\t\t\t\t<P>\u3068\u3044\u3063\u305f\u611f\u3058\u3067\u3059\uff0e\u767b\u9332\u306fCCatWnd::CreateWnd()\u5185\u306b\u3066<\/P><\/p>\n\t\t\t\t<pre>\r\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\nif( bInTaskTray ) \/\/\u30bf\u30b9\u30af\u30c8\u30ec\u30a4\u306b\u5165\u308c\u308b\u6307\u5b9a\u304c\u3055\u308c\u3066\u3044\u305f\u3089\r\n {\/\/\u203b\u3053\u306e\u30b3\u30fc\u30c9\u306f\u4e00\u90e8\u7701\u7565\u3057\u3066\u629c\u7c8b\u3057\u3066\u3044\u307e\u3059\uff0e\r\n  NOTIFYICONDATA ncd = { 0 };\/\/Shell_NotifyIcon()\u306b\u4e0e\u3048\u308b\u69cb\u9020\u4f53\r\n  ncd.hWnd = m_hWnd;\/\/\u732b\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u30cf\u30f3\u30c9\u30eb\r\n  ncd.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP;\r\n  ncd.hIcon = ::LoadIcon( GetHInstance(), MAKEINTRESOURCE(IconID) );\/\/\u30a2\u30a4\u30b3\u30f3\u6307\u5b9a\uff0e\u203bGetHInstance()\u306f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30cf\u30f3\u30c9\u30eb\u3092\u53d6\u5f97\u3057\u3066\u304f\u308b\u30e1\u30f3\u30d0\u95a2\u6570\r\n  ncd.uCallbackMessage = CATWNDIMPL_TASKTRAY_EVENT;\/\/\u30e1\u30c3\u30bb\u30fc\u30b8\u756a\u53f7\uff0eWM_APP+1\u3042\u305f\u308a\u306b\u3057\u3066\u3042\u308a\u307e\u3059\uff0e\r\n\r\n  m_bIsInTaskTray = ( ::Shell_NotifyIcon( NIM_ADD, &amp;ncd ) == TRUE );\/\/\u767b\u9332\u304c\u6210\u529f\u3057\u305f\u3053\u3068\u306f\u30e1\u30f3\u30d0\u5909\u6570\u3067\u899a\u3048\u3066\u304a\u304f\uff08\u767b\u9332\u89e3\u9664\u51e6\u7406\u306e\u305f\u3081\u306b\uff09\r\n }\r\n<\/pre>\n\t\t\t\t<p><P>\u306e\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\uff0e<BR>\u3053\u308c\u3067\uff0c\u30bf\u30b9\u30af\u30c8\u30ec\u30a4\u4e0a\u306e\u30a2\u30a4\u30b3\u30f3\u306b\u30a4\u30d9\u30f3\u30c8\u304c\u8d77\u3053\u3063\u305f\u3089\uff0cm_hWnd\u5b9b\u306bCATWNDIMPL_TASKTRAY_EVENT\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u9001\u3089\u308c\u3066\u304f\u308b\u306e\u3067\uff0c\u30a6\u30a3\u30f3\u30c9\u30a6\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3067\u3057\u304b\u308b\u3079\u304d\u51e6\u7406\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff0e<BR>\u732b\u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u306f\u30bf\u30b9\u30af\u30c8\u30ec\u30a4\u4e0a\u306e\u30a2\u30a4\u30b3\u30f3\u304c\u53f3\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u3089\uff0c\u732b\u304c\u53f3\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u3068\u304d\u3068\u540c\u3058\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u30e1\u30cb\u30e5\u30fc\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\uff0e<BR>CATWNDIMPL_TASKTRAY_EVENT\u30e1\u30c3\u30bb\u30fc\u30b8\u6642\u306b\uff0c\u30a4\u30d9\u30f3\u30c8\u306e\u7a2e\u985e\u306flParam\u306b\u5165\u3063\u3066\u3044\u308b\u306e\u3067\uff0c\u732b\u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u306f lParam==WM_RBUTTONUP \u3092\u6761\u4ef6\u306b\u3057\u3066\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u30e1\u30cb\u30e5\u30fc\u3092\u51fa\u3057\u3066\u3044\u307e\u3059\uff0e<BR>\u306a\u304a\uff0c\u3053\u306e\u3068\u304d\u306b\u30e1\u30cb\u30e5\u30fc\u3092\u51fa\u3059\u3079\u304d\u5834\u6240\u306f\uff0c::GetCursorPos()\u3067\u30de\u30a6\u30b9\u30ab\u30fc\u30bd\u30eb\u4f4d\u7f6e\u3092\u53d6\u5f97\u3057\u3066\u4f7f\u3063\u3066\u3044\u307e\u3059\uff0e<BR>\uff08\u52d5\u304d\u56de\u308b\u732b\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u306e\u306f\u305d\u308c\u306a\u308a\u306b\u96e3\u3057\u304b\u3063\u305f\uff0e\u3053\u308c\u3067\u3084\u3063\u3068\u5b89\u5b9a\u3057\u3066\u30e1\u30cb\u30e5\u30fc\u3092\u51fa\u305b\u307e\u3059\uff09<\/P><br \/>\n\t\t\t\t<P><img decoding=\"async\" src=\"https:\/\/www.iss.ai\/wp-content\/uploads\/2009\/08\/TaskTray.bmp\" alt=\"TaskTray\" class=\"alignnone size-full wp-image-995\" \/>\u30a2\u30a4\u30b3\u30f3\u8868\u793a\u3067\u304d\u305f<\/P><br \/>\n\t\t\t\t<P>\u30a2\u30a4\u30b3\u30f3\u51fa\u305f\u3051\u3069\u2026\u306a\u3093\u3068\u3044\u3046\u3053\u3068\u3067\u3057\u3087\u3046\u2026\u2026\u307c\u3051\u3066\u3044\u308b\u2026\u2026<BR>32*32\u306816*16\u306e\u30b5\u30a4\u30ba\u3092\u6301\u3064\u30a2\u30a4\u30b3\u30f3\u3092\u6307\u5b9a\u3057\u305f\u3089\u5927\u304d\u3044\u65b9\u304c\u4f7f\u308f\u308c\u3066\u3057\u307e\u3044\u307c\u3051\u5177\u5408\u304c\u6fc0\u3057\u304f\u306a\u308b\u3088\u3046\u306a\u306e\u3067\uff0c16*16\u30b5\u30a4\u30ba\u3060\u3051\u306e\u30a2\u30a4\u30b3\u30f3\u3092\u7528\u610f\u3057\u3066\u4e0e\u3048\u3066\u3044\u307e\u3059\u304c\uff0c\u3084\u306f\u308a\u307c\u3051\u3066\u3044\u308b\uff0e<BR>\uff08\u898b\u305f\u3068\u3053\u308d\uff0c\u30bf\u30b9\u30af\u30c8\u30ec\u30a4\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u5927\u304d\u3055\u306f16*16\u30d4\u30af\u30bb\u30eb\u306a\u306f\u305a\u306a\u306e\u3060\u304c\u2026\u2026\u306a\u3093\u3067\uff1f\uff1f\uff09<\/P><br \/>\n\t\t\t\t<P>\u30bf\u30b9\u30af\u30c8\u30ec\u30a4\u304b\u3089\u306e\u767b\u9332\u89e3\u9664\u306f\uff0cNOTIFYICONDATA\u69cb\u9020\u4f53\u306enID\u30e1\u30f3\u30d0\u3068hWnd\u30e1\u30f3\u30d0\u3092\uff0c\u767b\u9332\u6642\u3068\u540c\u3058\u5024\u306b\u3057\u3066\uff0c ::Shell_NotifyIcon( NIM_DELETE, &amp;\u69cb\u9020\u4f53\u5909\u6570 ) \u3068\u3059\u308c\u3070\uff2f\uff2b\uff0e<BR>\u732b\u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u306f\u30a6\u30a3\u30f3\u30c9\u30a6\u7834\u68c4\u6642\u306b\u884c\u3063\u3066\u3044\u307e\u3059\uff0e<BR>\uff08\u767b\u9332\u89e3\u9664\u51e6\u7406\u3092\u5fd8\u308c\u308b\u3068\uff0c\u30a2\u30d7\u30ea\u7d42\u4e86\u5f8c\u3082\u6b8b\u3063\u3066\u3057\u307e\u3044\u307e\u3059\uff0e\u6b8b\u9ab8\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u308a\u3059\u308b\u3068\uff2f\uff33\u304c\u6d88\u3057\u3066\u304f\u308c\u308b(?)\u3088\u3046\u306b\u898b\u3048\u307e\u3059\u304c\uff09<\/P><br \/>\n\t\t\t\t<P><a href=\"https:\/\/www.iss.ai\/?p=1000\">\u7b2c\u4e00\u6bb5\u5b8c\u6210<\/a><\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u25cf\u30bf\u30b9\u30af\u30c8\u30ec\u30a4\u306b\u5165\u308c\u308b \u3053\u306e\u624b\u306e\uff08\u5e38\u99d0\uff1f\uff09\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\uff0c\u30bf\u30b9\u30af\u30d0\u30fc\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u753b\u9762\u4e00\u756a\u4e0b\u306b\u3042\u308b\uff0c\u958b\u3044\u305f\u30a6\u30a3\u30f3\u30c9\u30a6\u3068\u304b\u304c\u4e26\u3076\u3068\u3053\u308d\uff09\u306b\u8868\u793a\u305b\u305a\u306b\uff0c\u30bf\u30b9\u30af\u30c8\u30ec\u30a4\uff08\u30bf\u30b9\u30af\u30d0\u30fc\u53f3\u5074\u306e\u6642\u8a08\u306e\u8fba\u308a\uff09\u306b\u30a2\u30a4\u30b3\u30f3\u3092\u8868\u793a\u3059\u308b\u306e\u304c [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,3],"tags":[15],"class_list":["post-994","post","type-post","status-publish","format-standard","hentry","category-soft","category-tech","tag-win32"],"_links":{"self":[{"href":"https:\/\/www.iss.ai\/index.php?rest_route=\/wp\/v2\/posts\/994","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.iss.ai\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iss.ai\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iss.ai\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iss.ai\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=994"}],"version-history":[{"count":8,"href":"https:\/\/www.iss.ai\/index.php?rest_route=\/wp\/v2\/posts\/994\/revisions"}],"predecessor-version":[{"id":1013,"href":"https:\/\/www.iss.ai\/index.php?rest_route=\/wp\/v2\/posts\/994\/revisions\/1013"}],"wp:attachment":[{"href":"https:\/\/www.iss.ai\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iss.ai\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=994"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iss.ai\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}