#inciude "surface.h"
include "object.h"
#include "message.h"
#define IDOK 1 #define IDCANCEL 2 #define IDHELP 3 #deTine IDOPEN 4 #define IDCLOSE 5 #define IDSAVE 6 #define IDQUIT7
// generic notifications

о омпьютерная графика. Полигональные модели

// (send via WM_COMMAND)
#define VN_TEXTCHANGED 0 // view text has changed
#define VN_FOCUS 1 // view received/lost focus style bits
#define WS_ACTIVATEABLE 0x0001 // can be activated #define WS_REPAINTONFOCUS 0x0002 // should be repainted on focus change #define WS_FLOATING 0x0004 // window floats above normal ones
// status bits
#define WS_ENABLED 0x0001 // can receive focus, mouse &
// keyboard messages #define WS_VISIBLE 0x0002 // is visible (shown)
#define WS_COMPLETELYVISIBLE 0x0004 // not overlaid by someone hit codes
#define HT_CLIENT 0
class View; class Menu; class Map;
extern Surface * screenSurface; // surface we draw on extern Rect screenRect; // current screen rect extern View * deskTop; //desktop extern View * focusedView; // focused view
//////////////////////////////7////////////////// int setFocus (View *);
void redrawRect ( Rect& ); View * findView ( const Point& );
/////77///////////////////////////////////////77/////7///////////////
class View : public Object // base class of all windowing system {
protected:
char * text; // text or caption
View * parent; // owner of this view
View * next; // next child of parent
View * prev; // previous chlid of this parent
View* child; //topmost child view of this
int style; // view style
int status; // view status
Rect area; // frameRect of this view
int tag; // tag of view (-1 by default)
int lockCount;
View * delegate; // to whom send notifications View * hook; // view that hooked this one
public:
View (int x, int y, int w, int h, View * owner = NULL ); View ();

⇐ Предыдущая| |Следующая ⇒