MFC picture控件动态显示图片

CStatic   *   pSat   =   (CStatic*)GetDlgItem(IDC_PICTURE); 
                            HBITMAP   hBitmap   =   ::LoadBitmap(AfxGetApp()-> m_hInstance,   MAKEINTRESOURCE(图片ID)); 
                            pSat-> SetBitmap(hBitmap);

 

posted @ 2013-06-26 22:21  freedom_sure  阅读(303)  评论(0编辑  收藏  举报