HBITMAP hBitmap = (HBITMAP)LoadAnImage(image);
// HBITMAP hBitmap2 = (HBITMAP)ScaleBitmapInt(hBitmap,220,176);
HWND hStatic = GetDlgItem(hWndDlg,ID_STATIC_1);
HDC hdcscreen = GetDC(hStatic);
HDC hdc = CreateCompatibleDC(hdcscreen);
SetStretchBltMode(hdc,COLORONCOLOR);
BITMAP bm;
GetObject(hBitmap,sizeof(bm),&bm);
StretchBlt(hdc,
0, 0,
220, 176,
hdc,
0, 0,
bm.bmWidth, bm.bmHeight,
SRCCOPY);
BitBlt(hdcscreen,
0,0,
bm.bmWidth, bm.bmHeight,
hdc,
0,0,
SRCCOPY);
ReleaseDC(hStatic, hdcscreen);