home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 May
/
Pcwk5b98.iso
/
Borland
/
Cplus45
/
BC45
/
MTHREAD.PAK
/
LINE.H
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-29
|
1KB
|
40 lines
//----------------------------------------------------------------------------
// ObjectWindows - (C) Copyright 1991, 1993 by Borland International
// Multi-thread MoveToLineTo demo window header
//----------------------------------------------------------------------------
#ifndef __LINE_H
#define __LINE_H
#include "demobase.h"
// MoveToLineTo demo constants
const int MaxPoints = 15; // Number of points to be drawn
const int IconicPoints = 6; // Number of points to draw when iconized
struct TRPoint {
float X, Y;
};
class TMoveToLineToWindow : public TBaseDemoWindow {
public:
TMoveToLineToWindow();
void Paint(TDC& dc, BOOL, TRect&);
protected:
void EvSize(UINT, TSize& Size);
private:
TRPoint Points[MaxPoints];
float Rotation; // in radians
int PointCount;
BOOL Iconized;
void RotatePoints();
void DoRun();
DECLARE_RESPONSE_TABLE(TMoveToLineToWindow);
};
#endif