HDC hdc = ::GetDC(m_hWnd); RECT rect = { 10,10,100,100 }; BOOL b = IsRectEmpty(&rect); //返回值:如果矩形为空,则返回值为非零。如果矩形不为空,则返回值为零 CString str; str.Format(_T("b=%d"),b ); ::OutputDebugString(str);
标签:MFC,为空,IsRectEmpty,str,返回值,矩形 From: https://www.cnblogs.com/liming19680104/p/17322514.html