ok. This part of my program is supposed to retrieve the file location from an editbox in the dialog, then load it as a bitmap, then resize it, then display it.

It's not displaying anything.

Code:
 HWND hEditBox = GetDlgItem(hWndDlg,IDC_EDIT1);
    	char image[999];
	  GetWindowText(hEditBox,image,999);
//	 if (image != NULL) {
	   HBITMAP hBitmap = (HBITMAP)LoadAnImage(image);
       HBITMAP hBitmap2 = (HBITMAP)ScaleBitmapInt(hBitmap,220,176);
	   HWND hStatic = GetDlgItem(hWndDlg,ID_STATIC_1);
     	HDC hDC, MemDCExercising;
       PAINTSTRUCT Ps;
       hDC = BeginPaint(hStatic, &Ps);
    	MemDCExercising = CreateCompatibleDC(hDC);
       SelectObject(MemDCExercising, hBitmap2);
    	BitBlt(hDC, 10, 10, 450, 400, MemDCExercising, 0, 0, SRCCOPY);
    	DeleteDC(MemDCExercising);
    	DeleteObject(hBitmap);
		DeleteObject(hBitmap2);
    	EndPaint(hStatic, &Ps);


If someone thinks they need the LoadAnImage() and ScaleBitmapInt() code, let me know, I'll include it too.