Partager via


CMFCToolBarImages::GetImageSize

Retrieves either the size of the toolbar images that are stored in memory (source size), or the size of the toolbar images that are drawn on the screen (destination size).

SIZE GetImageSize(
   BOOL bDest=FALSE 
) const;

Parameters

  • [in] bDest
    TRUE to retrieve the destination size; FALSE to retrieve the source image size.

Return Value

A SIZE structure, which specifies the size of an image in pixels.

Remarks

The size of the source image is the size of the images that are stored in the CMFCToolBarImages Class object. You can call CMFCToolBarImages::SetImageSize to set the source size. The default value is 16x15 pixels.

By default, the destination image size is 0x0. You specify the destination size when you call CMFCToolBarImages::PrepareDrawImage. The CMFCToolBarImages::EndDrawImage method resets the destination size to the default value.

Requirements

Header: afxtoolbarimages.h

See Also

Reference

CMFCToolBarImages Class

Hierarchy Chart