diff options
author | chengyemao <chengyemao@noemail.net> | 2005-01-07 15:18:02 (GMT) |
---|---|---|
committer | chengyemao <chengyemao@noemail.net> | 2005-01-07 15:18:02 (GMT) |
commit | 0d0e33ab2bfb0b3cdd08dda0c203c1da9ffb771a (patch) | |
tree | 09f4bf18b0aef2a9c29eff89a45b4b08f67cc301 /win/tkWinEmbed.c | |
parent | c0daff349ef267589a897be25665f7411bb3359f (diff) | |
download | tk-0d0e33ab2bfb0b3cdd08dda0c203c1da9ffb771a.zip tk-0d0e33ab2bfb0b3cdd08dda0c203c1da9ffb771a.tar.gz tk-0d0e33ab2bfb0b3cdd08dda0c203c1da9ffb771a.tar.bz2 |
Implemented TK_STAT message to support {wm state} for embedded window
FossilOrigin-Name: 415d97e1667e3fffa32d3c5f2c75a7569945846d
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. |