PictureControl 加载位图的方法

1        CRect rect;
2     m_glassRight.GetWindowRect(&rect);
3     HBITMAP hBmp = (HBITMAP)::LoadImage(NULL, picPath,      IMAGE_BITMAP, rect.Width(), rect.Height(), LR_LOADFROMFILE);
4     //m_glassLeft.ModifyStyle(NULL, SS_BITMAP);
5     m_glassRight.SetBitmap(hBmp);
6     DeleteObject(hBmp);

 

posted @ 2017-06-15 19:49  Henry2017  阅读(369)  评论(0编辑  收藏  举报