From 9d14a001f770e7e7bf89a303a800d9ea1b0ac90f Mon Sep 17 00:00:00 2001 From: Michael Veksler Date: Sat, 8 May 1999 12:40:24 +0000 Subject: [PATCH] Removed #include "wine/winuser16.h" and use "struct tag????" instead. --- include/ttydrv.h | 11 +++++++---- include/winpos.h | 5 +++-- windows/display.c | 2 +- windows/focus.c | 1 + windows/nonclient.c | 1 + windows/ttydrv/mouse.c | 2 +- windows/win.c | 1 + windows/winpos.c | 1 + 8 files changed, 16 insertions(+), 8 deletions(-) diff --git a/include/ttydrv.h b/include/ttydrv.h index d8dc61ed4a2..7f7aa8fd463 100644 --- a/include/ttydrv.h +++ b/include/ttydrv.h @@ -7,7 +7,7 @@ #include "windef.h" #include "wingdi.h" -#include "wine/winuser16.h" +#include "wine/wingdi16.h" struct tagBITMAPOBJ; struct tagCLASS; @@ -15,6 +15,9 @@ struct tagDC; struct tagDESKTOP; struct tagPALETTEOBJ; struct tagWND; +struct tagCURSORICONINFO; +struct tagCREATESTRUCTA; +struct tagWINDOWPOS; /************************************************************************** * TTY GDI driver @@ -139,7 +142,7 @@ extern void TTYDRV_MONITOR_SetScreenSaveTimeout(struct tagMONITOR *pMonitor, int extern struct tagMOUSE_DRIVER TTYDRV_MOUSE_Driver; -extern void TTYDRV_MOUSE_SetCursor(CURSORICONINFO *lpCursor); +extern void TTYDRV_MOUSE_SetCursor(struct tagCURSORICONINFO *lpCursor); extern void TTYDRV_MOUSE_MoveCursor(WORD wAbsX, WORD wAbsY); extern BOOL TTYDRV_MOUSE_EnableWarpPointer(BOOL bEnable); @@ -150,11 +153,11 @@ extern struct tagWND_DRIVER TTYDRV_WND_Driver; extern void TTYDRV_WND_Initialize(struct tagWND *wndPtr); extern void TTYDRV_WND_Finalize(struct tagWND *wndPtr); extern BOOL TTYDRV_WND_CreateDesktopWindow(struct tagWND *wndPtr, struct tagCLASS *classPtr, BOOL bUnicode); -extern BOOL TTYDRV_WND_CreateWindow(struct tagWND *wndPtr, struct tagCLASS *classPtr, CREATESTRUCTA *cs, BOOL bUnicode); +extern BOOL TTYDRV_WND_CreateWindow(struct tagWND *wndPtr, struct tagCLASS *classPtr, struct tagCREATESTRUCTA *cs, BOOL bUnicode); extern BOOL TTYDRV_WND_DestroyWindow(struct tagWND *pWnd); extern struct tagWND *TTYDRV_WND_SetParent(struct tagWND *wndPtr, struct tagWND *pWndParent); extern void TTYDRV_WND_ForceWindowRaise(struct tagWND *pWnd); -extern void TTYDRV_WND_SetWindowPos(struct tagWND *wndPtr, const WINDOWPOS *winpos, BOOL bSMC_SETXPOS); +extern void TTYDRV_WND_SetWindowPos(struct tagWND *wndPtr, const struct tagWINDOWPOS *winpos, BOOL bSMC_SETXPOS); extern void TTYDRV_WND_SetText(struct tagWND *wndPtr, LPCSTR text); extern void TTYDRV_WND_SetFocus(struct tagWND *wndPtr); extern void TTYDRV_WND_PreSizeMove(struct tagWND *wndPtr); diff --git a/include/winpos.h b/include/winpos.h index e07011f6757..82fadd09d87 100644 --- a/include/winpos.h +++ b/include/winpos.h @@ -8,7 +8,6 @@ #define __WINE_WINPOS_H #include "win.h" -#include "wine/winuser16.h" /* for WINDOWPOS16 */ #define DWP_MAGIC ((INT)('W' | ('P' << 8) | ('O' << 16) | ('S' << 24))) @@ -16,6 +15,8 @@ #define SWP_NOCLIENTSIZE 0x0800 #define SWP_NOCLIENTMOVE 0x1000 +struct tagWINDOWPOS16; + typedef struct { INT actualCount; @@ -39,7 +40,7 @@ extern LONG WINPOS_SendNCCalcSize(HWND hwnd, BOOL calcValidRect, RECT *newWindowRect, RECT *oldWindowRect, RECT *oldClientRect, WINDOWPOS *winpos, RECT *newClientRect ); -extern LONG WINPOS_HandleWindowPosChanging16(WND *wndPtr, WINDOWPOS16 *winpos); +extern LONG WINPOS_HandleWindowPosChanging16(WND *wndPtr, struct tagWINDOWPOS16 *winpos); extern LONG WINPOS_HandleWindowPosChanging(WND *wndPtr, WINDOWPOS *winpos); extern INT16 WINPOS_WindowFromPoint( WND* scopeWnd, POINT16 pt, WND **ppWnd ); extern void WINPOS_CheckInternalPos( WND* wndPtr ); diff --git a/windows/display.c b/windows/display.c index 16e373558aa..9a7fbba2d72 100644 --- a/windows/display.c +++ b/windows/display.c @@ -27,7 +27,7 @@ WORD WINAPI DISPLAY_Inquire(LPCURSORINFO lpCursorInfo) /*********************************************************************** * DISPLAY_SetCursor (DISPLAY.102) */ -VOID WINAPI DISPLAY_SetCursor( CURSORICONINFO *lpCursor ) +VOID WINAPI DISPLAY_SetCursor( struct tagCURSORICONINFO *lpCursor ) { MOUSE_Driver->pSetCursor(lpCursor); } diff --git a/windows/focus.c b/windows/focus.c index a0cfb57e966..3020c40dbec 100644 --- a/windows/focus.c +++ b/windows/focus.c @@ -7,6 +7,7 @@ * */ +#include "wine/winuser16.h" #include "win.h" #include "winpos.h" #include "hook.h" diff --git a/windows/nonclient.c b/windows/nonclient.c index e0bb652810e..d596ade3b17 100644 --- a/windows/nonclient.c +++ b/windows/nonclient.c @@ -5,6 +5,7 @@ * */ +#include "wine/winuser16.h" #include "version.h" #include "win.h" #include "message.h" diff --git a/windows/ttydrv/mouse.c b/windows/ttydrv/mouse.c index 9ea016e4a25..e74f4e8f45f 100644 --- a/windows/ttydrv/mouse.c +++ b/windows/ttydrv/mouse.c @@ -9,7 +9,7 @@ /*********************************************************************** * TTYDRV_MOUSE_SetCursor */ -void TTYDRV_MOUSE_SetCursor( CURSORICONINFO *lpCursor ) +void TTYDRV_MOUSE_SetCursor( struct tagCURSORICONINFO *lpCursor ) { } diff --git a/windows/win.c b/windows/win.c index 032af871e6b..b32c33d155c 100644 --- a/windows/win.c +++ b/windows/win.c @@ -7,6 +7,7 @@ #include #include #include "wine/winbase16.h" +#include "wine/winuser16.h" #include "options.h" #include "class.h" #include "win.h" diff --git a/windows/winpos.c b/windows/winpos.c index d714cb4fd52..4200fff772e 100644 --- a/windows/winpos.c +++ b/windows/winpos.c @@ -6,6 +6,7 @@ */ #include +#include "wine/winuser16.h" #include "sysmetrics.h" #include "heap.h" #include "module.h"