home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 March
/
VPR9703A.ISO
/
VPR_DATA
/
DOGA
/
SOURCES
/
MEDIT.LZH
/
DRANGE.H
< prev
next >
Wrap
C/C++ Source or Header
|
1996-07-05
|
2KB
|
90 lines
#if !defined(__drange_h) // 番兵。まだインクルードされていない場合にのみ,このファイルを使用
#define __drange_h
/* Project medit
Project Team DoGA
Copyright (c) 1995. All Rights Reserved.
サブシステム: medit.apx Application
ファイル: drange.h
作成者: Taka2
概要
====
TDRange (TDialog) 用のクラス定義
*/
#include <owl\owlpch.h>
#pragma hdrstop
#include <owl\dialog.h>
#include "meditapp.rh" // すべてのリソースの定義
class AnimationData;
class Motion;
class TScrollBar;
class TStatic;
enum DirType;
enum DragMode {DRAG_NONE, DRAG_BEGIN, DRAG_END, DRAG_SPEED_BEGIN, DRAG_SPEED_END};
//{{TDialog = TDRange}}
class TDRange : public TDialog {
int axisx, axisy, rangex, rangey;
int radius;
int begin, end;
int lastbegin, lastend;
double speed[2];
DragMode dragflag;
TStatic *message;
TStatic *framebegin, *frameend;
TStatic *pointbegin, *pointend;
TStatic *framebegintext, *frameendtext;
AnimationData *anim;
Motion *motion;
char *mess;
double GetSpeedBegin(TPoint& p);
double GetSpeedEnd(TPoint& p);
TPoint GetBezierBegin(double s = -1);
TPoint GetBezierEnd(double s = -1);
int GetX(int pos);
void DrawLine(TDC& dc);
void DrawBegin(TDC& dc);
void DrawEnd(TDC& dc);
void DrawMarker(TDC& dc);
void Draw(void);
void Redraw(void);
void MoveBegin(void);
void MoveEnd(void);
public:
TDRange (TWindow* parent, AnimationData *a, Motion *m, char *_mess, TResId resId = DIALOG_RANGE, TModule* module = 0);
virtual ~TDRange ();
//{{TDRangeVIRTUAL_BEGIN}}
public:
virtual void SetupWindow ();
virtual void Paint (TDC& dc, BOOL erase, TRect& rect);
//{{TDRangeVIRTUAL_END}}
//{{TDRangeRSP_TBL_BEGIN}}
protected:
void EvLButtonDown (UINT modKeys, TPoint& point);
void EvLButtonUp (UINT modKeys, TPoint& point);
void CmOK ();
void EvPaint ();
void EvMouseMove (UINT modKeys, TPoint& point);
void HelpClicked ();
//{{TDRangeRSP_TBL_END}}
DECLARE_RESPONSE_TABLE(TDRange);
}; //{{TDRange}}
#endif // __drange_h の番兵