Click here to Skip to main content
16,005,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: drawing a cercle by code Pin
Mark Salsbery6-Apr-08 11:21
Mark Salsbery6-Apr-08 11:21 
GeneralRe: drawing a cercle by code Pin
CPallini6-Apr-08 21:23
mveCPallini6-Apr-08 21:23 
GeneralRe: drawing a cercle by code Pin
Schehaider_Aymen6-Apr-08 11:23
Schehaider_Aymen6-Apr-08 11:23 
GeneralRe: drawing a cercle by code Pin
Mark Salsbery6-Apr-08 11:27
Mark Salsbery6-Apr-08 11:27 
GeneralRe: drawing a cercle by code Pin
Schehaider_Aymen6-Apr-08 11:29
Schehaider_Aymen6-Apr-08 11:29 
GeneralRe: drawing a cercle by code Pin
Schehaider_Aymen6-Apr-08 11:32
Schehaider_Aymen6-Apr-08 11:32 
GeneralRe: drawing a cercle by code Pin
Mark Salsbery6-Apr-08 11:43
Mark Salsbery6-Apr-08 11:43 
GeneralRe: drawing a cercle by code Pin
Mark Salsbery6-Apr-08 11:20
Mark Salsbery6-Apr-08 11:20 
You don't necessarily have to write the code three times. 
However you write the code, it must call Ellipse() three times.

These are two equivalent examples:
void CMyWnd::OnPaint() 
{
    CPaintDC dc(this); // device context for painting

    dc.Ellipse(10, 10, 50, 50);
    dc.Ellipse(30, 30, 70, 70);
    dc.Ellipse(50, 50, 90, 90);
}

void CMyWnd::OnPaint() 
{
    CPaintDC dc(this); // device context for painting

    CRect CircleRect(10, 10, 50, 50); //"CircleRect" - is that an oxymoron? :)

    for (int i = 0; i < 3; i++)
    {
        dc.Ellipse(&CircleRect);
        CircleRect.OffsetRect(20, 20);
    }
}





Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: drawing a cercle by code Pin
Schehaider_Aymen6-Apr-08 11:36
Schehaider_Aymen6-Apr-08 11:36 
GeneralRe: drawing a cercle by code Pin
Mark Salsbery6-Apr-08 11:40
Mark Salsbery6-Apr-08 11:40 
AnswerRe: drawing a cercle by code Pin
Schehaider_Aymen6-Apr-08 11:43
Schehaider_Aymen6-Apr-08 11:43 
GeneralRe: drawing a cercle by code Pin
Mark Salsbery6-Apr-08 11:47
Mark Salsbery6-Apr-08 11:47 
GeneralRe: drawing a cercle by code Pin
Schehaider_Aymen6-Apr-08 11:53
Schehaider_Aymen6-Apr-08 11:53 
GeneralRe: drawing a cercle by code Pin
Schehaider_Aymen6-Apr-08 11:57
Schehaider_Aymen6-Apr-08 11:57 
GeneralRe: drawing a cercle by code Pin
Mark Salsbery6-Apr-08 12:00
Mark Salsbery6-Apr-08 12:00 
GeneralRe: drawing a cercle by code Pin
Schehaider_Aymen6-Apr-08 12:01
Schehaider_Aymen6-Apr-08 12:01 
GeneralRe: drawing a cercle by code Pin
Hamid_RT8-Apr-08 7:08
Hamid_RT8-Apr-08 7:08 
GeneralHelp with my c programming language Pin
mvayder6-Apr-08 7:47
mvayder6-Apr-08 7:47 
GeneralRe: Help with my c programming language Pin
bob169726-Apr-08 8:27
bob169726-Apr-08 8:27 
GeneralRe: Help with my c programming language Pin
CPallini6-Apr-08 21:42
mveCPallini6-Apr-08 21:42 
Generalwin32 dialogs... Pin
Member 38254936-Apr-08 2:48
Member 38254936-Apr-08 2:48 
GeneralRe: win32 dialogs... Pin
Mark Salsbery6-Apr-08 7:47
Mark Salsbery6-Apr-08 7:47 
QuestionAny way to refresh a CHtmlView without it scrolling back to the top? Pin
Taka Muraoka6-Apr-08 0:43
Taka Muraoka6-Apr-08 0:43 
QuestionWSAENOBUFS error Pin
itai shmida5-Apr-08 23:01
itai shmida5-Apr-08 23:01 
QuestionRe: WSAENOBUFS error [modified] Pin
Eytukan6-Apr-08 0:50
Eytukan6-Apr-08 0:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.