Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 lines
2.6 KiB

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