tkWin.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. * tkWin.h --
  3. *
  4. * Declarations of public types and interfaces that are only
  5. * available under Windows.
  6. *
  7. * Copyright (c) 1996-1997 by Sun Microsystems, Inc.
  8. *
  9. * See the file "license.terms" for information on usage and redistribution
  10. * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  11. */
  12. #ifndef _TKWIN
  13. #define _TKWIN
  14. /*
  15. * We must specify the lower version we intend to support. In particular
  16. * the SystemParametersInfo API doesn't like to receive structures that
  17. * are larger than it expects which affects the font assignments.
  18. *
  19. * WINVER = 0x0500 means Windows 2000 and above
  20. */
  21. #ifndef WINVER
  22. #define WINVER 0x0500
  23. #endif
  24. #ifndef _WIN32_WINNT
  25. #define _WIN32_WINNT 0x0500
  26. #endif
  27. #ifndef _TK
  28. #include <tk.h>
  29. #endif
  30. #define WIN32_LEAN_AND_MEAN
  31. #include <windows.h>
  32. #undef WIN32_LEAN_AND_MEAN
  33. /*
  34. * The following messages are used to communicate between a Tk toplevel
  35. * and its container window. A Tk container may not be able to provide
  36. * service to all of the following requests at the moment. But an embedded
  37. * Tk window will send out these requests to support external Tk container
  38. * application.
  39. */
  40. #define TK_CLAIMFOCUS (WM_USER) /* an embedded window requests to focus */
  41. #define TK_GEOMETRYREQ (WM_USER+1) /* an embedded window requests to change size */
  42. #define TK_ATTACHWINDOW (WM_USER+2) /* an embedded window requests to attach */
  43. #define TK_DETACHWINDOW (WM_USER+3) /* an embedded window requests to detach */
  44. #define TK_MOVEWINDOW (WM_USER+4) /* an embedded window requests to move */
  45. #define TK_RAISEWINDOW (WM_USER+5) /* an embedded window requests to raise */
  46. #define TK_ICONIFY (WM_USER+6) /* an embedded window requests to iconify */
  47. #define TK_DEICONIFY (WM_USER+7) /* an embedded window requests to deiconify */
  48. #define TK_WITHDRAW (WM_USER+8) /* an embedded window requests to withdraw */
  49. #define TK_GETFRAMEWID (WM_USER+9) /* an embedded window requests a frame window id */
  50. #define TK_OVERRIDEREDIRECT (WM_USER+10) /* an embedded window requests to overrideredirect */
  51. #define TK_SETMENU (WM_USER+11) /* an embedded window requests to setup menu */
  52. #define TK_STATE (WM_USER+12) /* an embedded window sets/gets state */
  53. #define TK_INFO (WM_USER+13) /* an embedded window requests a container's info */
  54. /*
  55. * The following are sub-messages (wParam) for TK_INFO. An embedded window may
  56. * send a TK_INFO message with one of the sub-messages to query a container
  57. * for verification and availability
  58. */
  59. #define TK_CONTAINER_VERIFY 0x01
  60. #define TK_CONTAINER_ISAVAILABLE 0x02
  61. /*
  62. *--------------------------------------------------------------
  63. *
  64. * Exported procedures defined for the Windows platform only.
  65. *
  66. *--------------------------------------------------------------
  67. */
  68. #include "tkPlatDecls.h"
  69. #endif /* _TKWIN */