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);