home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / begin / dll / select.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-10-05  |  1.6 KB  |  38 lines

  1.  
  2. /******************************************************************************\
  3. *       This is a part of the Microsoft Source Code Samples. 
  4. *       Copyright (C) 1993-1997 Microsoft Corporation.
  5. *       All rights reserved. 
  6. *       This source code is only intended as a supplement to 
  7. *       Microsoft Development Tools and/or WinHelp documentation.
  8. *       See these sources for detailed information regarding the 
  9. *       Microsoft samples programs.
  10. \******************************************************************************/
  11.  
  12. /* These defines determine the meaning of the fFlags variable.  The low byte
  13.  * is used for the various types of "boxes" to draw.  The high byte is
  14.  * available for special commands.
  15.  */
  16.  
  17. #define SL_BOX    1             /* Draw a solid border around the rectangle  */
  18. #define SL_BLOCK  2             /* Draw a solid rectangle                    */
  19.  
  20. #define SL_EXTEND 256           /* Extend the current pattern                */
  21.  
  22. #define SL_TYPE    0x00FF       /* Mask out everything but the type flags    */
  23. #define SL_SPECIAL 0xFF00       /* Mask out everything but the special flags */
  24.  
  25. // Temporary porting macros
  26.  
  27. #define INT2DWORD               DWORD
  28. typedef POINTS MPOINT;
  29. #define MAKEMPOINT(l)           (*((MPOINT *)&(l)))
  30. #define MPOINT2POINT(mpt, pt)   ((pt).x = (mpt).x, (pt).y = (mpt).y)
  31. #define POINT2MPOINT(pt, mpt)   ((mpt).x = (SHORT)(pt).x, (mpt).y = (SHORT)(pt).y)
  32.  
  33.  
  34. int APIENTRY StartSelection(HWND, MPOINT, LPRECT, int);
  35. int APIENTRY UpdateSelection(HWND, MPOINT, LPRECT, int);
  36. int APIENTRY EndSelection(MPOINT, LPRECT);
  37. int APIENTRY ClearSelection(HWND, LPRECT, int);
  38.