{"id":1286,"date":"2014-08-12T23:06:19","date_gmt":"2014-08-12T15:06:19","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=1286"},"modified":"2014-08-15T18:55:33","modified_gmt":"2014-08-15T10:55:33","slug":"vc-mfcctreectrl%e4%b8%ad%e9%80%9a%e8%bf%87%e5%8d%95%e5%87%bb%e8%8e%b7%e5%8f%96%e5%bd%93%e5%89%8d%e9%80%89%e9%a1%b9%e6%96%87%e6%9c%ac","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/1286","title":{"rendered":"[vc]-[mfc]CTreeCtrl\u4e2d\u901a\u8fc7\u5355\u51fb\u83b7\u53d6\u5f53\u524d\u9009\u9879\u6587\u672c"},"content":{"rendered":"
NM_CLICK\u4e8b\u4ef6<\/p>\n
\r\nvoid C\uff1fDlg::OnNMClickTreeGroup(NMHDR *pNMHDR, LRESULT *pResult)\r\n{\r\n\t\/\/ TODO: \u5728\u6b64\u6dfb\u52a0\u63a7\u4ef6\u901a\u77e5\u5904\u7406\u7a0b\u5e8f\u4ee3\u7801\r\n\t\/\/\u5f97\u5230\u5355\u51fb\u9009\u4e2d\u7684\u9879\u7684\u6587\u672c\u503c\r\n\tDWORD dwpos = GetMessagePos(); \r\n\tTVHITTESTINFO ht = {0}; \r\n\r\n\tht.pt.x = GET_X_LPARAM(dwpos);\r\n\tht.pt.y = GET_Y_LPARAM(dwpos);\r\n\t::MapWindowPoints(HWND_DESKTOP,pNMHDR->hwndFrom,&ht.pt,1); \/\/\u628a\u5c4f\u5e55\u5750\u6807\u8f6c\u6362\u6210\u63a7\u4ef6\u5750\u6807\r\n\tTreeView_HitTest(pNMHDR->hwndFrom,&ht); \/\/\u786e\u5b9a\u70b9\u51fb\u7684\u662f\u54ea\u4e00\u9879\r\n\tCString strText;\r\n\tstrText = m_CtrlTree.GetItemText(ht.hItem);\r\n\tMessageBox(strText);\r\n\t*pResult = 0;\r\n}\r\n<\/pre>\n\r\n\r\n #ServerAdmin 419844484@qq.com\r\n DocumentRoot \/var\/www\/shoutui\r\n\tServerName www.shoutuiba.net\r\n\tServerAlias shoutuiba.net\r\n CustomLog logs\/shoutuiba.net.log combined\r\n<\/VirtualHost>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":" NM_CLICK\u4e8b\u4ef6 void C\uff1fDlg::OnNMClickTreeGroup(NMHDR *pNMHDR, LRESULT *pResult) { \/\/ TODO: \u5728\u6b64\u6dfb\u52a0\u63a7\u4ef6\u901a\u77e5\u5904\u7406\u7a0b\u5e8f\u4ee3\u7801 \/\/\u5f97\u5230\u5355\u51fb\u9009\u4e2d\u7684\u9879\u7684\u6587\u672c\u503c DWORD dwpos = GetMessagePos(); TVHITTESTINFO ht = {0}; ht.pt.x = GET_X_LPARAM(dwpos); ht.pt.y = GET_Y_LPARAM(dwpos); ::MapWindowPoints(HWND_DESKTOP,pNMHDR->hwndFrom,&ht.pt,1); \/\/\u628a\u5c4f\u5e55\u5750\u6807\u8f6c<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,9],"tags":[],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1286"}],"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=1286"}],"version-history":[{"count":2,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1286\/revisions"}],"predecessor-version":[{"id":1289,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1286\/revisions\/1289"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=1286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=1286"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=1286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}