--- /src/cvs/allegro/include/allegro/gui.h Thu May 2 00:36:38 2002 +++ gui.h Tue May 7 17:11:57 2002 @@ -60,6 +60,8 @@ int res; int mouse_obj; int focus_obj; + int drag_obj; + int drag_b; int joy_on; int click_wait; int mouse_ox, mouse_oy; @@ -76,9 +78,10 @@ #define D_GOTMOUSE 8 /* mouse is on top of object */ #define D_HIDDEN 16 /* object is not visible */ #define D_DISABLED 32 /* object is visible but inactive */ -#define D_DIRTY 64 /* object needs to be redrawn */ -#define D_INTERNAL 128 /* reserved for internal use */ -#define D_USER 256 /* from here on is free for your own use */ +#define D_DRAGGED 64 /* object is being dragged */ +#define D_DIRTY 128 /* object needs to be redrawn */ +#define D_INTERNAL 256 /* reserved for internal use */ +#define D_USER 512 /* from here on is free for your own use */ /* return values for the dialog procedures */ @@ -89,6 +92,7 @@ #define D_WANTFOCUS 8 /* this object wants the input focus */ #define D_USED_CHAR 16 /* object has used the keypress */ #define D_REDRAW_ALL 32 /* request to redraw all active dialogs */ +#define D_WANTDRAG 64 /* request to receive drag messages */ /* messages for the dialog procedures */ @@ -115,7 +119,8 @@ #define MSG_MRELEASE 21 /* mouse middle button released */ #define MSG_RPRESS 22 /* mouse right button pressed */ #define MSG_RRELEASE 23 /* mouse right button released */ -#define MSG_USER 24 /* from here on are free... */ +#define MSG_DRAG 24 /* mouse is dragging */ +#define MSG_USER 25 /* from here on are free... */ /* some dialog procedures */