diff options
author | chengyemao <chengyemao> | 2005-01-07 15:18:02 (GMT) |
---|---|---|
committer | chengyemao <chengyemao> | 2005-01-07 15:18:02 (GMT) |
commit | 2c586708eafb11c6f506f3cfdcacbdca2b7c8c58 (patch) | |
tree | 09f4bf18b0aef2a9c29eff89a45b4b08f67cc301 /win/tkWinEmbed.c | |
parent | 06b70873479ceb308afe1c721e04477c8af9d1b0 (diff) | |
download | tk-2c586708eafb11c6f506f3cfdcacbdca2b7c8c58.zip tk-2c586708eafb11c6f506f3cfdcacbdca2b7c8c58.tar.gz tk-2c586708eafb11c6f506f3cfdcacbdca2b7c8c58.tar.bz2 |
Implemented TK_STAT message to support {wm state} for embedded window
Diffstat (limited to 'win/tkWinEmbed.c')
-rw-r--r-- | win/tkWinEmbed.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/win/tkWinEmbed.c b/win/tkWinEmbed.c index 3a0ccfd..470140b 100644 --- a/win/tkWinEmbed.c +++ b/win/tkWinEmbed.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinEmbed.c,v 1.18 2005/01/07 01:39:24 chengyemao Exp $ + * RCS: @(#) $Id: tkWinEmbed.c,v 1.19 2005/01/07 15:18:03 chengyemao Exp $ */ #include "tkWinInt.h" @@ -484,6 +484,18 @@ TkWinEmbeddedEventProc(hwnd, message, wParam, lParam) result = 1; break; + case TK_STATE: + /* + * 0 - normal state + * 1 - withdrawn state + * 2 - zoom state + * 3 - icon state + */ + if(wParam >= 0 && wParam <= 3) { + TkpWmSetState(containerPtr->parentPtr, wParam); + } + result = TkpWmGetState(containerPtr->parentPtr); + break; /* * Return 0 since the current Tk container implementation * is unable to provide following services. |