//定义成员变量 CStatic m_picture; m_picture.Create(L"XXX",WS_VISIBLE|WS_CHILD|SS_BITMAP ,CRect(0,0,100,100),this,1000); HBITMAP hBmp = LoadBitmap(AfxGetInstanceHandle() ,MAKEINTRESOURCE(IDB_BMP_LOGO)); m_picture.SetBitmap(hBmp);
//定义成员变量 CStatic m_picture; m_picture.Create(L"XXX",WS_VISIBLE|WS_CHILD|SS_BITMAP ,CRect(0,0,100,100),this,1000); HBITMAP hBmp = LoadBitmap(AfxGetInstanceHandle() ,MAKEINTRESOURCE(IDB_BMP_LOGO)); m_picture.SetBitmap(hBmp);