PATCH: Version 2, GetX11WindowId
Nikolas Zimmermann
wildfox at kde.org
Wed May 30 13:46:38 CDT 2001
Hi there,
andrewl (#winehq) advised me to remove
the winuser.h dependencies
here is the new patch
Any comments?
Bye
Bye
Niko
--
Nikolas Zimmermann
wildfox at kde.org
-------------- next part --------------
Index: dlls/x11drv/window.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/window.c,v
retrieving revision 1.4
diff -u -p -b -r1.4 window.c
--- dlls/x11drv/window.c 2001/05/16 19:52:30 1.4
+++ dlls/x11drv/window.c 2001/05/30 14:53:30
@@ -190,6 +190,26 @@ static void create_desktop( Display *dis
}
+ /**********************************************************************
+ * GetWindowId (X11DRV.@)
+ */
+INT X11DRV_GetWindowId( HWND hwnd )
+{
+ X11DRV_WND_DATA *data;
+ WND *wndPtr = WIN_FindWndPtr( hwnd );
+ INT windowid = -1;
+
+ if (wndPtr)
+ {
+ data = wndPtr->pDriverData;
+ windowid = (INT) data->window;
+ }
+ WIN_ReleaseWndPtr( wndPtr );
+
+ return windowid;
+}
+
+
/**********************************************************************
* CreateWindow (X11DRV.@)
*/
Index: dlls/x11drv/x11drv.spec
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/x11drv.spec,v
retrieving revision 1.14
diff -u -p -b -r1.14 x11drv.spec
--- dlls/x11drv/x11drv.spec 2001/05/18 22:51:56 1.14
+++ dlls/x11drv/x11drv.spec 2001/05/30 14:53:30
@@ -27,6 +27,7 @@ debug_channels (bitblt bitmap clipboard
@ cdecl GetScreenSaveTimeout() X11DRV_GetScreenSaveTimeout
@ cdecl SetScreenSaveTimeout(long) X11DRV_SetScreenSaveTimeout
@ cdecl LoadOEMResource(long long) X11DRV_LoadOEMResource
+@ cdecl GetX11WindowId(long) X11DRV_GetWindowId
@ cdecl CreateWindow(long) X11DRV_CreateWindow
@ cdecl DestroyWindow(long) X11DRV_DestroyWindow
@ cdecl GetDC(long long long long) X11DRV_GetDC
More information about the wine-devel
mailing list