blob: 2b10c46d06a11007bc848dbb7f16c3544a6da437 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
/*
* tkWin.h --
*
* Declarations of public types and interfaces that are only
* available under Windows.
*
* Copyright (c) 1996-1997 by Sun Microsystems, Inc.
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
* SCCS: @(#) tkWin.h 1.10 97/08/29 15:21:40
*/
#ifndef _TKWIN
#define _TKWIN
#ifndef _TK
#include <tk.h>
#endif
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef WIN32_LEAN_AND_MEAN
/*
* 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 Windows platform only.
*
*--------------------------------------------------------------
*/
EXTERN Window Tk_AttachHWND _ANSI_ARGS_((Tk_Window tkwin,
HWND hwnd));
EXTERN int Tk_DdeObjCmd _ANSI_ARGS_((ClientData clientData,
Tcl_Interp *interp, int objc,
Tcl_Obj *CONST objv[]));
EXTERN HINSTANCE Tk_GetHINSTANCE _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_TranslateWinEvent _ANSI_ARGS_((HWND hwnd,
UINT message, WPARAM wParam, LPARAM lParam,
LRESULT *result));
#endif /* _TKWIN */
|