亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tkwinembed.c

?? linux系統下的音頻通信
?? C
?? 第 1 頁 / 共 2 頁
字號:
/*  * tkWinEmbed.c -- * *	This file contains platform specific procedures for Windows platforms *	to provide basic operations needed for application embedding (where *	one application can use as its main window an internal window from *	another application). * * Copyright (c) 1996 Sun Microsystems, Inc. * * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * * SCCS: @(#) tkWinEmbed.c 1.20 97/11/05 17:47:09; */#include "tkWinInt.h"/* * One of the following structures exists for each container in this * application.  It keeps track of the container window and its * associated embedded window. */typedef struct Container {    HWND parentHWnd;			/* Windows HWND to the parent window */    TkWindow *parentPtr;		/* Tk's information about the container					 * or NULL if the container isn't					 * in this process. */    HWND embeddedHWnd;			/* Windows HWND to the embedded window					 */    TkWindow *embeddedPtr;		/* Tk's information about the embedded					 * window, or NULL if the					 * embedded application isn't in					 * this process. */    struct Container *nextPtr;		/* Next in list of all containers in					 * this process. */} Container;static Container *firstContainerPtr = NULL;					/* First in list of all containers					 * managed by this process.  */static void		CleanupContainerList _ANSI_ARGS_((    			    ClientData clientData));static void		ContainerEventProc _ANSI_ARGS_((ClientData clientData,			    XEvent *eventPtr));static void		EmbeddedEventProc _ANSI_ARGS_((			    ClientData clientData, XEvent *eventPtr));static void		EmbedGeometryRequest _ANSI_ARGS_((    			    Container*containerPtr, int width, int height));static void		EmbedWindowDeleted _ANSI_ARGS_((TkWindow *winPtr));/* *---------------------------------------------------------------------- * * CleanupContainerList -- * *	Finalizes the list of containers. * * Results: *	None. * * Side effects: *	Releases memory occupied by containers of embedded windows. * *---------------------------------------------------------------------- */	/* ARGSUSED */static voidCleanupContainerList(clientData)    ClientData clientData;{    Container *nextPtr;        for (;        firstContainerPtr != (Container *) NULL;        firstContainerPtr = nextPtr) {        nextPtr = firstContainerPtr->nextPtr;        ckfree((char *) firstContainerPtr);    }    firstContainerPtr = (Container *) NULL;}/* *---------------------------------------------------------------------- * * TkpTestembedCmd -- * *	Test command for the embedding facility. * * Results: *	Always returns TCL_OK. * * Side effects: *	Currently it does not do anything. * *---------------------------------------------------------------------- */	/* ARGSUSED */intTkpTestembedCmd(clientData, interp, argc, argv)    ClientData clientData;    Tcl_Interp *interp;    int argc;    char **argv;{    return TCL_OK;}/* *---------------------------------------------------------------------- * * TkpUseWindow -- * *	This procedure causes a Tk window to use a given Windows handle *	for a window as its underlying window, rather than a new Windows *	window being created automatically. It is invoked by an embedded *	application to specify the window in which the application is *	embedded. * * Results: *	The return value is normally TCL_OK. If an error occurred (such as *	if the argument does not identify a legal Windows window handle), *	the return value is TCL_ERROR and an error message is left in the *	interp->result if interp is not NULL. * * Side effects: *	None. * *---------------------------------------------------------------------- */int TkpUseWindow(interp, tkwin, string)    Tcl_Interp *interp;		/* If not NULL, used for error reporting				 * if string is bogus. */    Tk_Window tkwin;		/* Tk window that does not yet have an				 * associated X window. */    char *string;		/* String identifying an X window to use				 * for tkwin;  must be an integer value. */{    TkWindow *winPtr = (TkWindow *) tkwin;    int id;    HWND hwnd;    Container *containerPtr;    if (winPtr->window != None) {        panic("TkpUseWindow: Already assigned a window");    }    if (Tcl_GetInt(interp, string, &id) != TCL_OK) {        return TCL_ERROR;    }    hwnd = (HWND) id;    /*     * Check if the window is a valid handle. If it is invalid, return     * TCL_ERROR and potentially leave an error message in interp->result.     */    if (!IsWindow(hwnd)) {        if (interp != (Tcl_Interp *) NULL) {            Tcl_AppendResult(interp, "window \"", string,                    "\" doesn't exist", (char *) NULL);        }        return TCL_ERROR;    }    /*     * Store the parent window in the platform private data slot so     * TkWmMapWindow can use it when creating the wrapper window.     */    winPtr->privatePtr = (struct TkWindowPrivate*) hwnd;    /*     * Create an event handler to clean up the Container structure when     * tkwin is eventually deleted.     */    Tk_CreateEventHandler(tkwin, StructureNotifyMask, EmbeddedEventProc,	    (ClientData) winPtr);    /*     * If this is the first container, register an exit handler so that     * things will get cleaned up at finalization.     */    if (firstContainerPtr == (Container *) NULL) {        Tcl_CreateExitHandler(CleanupContainerList, (ClientData) NULL);    }        /*     * Save information about the container and the embedded window     * in a Container structure.  If there is already an existing     * Container structure, it means that both container and embedded     * app. are in the same process.     */    for (containerPtr = firstContainerPtr; containerPtr != NULL;	    containerPtr = containerPtr->nextPtr) {	if (containerPtr->parentHWnd == hwnd) {	    winPtr->flags |= TK_BOTH_HALVES;	    containerPtr->parentPtr->flags |= TK_BOTH_HALVES;	    break;	}    }    if (containerPtr == NULL) {	containerPtr = (Container *) ckalloc(sizeof(Container));	containerPtr->parentPtr = NULL;	containerPtr->parentHWnd = hwnd;	containerPtr->nextPtr = firstContainerPtr;	firstContainerPtr = containerPtr;    }    /*     * embeddedHWnd is not created yet. It will be created by TkWmMapWindow(),     * which will send a TK_ATTACHWINDOW to the container window.     * TkWinEmbeddedEventProc will process this message and set the embeddedHWnd     * variable     */    containerPtr->embeddedPtr = winPtr;    containerPtr->embeddedHWnd = NULL;    winPtr->flags |= TK_EMBEDDED;    winPtr->flags &= (~(TK_MAPPED));    return TCL_OK;}/* *---------------------------------------------------------------------- * * TkpMakeContainer -- * *	This procedure is called to indicate that a particular window will *	be a container for an embedded application. This changes certain *	aspects of the window's behavior, such as whether it will receive *	events anymore. * * Results: *	None. * * Side effects: *	None. * *---------------------------------------------------------------------- */voidTkpMakeContainer(tkwin)    Tk_Window tkwin;{    TkWindow *winPtr = (TkWindow *) tkwin;    Container *containerPtr;    /*     * If this is the first container, register an exit handler so that     * things will get cleaned up at finalization.     */    if (firstContainerPtr == (Container *) NULL) {        Tcl_CreateExitHandler(CleanupContainerList, (ClientData) NULL);    }        /*     * Register the window as a container so that, for example, we can     * find out later if the embedded app. is in the same process.     */    Tk_MakeWindowExist(tkwin);    containerPtr = (Container *) ckalloc(sizeof(Container));    containerPtr->parentPtr = winPtr;    containerPtr->parentHWnd = Tk_GetHWND(Tk_WindowId(tkwin));    containerPtr->embeddedHWnd = NULL;    containerPtr->embeddedPtr = NULL;    containerPtr->nextPtr = firstContainerPtr;    firstContainerPtr = containerPtr;    winPtr->flags |= TK_CONTAINER;    /*     * Unlike in tkUnixEmbed.c, we don't make any requests for events     * in the embedded window here.  Now we just allow the embedding     * of another TK application into TK windows. When the embedded     * window makes a request, that will be done by sending to the     * container window a WM_USER message, which will be intercepted     * by TkWinContainerProc.     *     * We need to get structure events of the container itself, though.     */    Tk_CreateEventHandler(tkwin, StructureNotifyMask,	ContainerEventProc, (ClientData) containerPtr);}/* *---------------------------------------------------------------------- * * EmbeddedEventProc -- * *	This procedure is invoked by the Tk event dispatcher when various *	useful events are received for a window that is embedded in *	another application. * * Results: *	None. * * Side effects: *	Our internal state gets cleaned up when an embedded window is *	destroyed. * *---------------------------------------------------------------------- */static voidEmbeddedEventProc(clientData, eventPtr)    ClientData clientData;		/* Token for container window. */    XEvent *eventPtr;			/* ResizeRequest event. */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕在线观看一区| 国产乱码精品一区二区三| 精品一区二区三区在线播放视频 | 白白色亚洲国产精品| 在线精品视频免费观看| 久久久精品人体av艺术| 一区二区在线免费| 成人av免费在线观看| 欧美刺激午夜性久久久久久久 | 欧美亚洲禁片免费| 中文字幕在线不卡一区二区三区| 免费在线视频一区| 欧美日韩成人综合在线一区二区| 国产精品人成在线观看免费| 久久精品国产澳门| 91精品在线一区二区| 亚洲黄一区二区三区| 国产不卡高清在线观看视频| 欧美一区二区在线免费播放| 三级影片在线观看欧美日韩一区二区| 一本久道中文字幕精品亚洲嫩| 久久精品夜夜夜夜久久| 国产精品自拍一区| 久久久一区二区| 国产精品中文字幕欧美| 日韩欧美国产午夜精品| 日韩电影在线观看网站| 欧美老肥妇做.爰bbww视频| 亚洲一区二区高清| 欧美三级电影网| 亚洲亚洲精品在线观看| 欧美日韩二区三区| 日本美女一区二区| 日韩精品影音先锋| 国产精品99久久久久| 中文字幕av一区二区三区高| 国产suv一区二区三区88区| 国产亚洲人成网站| 天堂精品中文字幕在线| 久久精品理论片| 国产一区二区三区香蕉| 亚洲精品视频在线| 欧美性大战久久久久久久| 一个色妞综合视频在线观看| 在线免费一区三区| 奇米影视一区二区三区| 精品少妇一区二区三区| 国产乱子伦一区二区三区国色天香| wwwwww.欧美系列| 成人午夜视频福利| 亚洲激情六月丁香| 日韩一区二区麻豆国产| 国产一区二区精品久久| 国产精品欧美一级免费| 欧洲色大大久久| 日韩精品91亚洲二区在线观看| 欧美mv和日韩mv国产网站| 成人午夜激情影院| 亚洲一级不卡视频| 久久久久久麻豆| 91首页免费视频| 久久精品国产77777蜜臀| 国产精品夫妻自拍| 91精品久久久久久久99蜜桃| 国产成人精品网址| 亚洲国产日韩在线一区模特| 精品三级av在线| 97久久超碰精品国产| 美国十次综合导航| 国产精品成人一区二区艾草| 欧美一级二级在线观看| 91丨porny丨蝌蚪视频| 久久精品国产色蜜蜜麻豆| 亚洲柠檬福利资源导航| 欧美大黄免费观看| 欧美综合一区二区三区| 国产乱码精品1区2区3区| 亚洲大型综合色站| 亚洲天堂中文字幕| 91精品欧美福利在线观看 | 亚洲色图另类专区| 精品91自产拍在线观看一区| 在线一区二区视频| 成人精品小蝌蚪| 精品亚洲国产成人av制服丝袜 | 欧美日韩中文字幕精品| 国产精品资源在线看| 日本欧美加勒比视频| 亚洲一区精品在线| 国产精品久久久久久户外露出| 日韩一区二区在线看| 在线观看一区日韩| 成人小视频在线观看| 狠狠色丁香久久婷婷综合_中| 首页欧美精品中文字幕| 亚洲一区视频在线| 亚洲日本丝袜连裤袜办公室| 国产欧美精品在线观看| 久久久久久免费网| 久久久久久久久久美女| 91精品欧美一区二区三区综合在 | 9l国产精品久久久久麻豆| 国产精品中文字幕欧美| 麻豆成人久久精品二区三区小说| 亚洲无线码一区二区三区| 亚洲激情图片一区| 亚洲一区二区在线视频| 亚洲免费观看高清完整版在线观看| 国产精品久久久久aaaa| 国产精品素人视频| 亚洲欧美在线高清| 亚洲色图欧洲色图| 亚洲欧美电影院| 一区二区三区在线视频免费观看| 成人免费在线播放视频| 中文字幕视频一区二区三区久| 中文字幕不卡在线| 国产精品高清亚洲| 亚洲日本韩国一区| 伊人一区二区三区| 亚洲一级二级三级| 免费美女久久99| 久久国产麻豆精品| 国产精品亚洲人在线观看| 国产91精品精华液一区二区三区| 粉嫩高潮美女一区二区三区| 成人av电影免费在线播放| 成人av在线一区二区| 在线免费观看日韩欧美| 91精品国产色综合久久不卡电影| 欧美猛男超大videosgay| 欧美一级一区二区| 国产亚洲精品福利| 亚洲同性gay激情无套| 婷婷中文字幕一区三区| 精品一区二区三区免费| 成人av动漫在线| 欧美日韩成人在线| 精品少妇一区二区三区在线播放 | 精品欧美一区二区三区精品久久 | 午夜精品一区二区三区电影天堂 | 裸体健美xxxx欧美裸体表演| 国产一区二区三区免费播放 | 欧美日本免费一区二区三区| 欧美一区二区三区啪啪| 久久精品人人做人人综合| 亚洲精选免费视频| 日韩av一区二区三区| 国产精品一二三| 欧美日韩一区二区三区视频| 久久亚洲精品小早川怜子| 一区二区三区免费网站| 久久疯狂做爰流白浆xx| 色婷婷综合久久久久中文一区二区| 日韩三级免费观看| 亚洲免费在线电影| 精品亚洲国内自在自线福利| 日本高清成人免费播放| 久久综合资源网| 亚洲综合成人在线视频| 国产成人精品免费看| 欧美精品tushy高清| 国产精品不卡在线| 激情综合网av| 欧美日韩情趣电影| 亚洲天堂a在线| 国产伦精品一区二区三区视频青涩| 欧美性猛片xxxx免费看久爱| 久久精品日产第一区二区三区高清版| 亚洲超碰精品一区二区| 99久久综合国产精品| 精品成人一区二区三区| 午夜欧美一区二区三区在线播放| 国产91精品露脸国语对白| 欧美sm极限捆绑bd| 日本成人在线网站| 欧美天堂一区二区三区| 国产精品美女久久久久久 | 日本欧美在线观看| 日本道精品一区二区三区| 中文字幕不卡的av| 国产精品91一区二区| 久久婷婷成人综合色| 麻豆成人久久精品二区三区小说| 欧美美女激情18p| 午夜一区二区三区在线观看| 91麻豆成人久久精品二区三区| 国产日韩欧美高清在线| 韩国视频一区二区| 日韩精品自拍偷拍| 久久99精品久久久| 久久久亚洲精品一区二区三区| 日韩电影在线一区| 3d成人h动漫网站入口| 亚洲福利视频三区| 这里是久久伊人| 蜜桃视频在线观看一区| 精品播放一区二区| 国产美女视频91| 国产日韩高清在线|