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

    #include "LStyDlg.hpp"          // LStyleDialog

#define M 300

#define N 200

    class LFrameWnd: public CFrameWnd

    {

    DECLARE_DYNCREATE( LFrameWnd )

    friend class LStyleDialog;

            // Vertexes of the rhomb

            // to be drawn inside of the client area

            //

    private:

        CPoint          Vert0;      // VERTex no.0:

                                    //   the left vertex

        CPoint          Vert1;      // VERTex no.1:

                                    //   the upper vertex

        CPoint          Vert2;      // VERTex no.2:

                                    //   the right vertex

        CPoint          Vert3;      // VERTex no.3:

                                    //   the lower vertex

            // Pen parameters

            //

    private:

        int             m_PenWidth; // Member PEN WIDTH:

                                    //   width of the pen

        COLORREF        m_PenRGB;   // Member PEN RGB:

                                    //   RGB-color of the pen

        int             m_PenStyle; // Member PEN STYLE:

            double **Umn;//[M][N];

            COLORREF **CUmn;//Umn[M][N];

                                    //   style of the pen

                                    // LFrmWnd.hpp   Page 02

            // Constructor(s) & destructor

            //

    public:

        LFrameWnd( void );

        virtual ~LFrameWnd( );

            // Message handler(s)

            //

    protected:

        afx_msg void OnPaint( void );

        afx_msg void OnMenuFileExit( void );

        afx_msg void OnMenuPenstyleSolid( void );

        afx_msg void OnMenuPenstyleDash( void );

        afx_msg void OnMenuPenstyleDot( void );

        afx_msg void OnMenuDialogStyle( void );

            // Drawing in the client area

            //

    private:

        void TryPenStyle( int  PenStyle );