{"id":1342,"date":"2014-09-08T12:03:49","date_gmt":"2014-09-08T04:03:49","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=1342"},"modified":"2014-09-08T12:03:49","modified_gmt":"2014-09-08T04:03:49","slug":"vc-mfc-%e5%a6%82%e4%bd%95%e7%bb%99%e4%b8%80%e4%b8%aa%e6%8e%a7%e4%bb%b6%e6%b7%bb%e5%8a%a0%e5%8f%b3%e9%94%ae%e5%bc%b9%e5%87%ba%e8%8f%9c%e5%8d%95","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/1342","title":{"rendered":"vc++-mfc-\u5982\u4f55\u7ed9\u4e00\u4e2a\u63a7\u4ef6\u6dfb\u52a0\u53f3\u952e\u5f39\u51fa\u83dc\u5355"},"content":{"rendered":"

1.\u6dfb\u52a0\u4e00\u4e2a\u53f3\u952e\u54cd\u5e94\u6d88\u606f<\/p>\n

\r\n\t\/\/\u53f3\u952e\u5c31\u663e\u793a\u4e00\u4e2a\u83dc\u5355\uff1b\u5305\u62ec\uff1a1\u3001item1 2\u3001item2 and so on....\r\n\tCMenu Menu;\r\n\t\/\/\u521b\u5efa\u4e00\u4e2a\u5f39\u51fa\u5f0f\u83dc\u5355\r\n\tMenu.CreatePopupMenu();\r\n\t\/\/\u6dfb\u52a0\u83dc\u5355\u9879\r\n\t\r\n\tMenu.AppendMenu(MF_STRING, ID_POP_MENU_PICS_FIND_0, \"\u25c6 \u5355\u72ec\u9605\u6b64\u5f20\u7b54\u9898\u5361\");\r\n\r\n\t\/\/\u6839\u636e\u5f53\u524d\u5149\u6807\u4f4d\u7f6e\u663e\u793a\u83dc\u5355\r\n\tCPoint Pos;\r\n\tGetCursorPos(&Pos); \r\n\tMenu.TrackPopupMenu(TPM_RIGHTBUTTON, Pos.x, Pos.y, this);\r\n\tMenu.DestroyMenu();\r\n<\/pre>\n

2.\u5728\u8d44\u6e90\u90a3\u91cc\u6dfb\u52a0\u5bf9\u5e94\u7684\u83dc\u5355
\n3.\u6dfb\u52a0meNuc\u54cd\u5e94\u6d88\u606f\u51fd\u6570
\nh\u5934\u6587\u4ef6\uff0c\u51fd\u6570\u5b9a\u4e49\uff1a<\/p>\n

\r\nafx_msg void OnFunction1();\r\n<\/pre>\n

cpp\u6587\u4ef6\uff1a<\/p>\n

\r\nON_COMMAND(ID_POP_MENU_PICS_FIND_0, OnFunction1)\r\n<\/pre>\n

ok,that’s all.<\/p>\n","protected":false},"excerpt":{"rendered":"

1.\u6dfb\u52a0\u4e00\u4e2a\u53f3\u952e\u54cd\u5e94\u6d88\u606f \/\/\u53f3\u952e\u5c31\u663e\u793a\u4e00\u4e2a\u83dc\u5355\uff1b\u5305\u62ec\uff1a1\u3001item1 2\u3001item2 and so on…. CMenu Menu; \/\/\u521b\u5efa\u4e00\u4e2a\u5f39\u51fa\u5f0f\u83dc\u5355 Menu.CreatePopupMenu(); \/\/\u6dfb\u52a0\u83dc\u5355\u9879 Menu.AppendMenu(MF_STRING, ID_POP_MENU_PICS_FIND_0, “\u25c6 \u5355\u72ec\u9605\u6b64\u5f20\u7b54\u9898\u5361”); \/\/\u6839\u636e\u5f53\u524d\u5149\u6807\u4f4d\u7f6e\u663e\u793a\u83dc\u5355 CPoint Pos; GetCursorPos(&Pos); Menu.TrackPopupMenu(TPM_RIGHTBUTTON, Pos.x, Pos.y, this); Menu.DestroyMe<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,219,9],"tags":[173,144,239],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1342"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=1342"}],"version-history":[{"count":1,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1342\/revisions"}],"predecessor-version":[{"id":1343,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1342\/revisions\/1343"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=1342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=1342"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=1342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}