15,980
社区成员
发帖
与我相关
我的任务
分享
void CMyView::OnPaint()
{CPaintDC dc(this);
CStatic *pstatic=(CStatic*)GetDlgItem(IDR_PICTURE);
CRect m_rect2;
pstatic->GetClientRect(&m_rect2);
StretchDIBits(pstatic->GetDC()->GetSafeHdc(),m_rect2.left,m_rect2.top,m_rect2.Width(),
m_rect2.Height(), 0,0,BitmapInfo.biWidth,BitmapInfo.biHeight,BmpData,bitmapinfo,DIB_RGB_COLORS,SRCCOPY);