home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 May / PCP163A.iso / Runimage / Cbuilder4 / Include / CTL3D.H < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-26  |  2.7 KB  |  101 lines

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