Size::Empty 메서드(gdiplustypes.h)

Size::Empty 메서드는 Size 개체가 비어 있는지 여부를 결정합니다.

구문

BOOL Empty();

반환 값

형식: BOOL

WidthHeight 데이터 멤버가 모두 0과 같으면 이 메서드는 TRUE를 반환합니다. 그렇지 않으면 FALSE를 반환합니다.

설명

WidthHeight 데이터 멤버가 모두 0인 경우 Size 개체는 비어 있는 것으로 정의됩니다.

예제

Rect rect(50, 50, 100, 200);
Size size;

rect.Inflate(-50, -100);
rect.GetSize(&size);

if(size.Empty())
{
   // The width and height are both 0.
}

요구 사항

   
지원되는 최소 클라이언트 Windows XP, Windows 2000 Professional [데스크톱 앱만 해당]
지원되는 최소 서버 Windows 2000 Server[데스크톱 앱만]
대상 플랫폼 Windows
헤더 gdiplustypes.h(Gdiplus.h 포함)
라이브러리 Gdiplus.lib
DLL Gdiplus.dll

참고 항목

Rect

크기

Sizef