15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


MFC graphical & misc

Mario Contestabile -- Mario_Contestabile.UOS__MTL@UOSMTL2.universal.com
Thursday, May 30, 1996

MSVC 4.1 NT3.51 Win95

I was trying to draw a pie chart using CDC::AngleArc() but it is not supported 
in Win95....

Okay, so I modified things to use CDC::AngleArc() on  NT and CDC::Arc() on 
Win95.

Now the only problem is the brush. CDC::Arc() cannot be put between 
CDC::BeginPath()/CDC::EndPath().
on Win95....

How do I get a brush filled arc using CDC::Arc() and CDC::AngleArc() without 
using paths??

mcontest@universal.com





Alix -- AARGUELL@sys1.com
Tuesday, June 04, 1996

[Mini-digest: 2 responses]


If what you want is an arc that is filled in, you need to use   
CDC::Chord(...).

-----From: "John Elsbree" 

Mario -

Why not use CDC::Pie? It fills using the selected brush. You'll need to 
calculate your coordinates differently, but that's a small price to pay...

John




| Вернуться в корень Архива |