hBmpx = (HBITMAP)LoadImage(AfxGetInstanceHandle(),
MAKEINTRESOURCE(IDB_TREADY),
IMAGE_BITMAP,0,0,
LR_LOADMAP3DCOLORS);
hold = ((CStatic *)GetDlgItem(IDC_STATIC_PIC14))->SetBitmap(hBmpx);
DeleteObject(hold);
一定要删除hold对象,否则会GDI递增,导致泄漏。