RollupWnd1.cpp
// get the size of a caption for the current window

get the size of a caption for the current window
get the size of a caption for the current window
CSize CRollupWnd::GetCaptionSize () const
{
	CSize szCaptionSize;
	if(GetWindowLong (GetSafeHwnd (), GWL_STYLE) & WS_EX_TOOLWINDOW)
	{
		szCaptionSize.cx = GetSystemMetrics (SM_CXSMSIZE);
		szCaptionSize.cy = GetSystemMetrics (SM_CYSMSIZE);
	}
	else
	{
		szCaptionSize.cx = GetSystemMetrics (SM_CXSIZE);
		szCaptionSize.cy = GetSystemMetrics (SM_CYSIZE);
	}
	return szCaptionSize;
}
CSize CRollupWnd :: GetCaptionSize ( ) const { CSize szCaptionSize ; if ( GetWindowLong ( GetSafeHwnd ( ) , GWL_STYLE ) & WS_EX_TOOLWINDOW ) { szCaptionSize . cx = GetSystemMetrics ( SM_CXSMSIZE ) ; szCaptionSize . cy = GetSystemMetrics ( SM_CYSMSIZE ) ; } else { szCaptionSize . cx = GetSystemMetrics ( SM_CXSIZE ) ; szCaptionSize . cy = GetSystemMetrics ( SM_CYSIZE ) ; } return szCaptionSize ; }
get the size of a caption for the current window
get the size of a caption for the current window
// toolwindow
 // appwindow
