diff options
author | chengyemao <chengyemao> | 2005-01-07 15:18:02 (GMT) |
---|---|---|
committer | chengyemao <chengyemao> | 2005-01-07 15:18:02 (GMT) |
commit | c763ca72e307a3c21c6221848e4e42f1dbefb3c7 (patch) | |
tree | 09f4bf18b0aef2a9c29eff89a45b4b08f67cc301 /generic | |
parent | 60e0fa23ae1d3b202486d2427812fa3e65ecdae2 (diff) | |
download | tk-c763ca72e307a3c21c6221848e4e42f1dbefb3c7.zip tk-c763ca72e307a3c21c6221848e4e42f1dbefb3c7.tar.gz tk-c763ca72e307a3c21c6221848e4e42f1dbefb3c7.tar.bz2 |
Implemented TK_STAT message to support {wm state} for embedded window
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkIntPlatDecls.h | 12 | ||||
-rw-r--r-- | generic/tkStubInit.c | 3 |
2 files changed, 13 insertions, 2 deletions
diff --git a/generic/tkIntPlatDecls.h b/generic/tkIntPlatDecls.h index 294a5af..aa27eb1 100644 --- a/generic/tkIntPlatDecls.h +++ b/generic/tkIntPlatDecls.h @@ -9,7 +9,7 @@ * Copyright (c) 1998-1999 by Scriptics Corporation. * All rights reserved. * - * RCS: @(#) $Id: tkIntPlatDecls.h,v 1.20 2004/12/17 14:30:45 chengyemao Exp $ + * RCS: @(#) $Id: tkIntPlatDecls.h,v 1.21 2005/01/07 15:18:02 chengyemao Exp $ */ #ifndef _TKINTPLATDECLS @@ -235,6 +235,11 @@ EXTERN int TkWinGetPlatformTheme _ANSI_ARGS_((void)); /* 36 */ EXTERN void TkWinCleanupContainerList _ANSI_ARGS_((void)); #endif +#ifndef TkpWmGetState_TCL_DECLARED +#define TkpWmGetState_TCL_DECLARED +/* 37 */ +EXTERN int TkpWmGetState _ANSI_ARGS_((TkWindow * winPtr)); +#endif #endif /* __WIN32__ */ #ifdef MAC_OSX_TK #ifndef TkGenerateActivateEvents_TCL_DECLARED @@ -617,6 +622,7 @@ typedef struct TkIntPlatStubs { void (*tkWinSetHINSTANCE) _ANSI_ARGS_((HINSTANCE hInstance)); /* 34 */ int (*tkWinGetPlatformTheme) _ANSI_ARGS_((void)); /* 35 */ void (*tkWinCleanupContainerList) _ANSI_ARGS_((void)); /* 36 */ + int (*tkpWmGetState) _ANSI_ARGS_((TkWindow * winPtr)); /* 36 */ #endif /* __WIN32__ */ #ifdef MAC_OSX_TK void (*tkGenerateActivateEvents) _ANSI_ARGS_((TkWindow * winPtr, int active)); /* 0 */ @@ -851,6 +857,10 @@ extern TkIntPlatStubs *tkIntPlatStubsPtr; #define TkWinCleanupContainerList \ (tkIntPlatStubsPtr->tkWinCleanupContainerList) /* 36 */ #endif +#ifndef TkpWmGetState +#define TkpWmGetState \ + (tkIntPlatStubsPtr->tkpWmGetState) /* 37 */ +#endif #endif /* __WIN32__ */ #ifdef MAC_OSX_TK #ifndef TkGenerateActivateEvents diff --git a/generic/tkStubInit.c b/generic/tkStubInit.c index fe27b33..0b81411 100644 --- a/generic/tkStubInit.c +++ b/generic/tkStubInit.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkStubInit.c,v 1.48 2004/12/28 08:44:48 chengyemao Exp $ + * RCS: @(#) $Id: tkStubInit.c,v 1.49 2005/01/07 15:18:03 chengyemao Exp $ */ #include "tkInt.h" @@ -337,6 +337,7 @@ TkIntPlatStubs tkIntPlatStubs = { TkWinSetHINSTANCE, /* 34 */ TkWinGetPlatformTheme, /* 35 */ TkWinCleanupContainerList, /* 36 */ + TkpWmGetState, /* 37 */ #endif /* __WIN32__ */ #ifdef MAC_OSX_TK TkGenerateActivateEvents, /* 0 */ |