Вопрос

In MFC: If I use CBrush like "CBrush brush; CDC* pDC = GetDC();pDC->Ellipse(start.x,start.y,end.x,end.y);", what color of the ellipse's interior will be?

Это было полезно?

Решение

You're not using the brush or assigning it anything; it's simply a variable declaration. It serves absolutely no purpose, so you'd see whatever color was set for the brush in pDC.

If you've done nothing to change it, the interior of the ellipsis will be whatever the default background color is for the device context in pDC.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top