home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Tcl-Tk 8.0 / Pre-installed version / tk8.0 / win / tkWin.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-15  |  1.4 KB  |  57 lines  |  [TEXT/CWIE]

  1. /*
  2.  * tkWin.h --
  3.  *
  4.  *    Declarations of public types and interfaces that are only
  5.  *    available under Windows.
  6.  *
  7.  * Copyright (c) 1996 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.  * SCCS: @(#) tkWin.h 1.6 96/08/15 13:19:41
  13.  */
  14.  
  15. #ifndef _TKWIN
  16. #define _TKWIN
  17.  
  18. #ifndef _TK
  19. #include <tk.h>
  20. #endif
  21.  
  22. #define WIN32_LEAN_AND_MEAN
  23. #include <windows.h>
  24. #undef WIN32_LEAN_AND_MEAN
  25.  
  26. /*
  27.  * The following messages are use to communicate between a Tk toplevel
  28.  * and its container window.
  29.  */
  30.  
  31. #define TK_CLAIMFOCUS    (WM_USER)
  32. #define TK_GEOMETRYREQ    (WM_USER+1)
  33. #define TK_ATTACHWINDOW    (WM_USER+2)
  34. #define TK_DETACHWINDOW    (WM_USER+3)
  35.  
  36.  
  37. /*
  38.  *--------------------------------------------------------------
  39.  *
  40.  * Exported procedures defined for the Windows platform only.
  41.  *
  42.  *--------------------------------------------------------------
  43.  */
  44.  
  45. EXTERN Window        Tk_AttachHWND _ANSI_ARGS_((Tk_Window tkwin,
  46.                 HWND hwnd));
  47. EXTERN HINSTANCE     Tk_GetHINSTANCE _ANSI_ARGS_((void));
  48. EXTERN HWND        Tk_GetHWND _ANSI_ARGS_((Window window));
  49. EXTERN Tk_Window    Tk_HWNDToWindow _ANSI_ARGS_((HWND hwnd));
  50. EXTERN void        Tk_PointerEvent _ANSI_ARGS_((HWND hwnd,
  51.                 int x, int y));
  52. EXTERN int        Tk_TranslateWinEvent _ANSI_ARGS_((HWND hwnd,
  53.                 UINT message, WPARAM wParam, LPARAM lParam,
  54.                 LRESULT *result));
  55.  
  56. #endif /* _TKWIN */
  57.