home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bc45 / h_ctl3.pak / CTL3D.H
C/C++ Source or Header  |  1997-07-23  |  2KB  |  92 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(HANDLE);
  32. BOOL WINAPI Ctl3dIsAutoSubclass(VOID);
  33. BOOL WINAPI Ctl3dUnAutoSubclass(VOID);
  34.  
  35. BOOL WINAPI Ctl3dRegister(HANDLE);
  36. BOOL WINAPI Ctl3dUnregister(HANDLE);
  37.  
  38. //begin DBCS: far east short cut key support
  39. VOID WINAPI Ctl3dWinIniChange(void);
  40. //end DBCS
  41.  
  42.  
  43. /* Ctl3d Control ID */
  44. #define CTL3D_BUTTON_CTL    0
  45. #define CTL3D_LISTBOX_CTL    1
  46. #define CTL3D_EDIT_CTL        2
  47. #define CTL3D_COMBO_CTL     3
  48. #define CTL3D_STATIC_CTL    4
  49.  
  50. /* Ctl3dSubclassDlg3d flags */
  51. #define CTL3D_BUTTONS        0x0001
  52. #define CTL3D_LISTBOXES        0x0002        
  53. #define CTL3D_EDITS            0x0004    
  54. #define CTL3D_COMBOS        0x0008
  55. #define CTL3D_STATICTEXTS    0x0010        
  56. #define CTL3D_STATICFRAMES    0x0020
  57.  
  58. #define CTL3D_NODLGWINDOW       0x00010000
  59. #define CTL3D_ALL                0xffff
  60.  
  61. #define WM_DLGBORDER (WM_USER+3567)
  62. /* WM_DLGBORDER *(int FAR *)lParam return codes */
  63. #define CTL3D_NOBORDER        0
  64. #define CTL3D_BORDER            1
  65.  
  66. #define WM_DLGSUBCLASS (WM_USER+3568)
  67. /* WM_DLGSUBCLASS *(int FAR *)lParam return codes */
  68. #define CTL3D_NOSUBCLASS    0
  69. #define CTL3D_SUBCLASS        1
  70.  
  71. #define CTLMSGOFFSET 3569
  72. #ifdef WIN32
  73. #define CTL3D_CTLCOLORMSGBOX    (WM_USER+CTLMSGOFFSET)
  74. #define CTL3D_CTLCOLOREDIT        (WM_USER+CTLMSGOFFSET+1)
  75. #define CTL3D_CTLCOLORLISTBOX    (WM_USER+CTLMSGOFFSET+2)
  76. #define CTL3D_CTLCOLORBTN        (WM_USER+CTLMSGOFFSET+3)
  77. #define CTL3D_CTLCOLORSCROLLBAR (WM_USER+CTLMSGOFFSET+4)
  78. #define CTL3D_CTLCOLORSTATIC    (WM_USER+CTLMSGOFFSET+5)
  79. #define CTL3D_CTLCOLORDLG        (WM_USER+CTLMSGOFFSET+6)
  80. #else
  81. #define CTL3D_CTLCOLOR (WM_USER+CTLMSGOFFSET)
  82. #endif
  83.  
  84.  
  85. /* Resource ID for 3dcheck.bmp (for .lib version of ctl3d) */
  86. #define CTL3D_3DCHECK 26567
  87.  
  88.  
  89. #ifdef __cplusplus
  90. }
  91. #endif
  92.