summaryrefslogtreecommitdiffstats
path: root/win/tkWinEmbed.c
diff options
context:
space:
mode:
authorchengyemao <chengyemao>2005-01-07 15:18:02 (GMT)
committerchengyemao <chengyemao>2005-01-07 15:18:02 (GMT)
commitc763ca72e307a3c21c6221848e4e42f1dbefb3c7 (patch)
tree09f4bf18b0aef2a9c29eff89a45b4b08f67cc301 /win/tkWinEmbed.c
parent60e0fa23ae1d3b202486d2427812fa3e65ecdae2 (diff)
downloadtk-c763ca72e307a3c21c6221848e4e42f1dbefb3c7.zip
tk-c763ca72e307a3c21c6221848e4e42f1dbefb3c7.tar.gz
tk-c763ca72e307a3c21c6221848e4e42f1dbefb3c7.tar.bz2
Implemented TK_STAT message to support {wm state} for embedded window
Diffstat (limited to 'win/tkWinEmbed.c')
-rw-r--r--win/tkWinEmbed.c14
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.