{"id":1036,"date":"2013-12-20T22:41:02","date_gmt":"2013-12-20T14:41:02","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=1036"},"modified":"2014-01-19T23:27:26","modified_gmt":"2014-01-19T15:27:26","slug":"vc_mfc_%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e7%ba%bf%e7%a8%8b%e6%9b%b4%e6%96%b0%e6%94%b9%e5%8f%98%e5%af%b9%e8%af%9d%e6%a1%86%e6%95%b0%e6%8d%ae_listctrl","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/1036","title":{"rendered":"VC_MFC_\u5982\u4f55\u5b9e\u73b0\u7ebf\u7a0b\u66f4\u65b0\u6539\u53d8\u5bf9\u8bdd\u6846\u6570\u636e_LISTCTRL"},"content":{"rendered":"

\u4eca\u5929\u5728\u64cd\u4f5c\u7ebf\u7a0b\u7684\u65f6\u5019\uff0c\u9047\u5230\u4e00\u4e2a\u95ee\u9898\uff1a
\n\u90a3\u5c31\u662f\u5982\u4f55\u5728\u7ebf\u7a0b\u91cc\u628a\u6570\u636e\u5199\u5230\u5bf9\u8bdd\u6846\u63a7\u4ef6\u4e2d\u53bb\uff0c\u6bd4\u5982\u4e00\u4e2alistctrl\u63a7\u4ef6\u4e2d\u3002\u767e\u5ea6\u4e86\u4e00\u4e0b\uff0c\u7adf\u7136\u6709\u8bf4\u4e0d\u53ef\u4ee5\u7684\u3002\u3002
\n\u4e0d\u8fc7\u6211\u52a8\u4e86\u4e00\u4e2a\u8111\u7b4b\uff0c\u8fd8\u662f\u53ef\u4ee5\u641e\u5b9a\u7684\uff0c\u6211\u90fd\u5b9e\u73b0 \u4e86\u7684\u3002
\n\u505a\u6cd5\u5982\u4e0b\uff1a
\n1.\u5728\u4f60\u7684cpp\u6587\u4ef6\u4e2d\u5b9a\u4e49\u4f60\u7684\u5bf9\u8bdd\u6846\u6307\u9488\uff0c\u8981\u5b9a\u4e49\u6210\u5168\u5c40\u53d8\u91cf\u54e6\u3002
\nstatic Cnbqq_upload_mysqlDlg * pDlg;<\/code>
\n2.\u5728\u4f60\u7684\u5bf9\u8bdd\u6846\u521d\u59cb\u5316\u51fd\u6570\uff08BOOL Cnbqq_upload_mysqlDlg::OnInitDialog()\uff09\u4e2d\u6dfb\u52a0\uff1a
\npDlg = this;\/\/\u77e5\u9053\u8fd9\u662f\u4ec0\u4e48\u610f\u601d\u5427\uff1f\u5c31\u662f\u628a\u4f60\u7684\u5bf9\u8bdd\u6846\u6307\u9488\u5f04\u6210\u4e00\u4e2a\u9759\u6001\u5168\u5c40\u53d8\u91cf\uff01<\/code>
\n3.\u8fd9\u5c31\u53ef\u4ee5\u5728\u4f60\u7684\u7ebf\u7a0b\u91cc\u8c03\u7528\u5566\uff01<\/p>\n

\r\nUINT Cnbqq_upload_mysqlDlg::MyThreadFunction(LPVOID pParam)\r\n{\r\n      CFtpConnection* FtpConnection = (CFtpConnection*)pParam;\r\n      for (int i=0 ;im_CtrlListCtrlPicsFind.GetItemCount();i++)\/\/\u8fd9\u6837\u5c31\u53ef\u4ee5\u5566\r\n    {\r\n       CString strFile;\r\n\tstrFile = pDlg->m_CtrlListCtrlPicsFind.GetItemText(i,1);\r\n        }\r\n\r\n}<\/pre>\n

\u4ee3\u7801\u6211\u662f\u81ea\u5df1\u6d4b\u8bd5ok\uff0c\u53ef\u7528\u7684\uff0c\u6709\u95ee\u9898\u7684\u53ef\u4ee5\u7ed9\u6211\u7559\u8a00\u8ba8\u8bba\u3002\u8fd9\u4e2a\u65b9\u6cd5\u5176\u5b9e\u662f\u975e\u5e38\u6709\u7528\u5904\u7684\uff01\uff01\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4eca\u5929\u5728\u64cd\u4f5c\u7ebf\u7a0b\u7684\u65f6\u5019\uff0c\u9047\u5230\u4e00\u4e2a\u95ee\u9898\uff1a \u90a3\u5c31\u662f\u5982\u4f55\u5728\u7ebf\u7a0b\u91cc\u628a\u6570\u636e\u5199\u5230\u5bf9\u8bdd\u6846\u63a7\u4ef6\u4e2d\u53bb\uff0c\u6bd4\u5982\u4e00\u4e2alistctrl\u63a7\u4ef6\u4e2d\u3002\u767e\u5ea6\u4e86\u4e00\u4e0b\uff0c\u7adf\u7136\u6709\u8bf4\u4e0d\u53ef\u4ee5\u7684\u3002\u3002 \u4e0d\u8fc7\u6211\u52a8\u4e86\u4e00\u4e2a\u8111\u7b4b\uff0c\u8fd8\u662f\u53ef\u4ee5\u641e\u5b9a\u7684\uff0c\u6211\u90fd\u5b9e\u73b0 \u4e86\u7684\u3002 \u505a\u6cd5\u5982\u4e0b\uff1a 1.\u5728\u4f60\u7684cpp\u6587\u4ef6\u4e2d\u5b9a\u4e49\u4f60\u7684\u5bf9\u8bdd\u6846\u6307\u9488\uff0c\u8981\u5b9a\u4e49\u6210\u5168\u5c40\u53d8\u91cf\u54e6\u3002 static Cnbqq_upload_mysqlDlg * pDlg; 2.\u5728\u4f60\u7684\u5bf9\u8bdd\u6846\u521d\u59cb\u5316\u51fd\u6570\uff08BOOL Cnbqq_upload_mysqlDlg::OnInitDialog()\uff09\u4e2d\u6dfb\u52a0\uff1a pDlg = this;\/\/\u77e5\u9053\u8fd9\u662f\u4ec0\u4e48\u610f\u601d\u5427\uff1f\u5c31\u662f\u628a\u4f60\u7684\u5bf9\u8bdd\u6846\u6307\u9488\u5f04\u6210\u4e00\u4e2a\u9759\u6001\u5168\u5c40\u53d8\u91cf\uff01 3.\u8fd9\u5c31\u53ef\u4ee5\u5728\u4f60\u7684\u7ebf\u7a0b\u91cc\u8c03\u7528\u5566\uff01<\/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":[173,144,174,175,159],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1036"}],"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=1036"}],"version-history":[{"count":4,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1036\/revisions"}],"predecessor-version":[{"id":1072,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1036\/revisions\/1072"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=1036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=1036"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=1036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}