home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
togl15.zip
/
a1.zip
/
tkOS2.h
< prev
next >
Wrap
C/C++ Source or Header
|
2000-02-16
|
2KB
|
71 lines
/*
* tkOS2.h --
*
* Declarations of public types and interfaces that are only
* available under OS/2.
*
* Copyright (c) 1996 by Sun Microsystems, Inc.
* Copyright (c) 1999 by Illya Vaes
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
*/
#ifndef _TKOS2
#define _TKOS2
#ifndef _TK
#include <tk.h>
#endif
#define INCL_BASE
#define INCL_PM
#include <os2.h>
#undef INCL_PM
#undef INCL_BASE
#ifndef OS2
#define OS2
#endif
#ifdef BUILD_tk
# undef TCL_STORAGE_CLASS
# define TCL_STORAGE_CLASS EXPENTRY
#endif
/*
* The following messages are use to communicate between a Tk toplevel
* and its container window.
*/
#define TK_CLAIMFOCUS (WM_USER)
#define TK_GEOMETRYREQ (WM_USER+1)
#define TK_ATTACHWINDOW (WM_USER+2)
#define TK_DETACHWINDOW (WM_USER+3)
/*
*--------------------------------------------------------------
*
* Exported procedures defined for the OS/2 platform only.
*
*--------------------------------------------------------------
*/
EXTERN Window Tk_AttachHWND _ANSI_ARGS_((Tk_Window tkwin,
HWND hwnd));
EXTERN HMODULE Tk_GetHMODULE _ANSI_ARGS_((void));
EXTERN HWND Tk_GetHWND _ANSI_ARGS_((Window window));
EXTERN Tk_Window Tk_HWNDToWindow _ANSI_ARGS_((HWND hwnd));
EXTERN void Tk_PointerEvent _ANSI_ARGS_((HWND hwnd,
int x, int y));
EXTERN int Tk_TranslateOS2Event _ANSI_ARGS_((HWND hwnd,
ULONG message, MPARAM param1, MPARAM param2,
MRESULT *result));
# undef TCL_STORAGE_CLASS
# define TCL_STORAGE_CLASS DLLIMPORT
#endif /* _TKOS2 */