diff options
Diffstat (limited to 'win/tkWinInt.h')
-rw-r--r-- | win/tkWinInt.h | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/win/tkWinInt.h b/win/tkWinInt.h index c2e4715..3f363cd 100644 --- a/win/tkWinInt.h +++ b/win/tkWinInt.h @@ -4,8 +4,8 @@ * This file contains declarations that are shared among the * Windows-specific parts of Tk, but aren't used by the rest of Tk. * - * Copyright (c) 1995-1997 Sun Microsystems, Inc. - * Copyright (c) 1998-2000 Scriptics Corporation. + * Copyright © 1995-1997 Sun Microsystems, Inc. + * Copyright © 1998-2000 Scriptics Corporation. * * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. @@ -142,6 +142,9 @@ MODULE_SCOPE const int tkpWinBltModes[]; #include "tkIntPlatDecls.h" +#ifdef __cplusplus +extern "C" { +#endif /* * Special proc needed as tsd accessor function between * tkWinX.c:GenerateXEvent and tkWinClipboard.c:UpdateClipboard @@ -201,6 +204,10 @@ MODULE_SCOPE long TkpWinToplevelOverrideRedirect(TkWindow *winPtr, MODULE_SCOPE void TkpWinToplevelDetachWindow(TkWindow *winPtr); MODULE_SCOPE int TkpWmGetState(TkWindow *winPtr); +MODULE_SCOPE int TkTranslateWinEvent(HWND hwnd, UINT message, + WPARAM wParam, LPARAM lParam, LRESULT *result); +MODULE_SCOPE void TkWinPointerEvent(HWND hwnd, int x, int y); + /* * The following is implemented in tkWinPointer.c and also used in tkWinWindow.c */ @@ -208,6 +215,18 @@ MODULE_SCOPE int TkpWmGetState(TkWindow *winPtr); MODULE_SCOPE void TkSetCursorPos(int x, int y); /* + * The following is implemented in tkWinSysTray.c + */ + +MODULE_SCOPE int WinIcoInit (Tcl_Interp* interp); + +/* + * The following is implemented in tkWinGDI.c + */ + +MODULE_SCOPE int Winprint_Init(Tcl_Interp* interp); + +/* * The following is implemented in tkWinDraw.c and used in tkUtil.c */ @@ -250,12 +269,8 @@ MODULE_SCOPE Tcl_Obj * TkWin32ErrorObj(HRESULT hrError); #define GWLP_ID GWL_ID #endif /* !GWLP_WNDPROC */ -/* - * MSVC versions before 2015 don't know snprintf, but _snprintf is compatible. - * Note that sprintf is deprecated. - */ -#if defined(_MSC_VER) && _MSC_VER < 1900 -# define snprintf _snprintf +#ifdef __cplusplus +} #endif #endif /* _TKWININT */ |