home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / ctl3d.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  3KB  |  96 lines

  1. /*-----------------------------------------------------------------------
  2. |    CTL3D.DLL
  3. |    
  4. |    Adds 3d effects to Windows controls
  5. |
  6. |    See ctl3d.doc for info
  7. |        
  8. -----------------------------------------------------------------------*/
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12.  
  13.  
  14. BOOL WINAPI Ctl3dSubclassDlg(HWND, WORD);
  15. BOOL WINAPI Ctl3dSubclassDlgEx(HWND, DWORD);
  16.  
  17. WORD WINAPI Ctl3dGetVer(void);
  18. BOOL WINAPI Ctl3dEnabled(void);
  19.  
  20. HBRUSH WINAPI Ctl3dCtlColor(HDC, LONG);    // ARCHAIC, use Ctl3dCtlColorEx
  21. HBRUSH WINAPI Ctl3dCtlColorEx(UINT wm, WPARAM wParam, LPARAM lParam);
  22.  
  23. BOOL WINAPI Ctl3dColorChange(void);
  24.  
  25. BOOL WINAPI Ctl3dSubclassCtl(HWND);
  26. BOOL WINAPI Ctl3dSubclassCtlEx(HWND, int);
  27. BOOL WINAPI Ctl3dUnsubclassCtl(HWND);
  28.  
  29. LONG WINAPI Ctl3dDlgFramePaint(HWND, UINT, WPARAM, LPARAM);
  30.  
  31. BOOL WINAPI Ctl3dAutoSubclass(HINSTANCE);
  32. BOOL WINAPI Ctl3dAutoSubclassEx(HINSTANCE, DWORD);
  33. BOOL WINAPI Ctl3dIsAutoSubclass(VOID);
  34. BOOL WINAPI Ctl3dUnAutoSubclass(VOID);
  35.  
  36. BOOL WINAPI Ctl3dRegister(HINSTANCE);
  37. BOOL WINAPI Ctl3dUnregister(HINSTANCE);
  38.  
  39. //begin DBCS: far east short cut key support
  40. VOID WINAPI Ctl3dWinIniChange(void);
  41. //end DBCS
  42.  
  43. /* Ctl3dAutoSubclassEx flags */
  44. #define CTL3D_SUBCLASS_DYNCREATE    0x0001
  45. #define CTL3D_NOSUBCLASS_DYNCREATE    0x0002
  46.  
  47. /* Ctl3d Control ID */
  48. #define CTL3D_BUTTON_CTL    0
  49. #define CTL3D_LISTBOX_CTL    1
  50. #define CTL3D_EDIT_CTL        2
  51. #define CTL3D_COMBO_CTL     3
  52. #define CTL3D_STATIC_CTL    4
  53.  
  54. /* Ctl3dSubclassDlg3d flags */
  55. #define CTL3D_BUTTONS        0x0001
  56. #define CTL3D_LISTBOXES        0x0002        
  57. #define CTL3D_EDITS            0x0004    
  58. #define CTL3D_COMBOS        0x0008
  59. #define CTL3D_STATICTEXTS    0x0010        
  60. #define CTL3D_STATICFRAMES    0x0020
  61.  
  62. #define CTL3D_NODLGWINDOW       0x00010000
  63. #define CTL3D_ALL                0xffff
  64.  
  65. #define WM_DLGBORDER (WM_USER+3567)
  66. /* WM_DLGBORDER *(int FAR *)lParam return codes */
  67. #define CTL3D_NOBORDER        0
  68. #define CTL3D_BORDER            1
  69.  
  70. #define WM_DLGSUBCLASS (WM_USER+3568)
  71. /* WM_DLGSUBCLASS *(int FAR *)lParam return codes */
  72. #define CTL3D_NOSUBCLASS    0
  73. #define CTL3D_SUBCLASS        1
  74.  
  75. #define CTLMSGOFFSET 3569
  76. #ifdef WIN32
  77. #define CTL3D_CTLCOLORMSGBOX    (WM_USER+CTLMSGOFFSET)
  78. #define CTL3D_CTLCOLOREDIT        (WM_USER+CTLMSGOFFSET+1)
  79. #define CTL3D_CTLCOLORLISTBOX    (WM_USER+CTLMSGOFFSET+2)
  80. #define CTL3D_CTLCOLORBTN        (WM_USER+CTLMSGOFFSET+3)
  81. #define CTL3D_CTLCOLORSCROLLBAR (WM_USER+CTLMSGOFFSET+4)
  82. #define CTL3D_CTLCOLORSTATIC    (WM_USER+CTLMSGOFFSET+5)
  83. #define CTL3D_CTLCOLORDLG        (WM_USER+CTLMSGOFFSET+6)
  84. #else
  85. #define CTL3D_CTLCOLOR (WM_USER+CTLMSGOFFSET)
  86. #endif
  87.  
  88.  
  89. /* Resource ID for 3dcheck.bmp (for .lib version of ctl3d) */
  90. #define CTL3D_3DCHECK 26567
  91.  
  92.  
  93. #ifdef __cplusplus
  94. }
  95. #endif
  96.