summaryrefslogtreecommitdiffstats
path: root/win/tkWinEmbed.c
diff options
context:
space:
mode:
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.