Оконное приложение для построения 3d-графиков квадратичной функции, страница 4

    return;

} // end function "LFrameWnd::DrawPicture"

                                    // LFrmWnd.cpp   Page 07

    // SET RHOMB VERTEXES:          (09.09.1999)

    //   set the location of the rhomb vertexes

    //   depending on the client area size

    //

void LFrameWnd::SetRhombVertexes( void )

{

    CRect               ClientRect; // CLIENT RECTangle:

                                    //   client area rectangle's

                                    //   dimensions

    int                 MinX;       // MINimal X:

                                    //   minimal x-coordinate

                                    //   in the client area

    int                 MidX;       // MIDdle X:

                                    //   middle x-coordinate

                                    //   in the client area

    int                 MaxX;       // MAXimal X:

                                    //   maximal x-coordinate

                                    //   in the client area

    int                 MinY;       // MINimal Y:

                                    //   minimal y-coordinate

                                    //   in the client area

    int                 MidY;       // MIDdle Y:

                                    //   middle y-coordinate

                                    //   in the client area

    int                 MaxY;       // MAXimal Y:

                                    //   maximal y-coordinate

                                    //   in the client area

        // Determine "ClientRect"

        //

    CWnd::GetClientRect( &ClientRect );

        // Determine X&Y parameters of "ClientRect"

        //

    MinX = 0;

    MaxX = ClientRect.Width( ) - 1;

    MidX = MaxX / 2;

    MinY = 0;

    MaxY = ClientRect.Height( ) - 1;

    MidY = MaxY / 2;

        // Set up coordinates of the vertexes

        //

    Vert0 = CPoint( MinX, MidY );