OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tk/] [win/] [tkWin.h] - Blame information for rev 578

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/*
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
 * RCS: @(#) $Id: tkWin.h,v 1.1.1.1 2002-01-16 10:26:02 markom Exp $
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
#ifdef BUILD_tk
27
# undef TCL_STORAGE_CLASS
28
# define TCL_STORAGE_CLASS DLLEXPORT
29
#endif
30
 
31
/*
32
 * The following messages are use to communicate between a Tk toplevel
33
 * and its container window.
34
 */
35
 
36
#define TK_CLAIMFOCUS   (WM_USER)
37
#define TK_GEOMETRYREQ  (WM_USER+1)
38
#define TK_ATTACHWINDOW (WM_USER+2)
39
#define TK_DETACHWINDOW (WM_USER+3)
40
 
41
 
42
/*
43
 *--------------------------------------------------------------
44
 *
45
 * Exported procedures defined for the Windows platform only.
46
 *
47
 *--------------------------------------------------------------
48
 */
49
 
50
EXTERN Window           Tk_AttachHWND _ANSI_ARGS_((Tk_Window tkwin,
51
                            HWND hwnd));
52
EXTERN HINSTANCE        Tk_GetHINSTANCE _ANSI_ARGS_((void));
53
EXTERN HWND             Tk_GetHWND _ANSI_ARGS_((Window window));
54
EXTERN Tk_Window        Tk_HWNDToWindow _ANSI_ARGS_((HWND hwnd));
55
EXTERN void             Tk_PointerEvent _ANSI_ARGS_((HWND hwnd,
56
                            int x, int y));
57
EXTERN int              Tk_TranslateWinEvent _ANSI_ARGS_((HWND hwnd,
58
                            UINT message, WPARAM wParam, LPARAM lParam,
59
                            LRESULT *result));
60
 
61
# undef TCL_STORAGE_CLASS
62
# define TCL_STORAGE_CLASS DLLIMPORT
63
 
64
#endif /* _TKWIN */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.