From b2686ad2dd4aed8b2392ee2a3c2b608a492a0f26 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Thu, 29 Jun 2006 17:11:55 +0900 Subject: [PATCH] include: Move appropriate parts of winpos.h to winuser.h and win.h, remove winpos.h afterwards. --- dlls/user/defwnd.c | 1 - dlls/user/dialog.c | 1 - dlls/user/message.c | 1 - dlls/user/nonclient.c | 1 - dlls/user/win.c | 1 - dlls/user/winpos.c | 1 - dlls/winex11.drv/window.c | 1 - dlls/winex11.drv/winpos.c | 1 - include/win.h | 9 ++++++++ include/winpos.h | 44 --------------------------------------- include/winuser.h | 5 +++++ 11 files changed, 14 insertions(+), 52 deletions(-) delete mode 100644 include/winpos.h diff --git a/dlls/user/defwnd.c b/dlls/user/defwnd.c index da38c637baf..c4339eb322a 100644 --- a/dlls/user/defwnd.c +++ b/dlls/user/defwnd.c @@ -33,7 +33,6 @@ #include "win.h" #include "user_private.h" #include "controls.h" -#include "winpos.h" #include "wine/unicode.h" #include "wine/winuser16.h" #include "wine/server.h" diff --git a/dlls/user/dialog.c b/dlls/user/dialog.c index baf72a68a97..6eaa9422087 100644 --- a/dlls/user/dialog.c +++ b/dlls/user/dialog.c @@ -38,7 +38,6 @@ #include "wine/unicode.h" #include "controls.h" #include "win.h" -#include "winpos.h" #include "user_private.h" #include "wine/debug.h" diff --git a/dlls/user/message.c b/dlls/user/message.c index fde5fbae795..fd84ef0c27a 100644 --- a/dlls/user/message.c +++ b/dlls/user/message.c @@ -38,7 +38,6 @@ #include "wine/server.h" #include "user_private.h" #include "win.h" -#include "winpos.h" #include "controls.h" #include "winproc.h" #include "wine/debug.h" diff --git a/dlls/user/nonclient.c b/dlls/user/nonclient.c index 2f095ca302d..00c29133b42 100644 --- a/dlls/user/nonclient.c +++ b/dlls/user/nonclient.c @@ -30,7 +30,6 @@ #include "win.h" #include "user_private.h" #include "controls.h" -#include "winpos.h" #include "shellapi.h" #include "wine/debug.h" diff --git a/dlls/user/win.c b/dlls/user/win.c index 593fef177dc..fa2af00d032 100644 --- a/dlls/user/win.c +++ b/dlls/user/win.c @@ -36,7 +36,6 @@ #include "winproc.h" #include "user_private.h" #include "controls.h" -#include "winpos.h" #include "winerror.h" #include "wine/debug.h" diff --git a/dlls/user/winpos.c b/dlls/user/winpos.c index 0c235071c07..a3b76488eca 100644 --- a/dlls/user/winpos.c +++ b/dlls/user/winpos.c @@ -36,7 +36,6 @@ #include "controls.h" #include "user_private.h" #include "win.h" -#include "winpos.h" #include "wine/debug.h" WINE_DEFAULT_DEBUG_CHANNEL(win); diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index 6d7c595225d..2bc90a77a5a 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -43,7 +43,6 @@ #include "wine/debug.h" #include "wine/server.h" #include "win.h" -#include "winpos.h" #include "mwm.h" WINE_DEFAULT_DEBUG_CHANNEL(x11drv); diff --git a/dlls/winex11.drv/winpos.c b/dlls/winex11.drv/winpos.c index 80626b4cc34..e17180a5ad8 100644 --- a/dlls/winex11.drv/winpos.c +++ b/dlls/winex11.drv/winpos.c @@ -38,7 +38,6 @@ #include "x11drv.h" #include "win.h" -#include "winpos.h" #include "wine/server.h" #include "wine/debug.h" diff --git a/include/win.h b/include/win.h index 85c6e7e071e..bc7a4cb717c 100644 --- a/include/win.h +++ b/include/win.h @@ -106,4 +106,13 @@ inline static void WIN_ReleasePtr( WND *ptr ) extern LRESULT HOOK_CallHooks( INT id, INT code, WPARAM wparam, LPARAM lparam, BOOL unicode ); +extern BOOL WINPOS_RedrawIconTitle( HWND hWnd ); +extern BOOL WINPOS_ShowIconTitle( HWND hwnd, BOOL bShow ); +extern void WINPOS_GetMinMaxInfo( HWND hwnd, POINT *maxSize, POINT *maxPos, POINT *minTrack, + POINT *maxTrack ); +extern LONG WINPOS_HandleWindowPosChanging(HWND hwnd, WINDOWPOS *winpos); +extern HWND WINPOS_WindowFromPoint( HWND hwndScope, POINT pt, INT *hittest ); +extern void WINPOS_CheckInternalPos( HWND hwnd ); +extern void WINPOS_ActivateOtherWindow( HWND hwnd ); + #endif /* __WINE_WIN_H */ diff --git a/include/winpos.h b/include/winpos.h deleted file mode 100644 index ea3008f9929..00000000000 --- a/include/winpos.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * *DeferWindowPos() structure and definitions - * - * Copyright 1994 Alexandre Julliard - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA - */ - -#ifndef __WINE_WINPOS_H -#define __WINE_WINPOS_H - -#include -#include -#include -#include -#include - -/* undocumented SWP flags - from SDK 3.1 */ -#define SWP_NOCLIENTSIZE 0x0800 -#define SWP_NOCLIENTMOVE 0x1000 -#define SWP_STATECHANGED 0x8000 - -extern BOOL WINPOS_RedrawIconTitle( HWND hWnd ); -extern BOOL WINPOS_ShowIconTitle( HWND hwnd, BOOL bShow ); -extern void WINPOS_GetMinMaxInfo( HWND hwnd, POINT *maxSize, POINT *maxPos, POINT *minTrack, - POINT *maxTrack ); -extern LONG WINPOS_HandleWindowPosChanging(HWND hwnd, WINDOWPOS *winpos); -extern HWND WINPOS_WindowFromPoint( HWND hwndScope, POINT pt, INT *hittest ); -extern void WINPOS_CheckInternalPos( HWND hwnd ); -extern void WINPOS_ActivateOtherWindow( HWND hwnd ); - -#endif /* __WINE_WINPOS_H */ diff --git a/include/winuser.h b/include/winuser.h index e6c5a281819..cd83c5aa765 100644 --- a/include/winuser.h +++ b/include/winuser.h @@ -3155,6 +3155,11 @@ typedef struct { #define SWP_DEFERERASE 0x2000 #define SWP_ASYNCWINDOWPOS 0x4000 +/* undocumented SWP flags - from SDK 3.1 */ +#define SWP_NOCLIENTSIZE 0x0800 +#define SWP_NOCLIENTMOVE 0x1000 +#define SWP_STATECHANGED 0x8000 + #define HWND_DESKTOP ((HWND)0) #define HWND_BROADCAST ((HWND)0xffff)