This documentation is archived and is not being maintained.

CMFCVisualManager::GetNcBtnSize

Called by the framework when it has to retrieve the size of the system buttons.

virtual CSize GetNcBtnSize(
   BOOL bSmall 
) const;

[in] bSmall

A Boolean parameter that indicates whether GetNcBtnSize should retrieve the size of a small or large system button. If bSmall is TRUE, GetNcBtnSize returns the size of a small system button. Otherwise, it returns the size of a large system button.

A CSize parameter that indicate the size of the system buttons.

The system buttons are the buttons in the caption of the frame window that map to the commands Close, Minimize, Maximize, and Restore. The size of these buttons depends on the current visual manager. Override this method if you want to customize the size of the system buttons in your application.

Header: afxvisualmanager.h

Show: