summaryrefslogtreecommitdiffstats
path: root/win/tkWin.h
diff options
context:
space:
mode:
authorchengyemao <chengyemao>2005-01-16 00:23:11 (GMT)
committerchengyemao <chengyemao>2005-01-16 00:23:11 (GMT)
commit755a33fa24ee2e9c505c528c743441fb070e6259 (patch)
tree82b67e8dc7b258ae244e01c7f5d66be5142bea87 /win/tkWin.h
parent22b21c0af24682c2efdfcd6ac7c4263b445a9907 (diff)
downloadtk-755a33fa24ee2e9c505c528c743441fb070e6259.zip
tk-755a33fa24ee2e9c505c528c743441fb070e6259.tar.gz
tk-755a33fa24ee2e9c505c528c743441fb070e6259.tar.bz2
Added TK_INFO message for use in an embedded window attachment protocol; modified TkpUseWindow to allow to attach to a legacy container with a warning; modified some return values of messages from an embedded window to differentiate a case of unprocessed
Diffstat (limited to 'win/tkWin.h')
-rw-r--r--win/tkWin.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/win/tkWin.h b/win/tkWin.h
index 6df0144..08d6d64 100644
--- a/win/tkWin.h
+++ b/win/tkWin.h
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWin.h,v 1.12 2005/01/07 15:18:03 chengyemao Exp $
+ * RCS: @(#) $Id: tkWin.h,v 1.13 2005/01/16 00:23:11 chengyemao Exp $
*/
#ifndef _TKWIN
@@ -30,11 +30,10 @@
/*
* The following messages are used to communicate between a Tk toplevel
- * and its container window. A zero should be returned if a Tk container
- * is not able to provide a requested service. A Tk container may not be
- * able to provide service to all of the following requests at the moment.
- * But an embedded Tk window will send out these requests to support
- * external Tk container application.
+ * and its container window. A Tk container may not be able to provide
+ * service to all of the following requests at the moment. But an embedded
+ * Tk window will send out these requests to support external Tk container
+ * application.
*/
#define TK_CLAIMFOCUS (WM_USER) /* an embedded window requests to focus */
@@ -50,6 +49,16 @@
#define TK_OVERRIDEREDIRECT (WM_USER+10) /* an embedded window requests to overrideredirect */
#define TK_SETMENU (WM_USER+11) /* an embedded window requests to setup menu */
#define TK_STATE (WM_USER+12) /* an embedded window sets/gets state */
+#define TK_INFO (WM_USER+13) /* an embedded window requests a container's info */
+
+/*
+ * The following are sub-messages (wParam) for TK_INFO. An embedded window may
+ * send a TK_INFO message with one of the sub-messages to query a container
+ * for verification and availability
+ */
+#define TK_CONTAINER_VERIFY 0x01
+#define TK_CONTAINER_ISAVAILABLE 0x02
+
/*
*--------------------------------------------------------------