{"id":930,"date":"2013-07-14T21:50:17","date_gmt":"2013-07-14T13:50:17","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=930"},"modified":"2014-03-01T23:20:09","modified_gmt":"2014-03-01T15:20:09","slug":"mfc-vc-%e5%9c%a8picture%e6%8e%a7%e4%bb%b6%e4%b8%ad%e6%98%be%e7%a4%ba%e5%9b%be%e7%89%87jpggifpng","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/930","title":{"rendered":"mfc-vc++-\u5728picture\u63a7\u4ef6\u4e2d\u663e\u793a\u56fe\u7247[jpg,gif,png]"},"content":{"rendered":"

mfc-vc++-\u5728picture\u63a7\u4ef6\u4e2d\u663e\u793a\u56fe\u7247[jpg,gif,png]<\/p>\n

\u4e3b\u8981\u4ee3\u7801\uff08\u7528\uff09\uff1a<\/p>\n

void Cmfc_image_showDlg::OnBnClickedButton1() { \u00a0\r\n\/\/ TODO: \u5728\u6b64\u6dfb\u52a0\u63a7\u4ef6\u901a\u77e5\u5904\u7406\u7a0b\u5e8f\u4ee3\u7801 \r\n\u00a0CImage image; \/\/\u4f7f\u7528\u56fe\u7247\u7c7b \u00a0\r\nimage.Load( _T(\"test.png\") ); \/\/\u88c5\u8f7d\u8def\u5f84\u4e0b\u56fe\u7247\u4fe1\u606f\u5230\u56fe\u7247\u7c7b\r\n\r\nRECT rect = { 0 }; \u00a0\r\nrect.bottom = image.GetWidth(); \u00a0\r\nrect.right = image.GetHeight();\r\n\r\nCDC* pDC =GetDlgItem(IDC_STATIC)-&gt;GetDC();\/\/\u83b7\u5f97\u663e\u793a\u63a7\u4ef6\u7684DC \u00a0\r\nimage.Draw( pDC-&gt;m_hDC,rect); \/\/\u56fe\u7247\u7c7b\u7684\u56fe\u7247\u7ed8\u5236Draw\u51fd\u6570 \u00a0\r\nReleaseDC( pDC );\r\n\r\n}<\/pre>\n

\u7f51\u4e0a\u8f6c\u7684\u522b\u4eba\u7684\uff0c\u73b0\u5728\u53d1\u73b0\u4e00\u4e2a\u5c0f\u95ee\u9898\uff0c\u5c31\u662f\u5df2\u663e\u793a\u7684\u56fe\u50cf\u4f1a\u4e22\u5931\u4e0d\u89c1<\/p>\n

 <\/p>\n","protected":false},"excerpt":{"rendered":"

mfc-vc++-\u5728picture\u63a7\u4ef6\u4e2d\u663e\u793a\u56fe\u7247[jpg,gif,png] \u4e3b\u8981\u4ee3\u7801\uff08\u7528\uff09\uff1a void Cmfc_image_showDlg::OnBnClickedButton1() { \u00a0 \/\/ TODO: \u5728\u6b64\u6dfb\u52a0\u63a7\u4ef6\u901a\u77e5\u5904\u7406\u7a0b\u5e8f\u4ee3\u7801 \u00a0CImage image; \/\/\u4f7f\u7528\u56fe\u7247\u7c7b \u00a0 image.Load( _T(“test.png”) ); \/\/\u88c5\u8f7d\u8def\u5f84\u4e0b\u56fe\u7247\u4fe1\u606f\u5230\u56fe\u7247\u7c7b RECT rect = { 0 }; \u00a0 rect.bottom = image.GetWidth(); \u00a0 rect.right = image.GetHeight(); CDC* pDC =GetDlgItem(<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,3],"tags":[],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/930"}],"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=930"}],"version-history":[{"count":4,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/930\/revisions"}],"predecessor-version":[{"id":1089,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/930\/revisions\/1089"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=930"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}