|
|
1.1 ! root 1: /* track.h - header file for doTrackObject support */ ! 2: ! 3: ! 4: /* special messages for doTrackobject(). */ ! 5: #define TROB_NEW WM_USER+1 ! 6: #define TROB_DELETE WM_USER+2 ! 7: #define TROB_PAINT WM_USER+3 ! 8: #define TROB_HITTEST WM_USER+5 ! 9: ! 10: ! 11: /* Different "Track modes." */ ! 12: #define TMNONE 0x0000 ! 13: #define TMMOVE 0x0001 ! 14: #define TMSIZEX 0x0002 ! 15: #define TMSIZEY 0x0004 ! 16: #define TMSIZEXY 0x0006 ! 17: #define TMSHEARX 0x0010 ! 18: #define TMSHEARY 0x0020 ! 19: #define TMROTATE 0x0008 ! 20: #define TMALL 0x00ff ! 21: ! 22: ! 23: ! 24: /* structure for the track object. */ ! 25: typedef struct tagTrackObject{ ! 26: RECT rect; ! 27: XFORM xfmChange; /* World coordinate transform */ ! 28: XFORM xfmDown; /* transform when the mouse down happens. */ ! 29: HDC hdc; ! 30: int Mode; /* TMROTATE, TMSIZEXY, TMMOVE, ... */ ! 31: int allowedModes; ! 32: RECT rectClip; ! 33: struct tagTrackObject* Next; ! 34: } TrackObject, *PTrackObject; ! 35: ! 36: ! 37: /* function prototypes. */ ! 38: PTrackObject doTrackObject(PTrackObject, int, HWND, LONG); ! 39: VOID MouseMove(PTrackObject, int, HWND, LONG);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.