void ShowBitmap(HDC hdc,const char *srcpath) { HBITMAP hBitmap = (HBITMAP)::LoadImage(0, srcpath, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE); BITMAP Bitmap ; GetObject (hBitmap, sizeof (BITMAP), &Bitmap) ; int nWidth = Bitmap.bmWidth; int nHeight = Bitmap.…