you can try this:
CBitmap::GetBitmap(). bmWidth, bmHeight.BITMAP Structure
The BITMAP structure has the following form:typedef struct tagBITMAP { /* bm */
int bmType;
int bmWidth;
int bmHeight;
int bmWidthBytes;
BYTE bmPlanes;
BYTE bmBitsPixel;
LPVOID bmBits;
} BITMAP;
CBitmap::GetBitmap(). bmWidth, bmHeight.BITMAP Structure
The BITMAP structure has the following form:typedef struct tagBITMAP { /* bm */
int bmType;
int bmWidth;
int bmHeight;
int bmWidthBytes;
BYTE bmPlanes;
BYTE bmBitsPixel;
LPVOID bmBits;
} BITMAP;
m_Bitmap.GetBitmap(&Bmp);
int bmpx=Bmp.bmWidth,bmpy=Bmp.bmHeight;
CBitmap Bitpic;
//得到图片大小
Bitpic.LoadBitmap(IDB_BITMAP1);
Bitpic.GetObject(sizeof(bm),&bm);
int cx=bm.bmWidth;
int cy=bm.bmHeight;
也可以