summaryrefslogtreecommitdiffstats
path: root/generic/tkPlatDecls.h
diff options
context:
space:
mode:
authorchengyemao <chengyemao@noemail.net>2004-12-28 08:44:47 (GMT)
committerchengyemao <chengyemao@noemail.net>2004-12-28 08:44:47 (GMT)
commit76232afd665458d10f1e9dce1033e633cb3c6dea (patch)
tree80aa5d35bd8a746ff0eb7063e79f1c1cde8191e8 /generic/tkPlatDecls.h
parentbf94d1ee6ba98fce6b006a43c783e52c6a5ddb2b (diff)
downloadtk-76232afd665458d10f1e9dce1033e633cb3c6dea.zip
tk-76232afd665458d10f1e9dce1033e633cb3c6dea.tar.gz
tk-76232afd665458d10f1e9dce1033e633cb3c6dea.tar.bz2
Added functions to support embedded menu widget
FossilOrigin-Name: 50e2db17a136a02b1827c37180c87ab435cc3188
Diffstat (limited to 'generic/tkPlatDecls.h')
-rw-r--r--generic/tkPlatDecls.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/generic/tkPlatDecls.h b/generic/tkPlatDecls.h
index ec5363a..419b1bc 100644
--- a/generic/tkPlatDecls.h
+++ b/generic/tkPlatDecls.h
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkPlatDecls.h,v 1.9 2004/03/17 18:15:43 das Exp $
+ * RCS: @(#) $Id: tkPlatDecls.h,v 1.10 2004/12/28 08:44:48 chengyemao Exp $
*/
#ifndef _TKPLATDECLS
@@ -65,6 +65,16 @@ EXTERN int Tk_TranslateWinEvent _ANSI_ARGS_((HWND hwnd,
UINT message, WPARAM wParam, LPARAM lParam,
LRESULT * result));
#endif
+#ifndef Tk_GetMenuHWND_TCL_DECLARED
+#define Tk_GetMenuHWND_TCL_DECLARED
+/* 6 */
+EXTERN HWND Tk_GetMenuHWND _ANSI_ARGS_((Tk_Window tkwin));
+#endif
+#ifndef Tk_GetEmbeddedMenuHWND_TCL_DECLARED
+#define Tk_GetEmbeddedMenuHWND_TCL_DECLARED
+/* 7 */
+EXTERN HWND Tk_GetEmbeddedMenuHWND _ANSI_ARGS_((Tk_Window tkwin));
+#endif
#endif /* __WIN32__ */
#ifdef MAC_OSX_TK
#ifndef Tk_MacOSXSetEmbedHandler_TCL_DECLARED
@@ -145,6 +155,8 @@ typedef struct TkPlatStubs {
Tk_Window (*tk_HWNDToWindow) _ANSI_ARGS_((HWND hwnd)); /* 3 */
void (*tk_PointerEvent) _ANSI_ARGS_((HWND hwnd, int x, int y)); /* 4 */
int (*tk_TranslateWinEvent) _ANSI_ARGS_((HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam, LRESULT * result)); /* 5 */
+ HWND (*tk_GetMenuHWND) _ANSI_ARGS_((Tk_Window tkwin)); /* 6 */
+ HWND (*tk_GetEmbeddedMenuHWND) _ANSI_ARGS_((Tk_Window tkwin)); /* 7 */
#endif /* __WIN32__ */
#ifdef MAC_OSX_TK
void (*tk_MacOSXSetEmbedHandler) _ANSI_ARGS_((Tk_MacOSXEmbedRegisterWinProc * registerWinProcPtr, Tk_MacOSXEmbedGetGrafPortProc * getPortProcPtr, Tk_MacOSXEmbedMakeContainerExistProc * containerExistProcPtr, Tk_MacOSXEmbedGetClipProc * getClipProc, Tk_MacOSXEmbedGetOffsetInParentProc * getOffsetProc)); /* 0 */
@@ -200,6 +212,14 @@ extern TkPlatStubs *tkPlatStubsPtr;
#define Tk_TranslateWinEvent \
(tkPlatStubsPtr->tk_TranslateWinEvent) /* 5 */
#endif
+#ifndef Tk_GetMenuHWND
+#define Tk_GetMenuHWND \
+ (tkPlatStubsPtr->tk_GetMenuHWND) /* 6 */
+#endif
+#ifndef Tk_GetEmbeddedMenuHWND
+#define Tk_GetEmbeddedMenuHWND \
+ (tkPlatStubsPtr->tk_GetEmbeddedMenuHWND) /* 7 */
+#endif
#endif /* __WIN32__ */
#ifdef MAC_OSX_TK
#ifndef Tk_MacOSXSetEmbedHandler