{"id":1545,"date":"2016-09-01T18:22:30","date_gmt":"2016-09-01T10:22:30","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=1545"},"modified":"2016-09-03T11:44:00","modified_gmt":"2016-09-03T03:44:00","slug":"mfc-listctrl%e6%bb%9a%e5%8a%a8%e5%88%b0%e6%8c%87%e5%ae%9a%e8%a1%8c","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/1545","title":{"rendered":"mfc-listctrl\u6eda\u52a8\u5230\u6307\u5b9a\u884c"},"content":{"rendered":"
\n

\/\/\u8981\u5148\u628a\u63a7\u4ef6\u6eda\u52a8\u5230\u8fd9\u4e2a\u9879\u8fd9\u4e00\u6570\u636e\u884c<\/p>\n

int nSel = i;
\nint nItem2 = pMe->m_CtrlResultList->GetTopIndex();
\nCRect rc;
\npMe->m_CtrlResultList->GetItemRect(nItem2, rc, LVIR_BOUNDS);
\nCSize sz(0, (nSel – nItem2)*rc.Height());
\npMe->m_CtrlResultList->Scroll(sz);
\n\/\/\u8981\u5148\u628a\u63a7\u4ef6\u6eda\u52a8\u5230\u8fd9\u4e2a\u9879\u8fd9\u4e00\u6570\u636e\u884c over\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\/\/\u8981\u5148\u628a\u63a7\u4ef6\u6eda\u52a8\u5230\u8fd9\u4e2a\u9879\u8fd9\u4e00\u6570\u636e\u884c int nSel = i; int nItem2 = pMe->m_CtrlResultList->GetTopIndex(); CRect rc; pMe->m_CtrlResultList->GetItemRect(nItem2, rc, LVIR_BOUNDS); CSize sz(0, (nSel – nItem2)*rc.Height()); pMe->m_CtrlResultList->Scroll(sz); \/\/\u8981\u5148\u628a\u63a7\u4ef6\u6eda\u52a8\u5230\u8fd9\u4e2a\u9879\u8fd9\u4e00\u6570\u636e\u884c over<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,219],"tags":[],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1545"}],"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=1545"}],"version-history":[{"count":3,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1545\/revisions"}],"predecessor-version":[{"id":1564,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1545\/revisions\/1564"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=1545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=1545"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=1545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}