ctl3d.h 2.7 KB

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