共用方式為


CBitmap::GetBitmapDimension

Returns the width and height of the bitmap.

CSize GetBitmapDimension( ) const;

Return Value

The width and height of the bitmap, measured in 0.1-millimeter units. The height is in the cy member of the CSize object, and the width is in the cx member. If the bitmap width and height have not been set by using SetBitmapDimension, the return value is 0.

Remarks

The height and width are assumed to have been set previously by using the SetBitmapDimension member function.

Requirements

Header: afxwin.h

See Also

Reference

CBitmap Class

Hierarchy Chart

CBitmap::SetBitmapDimension