home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / openglso.zip / tkOS2.h < prev    next >
C/C++ Source or Header  |  2000-02-16  |  2KB  |  71 lines

  1. /*
  2.  * tkOS2.h --
  3.  *
  4.  *    Declarations of public types and interfaces that are only
  5.  *    available under OS/2.
  6.  *
  7.  * Copyright (c) 1996 by Sun Microsystems, Inc.
  8.  * Copyright (c) 1999 by Illya Vaes
  9.  *
  10.  * See the file "license.terms" for information on usage and redistribution
  11.  * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  12.  *
  13.  */
  14.  
  15. #ifndef _TKOS2
  16. #define _TKOS2
  17.  
  18. #ifndef _TK
  19. #include <tk.h>
  20. #endif
  21.  
  22. #define INCL_BASE
  23. #define INCL_PM
  24. #include <os2.h>
  25. #undef INCL_PM
  26. #undef INCL_BASE
  27.  
  28. #ifndef OS2
  29. #define OS2
  30. #endif
  31.  
  32. #ifdef BUILD_tk
  33. # undef TCL_STORAGE_CLASS
  34. # define TCL_STORAGE_CLASS EXPENTRY
  35. #endif
  36.  
  37. /*
  38.  * The following messages are use to communicate between a Tk toplevel
  39.  * and its container window.
  40.  */
  41.  
  42. #define TK_CLAIMFOCUS    (WM_USER)
  43. #define TK_GEOMETRYREQ    (WM_USER+1)
  44. #define TK_ATTACHWINDOW    (WM_USER+2)
  45. #define TK_DETACHWINDOW    (WM_USER+3)
  46.  
  47.  
  48. /*
  49.  *--------------------------------------------------------------
  50.  *
  51.  * Exported procedures defined for the OS/2 platform only.
  52.  *
  53.  *--------------------------------------------------------------
  54.  */
  55.  
  56. EXTERN Window        Tk_AttachHWND _ANSI_ARGS_((Tk_Window tkwin,
  57.                 HWND hwnd));
  58. EXTERN HMODULE             Tk_GetHMODULE _ANSI_ARGS_((void));
  59. EXTERN HWND        Tk_GetHWND _ANSI_ARGS_((Window window));
  60. EXTERN Tk_Window    Tk_HWNDToWindow _ANSI_ARGS_((HWND hwnd));
  61. EXTERN void        Tk_PointerEvent _ANSI_ARGS_((HWND hwnd,
  62.                 int x, int y));
  63. EXTERN int        Tk_TranslateOS2Event _ANSI_ARGS_((HWND hwnd,
  64.                 ULONG message, MPARAM param1, MPARAM param2,
  65.                 MRESULT *result));
  66.  
  67. # undef TCL_STORAGE_CLASS
  68. # define TCL_STORAGE_CLASS DLLIMPORT
  69.  
  70. #endif /* _TKOS2 */
  71.