RollupWnd1.cpp
// gets the width of the window's frame

gets the width of the window's frame
gets the width of the window ' s frame
CSize CRollupWnd::GetFrameSize () const
{
	CSize szFrameSize;
	if (GetWindowLong (GetSafeHwnd (), GWL_STYLE) & WS_THICKFRAME)
	{
		szFrameSize.cx = GetSystemMetrics (SM_CXSIZEFRAME);
		szFrameSize.cy = GetSystemMetrics (SM_CYSIZEFRAME);
	}
	else
	{
		szFrameSize.cx = GetSystemMetrics (SM_CXFIXEDFRAME);
		szFrameSize.cy = GetSystemMetrics (SM_CYFIXEDFRAME);
	}
	return szFrameSize;
}
CSize CRollupWnd :: GetFrameSize ( ) const { CSize szFrameSize ; if ( GetWindowLong ( GetSafeHwnd ( ) , GWL_STYLE ) & WS_THICKFRAME ) { szFrameSize . cx = GetSystemMetrics ( SM_CXSIZEFRAME ) ; szFrameSize . cy = GetSystemMetrics ( SM_CYSIZEFRAME ) ; } else { szFrameSize . cx = GetSystemMetrics ( SM_CXFIXEDFRAME ) ; szFrameSize . cy = GetSystemMetrics ( SM_CYFIXEDFRAME ) ; } return szFrameSize ; }
gets the width of the window's frame
gets the width of the window ' s frame
// resizing frame
 // non resizing frame
