摘要: 1,SDK API中使用HMODULE GetModuleHandle(NULL);2,MFC中使用HINSTANCE AfxGetInstanceHandle();参考:http://www.cnblogs.com/BeyondTechnology/archive/2011/02/20/1959301.html 阅读全文
posted @ 2013-04-22 01:11 ximenchuixie 阅读(513) 评论(0) 推荐(0) 编辑
摘要: LoadFromResource,只能加载BMP格式的图片CImage::LoadFromResource() is a very thin wrapper around the LoadImage API示例:onpaint()中:HINSTANCE hIns = AfxGetInstanceHandle(); m_img.LoadFromResource(hIns,IDR_PIC);m_img.StretchBlt(dc,CRect(0,0,m_img.GetWidth(),m_img.GetHeight()),CRect(0,0,m_img.GetWidth(),m_img.GetHei 阅读全文
posted @ 2013-04-22 01:07 ximenchuixie 阅读(1381) 评论(0) 推荐(0) 编辑