No, this would work:
SendDlgItemMessage(hDlg, IDC_IMAGE, STM_SETIMAGE, IMAGE_BITMAP, (LPARAM)hBitmap);

You get the hBitmap from a previous call to LoadImage or LoadBitmap or other functions that return a HBITMAP.