BCGControlBar Pro for MFC
CRect CBCGPCaptionBar::GetButtonRect ( ) const
inline

Retrieves the bounding rectangle of a caption bar's button.

Returns
CRect object, which contains coordinates of the bounding rectangle of a caption bar's button.

Call this function to retrieve coordinates of the bounding rectangle of a caption bar's button. The bounding rectangle of a button can be changed automatically when the caption bar is resized.