Win32



Windows OWL - . 48


// 27-3.

// 27-3.r

// 27-2 ( 4) ""

//

27-3.h #define CM_ABOUT 101 #define CM_SIN 102 #define CM_COS 103

Windows 251

#define CM_SINX 104

#define CM_COSX 105 #define CM_200 106 #define CM_100 107 #define CM_50 108

// 27-3.cpp

#include <owl\framewin.h>

#include "27-3.h"

#include <math.h>

/* , Tappllication*/

class MyApp:public TApplication{

public:

void InitMainWindow();// InitMainWindow

};

/* , TframeWindow*/ class MyWindow:public TFrameWindow{

double sine[640],cosine[640],sinX[640],cosX[640] ;// 4

bool sinIs,cosIs,sinXIs,cosXIs;// 4

int k;//

TMenu* menu;//

TPopupMenu

popupMenu;//

virtual void SetupWindow(); // TWindow.: SetupWindow ()

virtual void CleanupWindow() ; // TWindow::CleanupWindow ()

void Paint(TDC&,bool,TRect&);// Paint

void CmAbout(); //

void CmSin(); //

void

CmCos(); //

void CmSinX(); //

void CmCosX(); //

void

Cm200(); //

void Cm100(); //

void Cm50(); //

void EvRButtonDown(UINT,TPoint&); public:

MyWindow(TWindow*parent,const char far* title);//

DECLARE_RESPONSE_TABLE(MyWindow);//

}; DEFINE_RESPONSE_TABLE1(MyWindow,TFrameWindow)//

EV_COMMAND(CM_ABOUT,CmAbout),

EV_COMMAND(CM_SIN,CmSin),

EV_COMMAND(CM_COS,CmCos),

EV_COMMAND(CM_SINX,CmSinX),