HBITMAP ButtonBitmap = (HBITMAP )LoadImage(0, "pause.bmp", IMAGE_BITMAP, 32, 32, LR_LOADFROMFILE); SendDlgItemMessage(hwndDlg, IDC_BUTTON2, BM_SETIMAGE, IMAGE_BITMAP, (LPARAM )ButtonBitmap);