home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / m / ms3dctl.zip / DRAW3D.H < prev    next >
C/C++ Source or Header  |  1993-02-04  |  1KB  |  56 lines

  1. /*-----------------------------------------------------------------------
  2. |   Draw3d - Routines to help add 3D effects to Windows
  3. -----------------------------------------------------------------------*/
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7.  
  8. // Index Color Table
  9. // WARNING: change mpicvSysColors if you change the icv order
  10. typedef WORD ICV;
  11. #define ICVBTNHILITE   0
  12. #define ICVBTNFACE     1
  13. #define ICVBTNSHADOW   2
  14. #define ICVBRUSHMAX    3
  15.  
  16. #define ICVBTNTEXT     3
  17. #define ICVWINDOW      4
  18. #define ICVWINDOWTEXT  5
  19. #define ICVGRAYTEXT    6
  20. #define ICVWINDOWFRAME 7
  21. #define ICVMAX         8
  22.  
  23.   
  24. // DrawRec3d flags
  25. #define DR3LEFT  0x0001
  26. #define DR3TOP   0x0002
  27. #define DR3RIGHT 0x0004
  28. #define DR3BOT   0x0008
  29. #define DR3HACKBOTRIGHT 0x1000  // code size is more important than aesthetics
  30. #define DR3ALL    0x000f
  31.  
  32. typedef WORD DR3;     
  33.  
  34. // isomorphic to windows RECT
  35. typedef struct
  36.     {
  37.     int xLeft;
  38.     int yTop;
  39.     int xRight;
  40.     int yBot;
  41.     } RC;
  42.  
  43. BOOL   FAR PASCAL Draw3dEnabled(void);
  44. HBRUSH FAR PASCAL Draw3dCtlColor(UINT wm, WPARAM wParam, LPARAM lParam);
  45. BOOL   FAR PASCAL Draw3dColorChange(void);
  46.  
  47. BOOL   FAR PASCAL Draw3dRegister(void);
  48. BOOL   FAR PASCAL Draw3dUnregister(void); 
  49.  
  50. VOID Draw3dRec(HDC hdc, RC FAR *lprc, ICV icvUpperLeft, ICV icvLowerRight, DR3 rdr3);
  51. VOID Draw3dInsetRect(HDC hdc, RC FAR *prc, DR3 dr3);
  52.  
  53. #ifdef __cplusplus
  54. }
  55. #endif
  56.