//first step is to get the actual picture object
//it is stored as a CStatic object, or at least an object
//that inherits from CStatic
//nIDResourceItem is the UINT representing the picture
//or, more simply, just the ID of your picture
//this ID can also be in LPCSTR format
CStatic *bitmap=(CStatic*)(AfxGetMainWnd()->GetDlgItem(nIDResourceItem));
//