Win32


Windows OWL - . 37



27

Windows

-

. 27.1. 27-1.

// 27-1. Windows

// 27-1.

#include <owl\framewin.h>

#include <time.h>

/* , Tapplication*/

class MyApp:public TApplication{

public:

virtual void InitMainWindow();//

InitMainWindow

};

// , TFrameWindow class MyWindow:public TFrameWindow{ private:

char szText[27];// , public:

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

MyWindow

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

void EvGetMinMaxInf(MINMAXINFO far&);//

void EvTimer(UINT);//

WM_MINMAXINFO, HM_TIMER

int EvCreate(CREATESTRUCT far&);// WM_CREATE

void OutTime();//

~MyWindow();// MyWindow

DECLARE_RESPONSE_TABLE(MyWindow);//

}; DEFINE_RESPONSE_TABLE1(MyWindow,TFrameWindow) //

EV_CREATE //

EV_WM_GETMINMAXINFO, //

EV_WM_TIMER, //

END_RESPONSE_TABLE; //

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

TframeWindow(parent,title){

Attr.X=0;Attr.Y=0;//

Attr.W=0;Attr.H=0;//

Attr.ExStyle=WS_EX_TOPMOST;//

} /* MyWindow*/

MyWindow::~MyWindow(){


Windows 245

KillTimer(1); } /* */

int MyWindow::EvCreate(CREATESTRUCT far&){