Get rid of nonclient.h and of the corresponding exported functions in
user32.spec.
This commit is contained in:
parent
ed9a359402
commit
6758db9a0c
|
@ -68,6 +68,18 @@ extern UINT MENU_DrawMenuBar( HDC hDC, LPRECT lprect,
|
|||
HWND hwnd, BOOL suppress_draw );
|
||||
extern UINT MENU_FindSubMenu( HMENU *hmenu, HMENU hSubTarget );
|
||||
|
||||
/* nonclient area */
|
||||
extern LONG NC_HandleNCPaint( HWND hwnd , HRGN clip);
|
||||
extern LONG NC_HandleNCActivate( HWND hwnd, WPARAM wParam );
|
||||
extern LONG NC_HandleNCCalcSize( HWND hwnd, RECT *winRect );
|
||||
extern LONG NC_HandleNCHitTest( HWND hwnd, POINT pt );
|
||||
extern LONG NC_HandleNCLButtonDown( HWND hwnd, WPARAM wParam, LPARAM lParam );
|
||||
extern LONG NC_HandleNCLButtonDblClk( HWND hwnd, WPARAM wParam, LPARAM lParam);
|
||||
extern LONG NC_HandleSysCommand( HWND hwnd, WPARAM wParam, LPARAM lParam );
|
||||
extern LONG NC_HandleSetCursor( HWND hwnd, WPARAM wParam, LPARAM lParam );
|
||||
extern BOOL NC_DrawSysButton( HWND hwnd, HDC hdc, BOOL down );
|
||||
extern void NC_GetSysPopupPos( HWND hwnd, RECT* rect );
|
||||
|
||||
/* scrollbar */
|
||||
extern void SCROLL_DrawScrollBar( HWND hwnd, HDC hdc, INT nBar, BOOL arrows, BOOL interior );
|
||||
extern void SCROLL_TrackScrollBar( HWND hwnd, INT scrollbar, POINT pt );
|
||||
|
|
|
@ -43,7 +43,6 @@
|
|||
#include "wine/unicode.h"
|
||||
#include "win.h"
|
||||
#include "controls.h"
|
||||
#include "nonclient.h"
|
||||
#include "user_private.h"
|
||||
#include "wine/debug.h"
|
||||
|
||||
|
|
|
@ -727,9 +727,6 @@
|
|||
#
|
||||
@ cdecl DCE_InvalidateDCE(long ptr)
|
||||
@ cdecl HOOK_CallHooks(long long long long long)
|
||||
@ cdecl NC_GetInsideRect(long ptr)
|
||||
@ cdecl NC_HandleNCHitTest(long long long)
|
||||
@ cdecl NC_HandleSetCursor(long long long)
|
||||
@ cdecl USER_Unlock()
|
||||
@ cdecl WINPOS_ActivateOtherWindow(long)
|
||||
@ cdecl WINPOS_GetMinMaxInfo(long ptr ptr ptr ptr)
|
||||
|
|
|
@ -41,7 +41,6 @@
|
|||
#include "win.h"
|
||||
#include "winpos.h"
|
||||
#include "dce.h"
|
||||
#include "nonclient.h"
|
||||
|
||||
#include "wine/server.h"
|
||||
#include "wine/debug.h"
|
||||
|
@ -1581,16 +1580,19 @@ static LONG start_size_move( HWND hwnd, WPARAM wParam, POINT *capturePoint, LONG
|
|||
if ((wParam & 0xfff0) == SC_MOVE)
|
||||
{
|
||||
/* Move pointer at the center of the caption */
|
||||
RECT rect;
|
||||
NC_GetInsideRect( hwnd, &rect );
|
||||
RECT rect = rectWindow;
|
||||
/* Note: to be exactly centered we should take the different types
|
||||
* of border into account, but it shouldn't make more that a few pixels
|
||||
* of difference so let's not bother with that */
|
||||
rect.top += GetSystemMetrics(SM_CYBORDER);
|
||||
if (style & WS_SYSMENU)
|
||||
rect.left += GetSystemMetrics(SM_CXSIZE) + 1;
|
||||
if (style & WS_MINIMIZEBOX)
|
||||
rect.right -= GetSystemMetrics(SM_CXSIZE) + 1;
|
||||
if (style & WS_MAXIMIZEBOX)
|
||||
rect.right -= GetSystemMetrics(SM_CXSIZE) + 1;
|
||||
pt.x = rectWindow.left + (rect.right - rect.left) / 2;
|
||||
pt.y = rectWindow.top + rect.top + GetSystemMetrics(SM_CYSIZE)/2;
|
||||
pt.x = (rect.right + rect.left) / 2;
|
||||
pt.y = rect.top + GetSystemMetrics(SM_CYSIZE)/2;
|
||||
hittest = HTCAPTION;
|
||||
*capturePoint = pt;
|
||||
}
|
||||
|
@ -1604,9 +1606,9 @@ static LONG start_size_move( HWND hwnd, WPARAM wParam, POINT *capturePoint, LONG
|
|||
switch(msg.message)
|
||||
{
|
||||
case WM_MOUSEMOVE:
|
||||
hittest = NC_HandleNCHitTest( hwnd, msg.pt );
|
||||
if ((hittest < HTLEFT) || (hittest > HTBOTTOMRIGHT))
|
||||
hittest = 0;
|
||||
pt = msg.pt;
|
||||
hittest = SendMessageW( hwnd, WM_NCHITTEST, 0, MAKELONG( pt.x, pt.y ) );
|
||||
if ((hittest < HTLEFT) || (hittest > HTBOTTOMRIGHT)) hittest = 0;
|
||||
break;
|
||||
|
||||
case WM_LBUTTONUP:
|
||||
|
@ -1643,7 +1645,7 @@ static LONG start_size_move( HWND hwnd, WPARAM wParam, POINT *capturePoint, LONG
|
|||
*capturePoint = pt;
|
||||
}
|
||||
SetCursorPos( pt.x, pt.y );
|
||||
NC_HandleSetCursor( hwnd, (WPARAM)hwnd, MAKELONG( hittest, WM_MOUSEMOVE ));
|
||||
SendMessageW( hwnd, WM_SETCURSOR, (WPARAM)hwnd, MAKELONG( hittest, WM_MOUSEMOVE ));
|
||||
return hittest;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,38 +0,0 @@
|
|||
/*
|
||||
* Window non-client functions definitions
|
||||
*
|
||||
* Copyright 1995 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __WINE_NONCLIENT_H
|
||||
#define __WINE_NONCLIENT_H
|
||||
|
||||
#include <windef.h>
|
||||
|
||||
extern LONG NC_HandleNCPaint( HWND hwnd , HRGN clip);
|
||||
extern LONG NC_HandleNCActivate( HWND hwnd, WPARAM wParam );
|
||||
extern LONG NC_HandleNCCalcSize( HWND hwnd, RECT *winRect );
|
||||
extern LONG NC_HandleNCHitTest( HWND hwnd, POINT pt );
|
||||
extern LONG NC_HandleNCLButtonDown( HWND hwnd, WPARAM wParam, LPARAM lParam );
|
||||
extern LONG NC_HandleNCLButtonDblClk( HWND hwnd, WPARAM wParam, LPARAM lParam);
|
||||
extern LONG NC_HandleSysCommand( HWND hwnd, WPARAM wParam, LPARAM lParam );
|
||||
extern LONG NC_HandleSetCursor( HWND hwnd, WPARAM wParam, LPARAM lParam );
|
||||
extern BOOL NC_DrawSysButton( HWND hwnd, HDC hdc, BOOL down );
|
||||
extern void NC_GetSysPopupPos( HWND hwnd, RECT* rect );
|
||||
extern void NC_GetInsideRect( HWND hwnd, RECT *rect );
|
||||
|
||||
#endif /* __WINE_NONCLIENT_H */
|
|
@ -33,7 +33,6 @@
|
|||
#include "win.h"
|
||||
#include "user_private.h"
|
||||
#include "controls.h"
|
||||
#include "nonclient.h"
|
||||
#include "winpos.h"
|
||||
#include "message.h"
|
||||
#include "wine/unicode.h"
|
||||
|
|
|
@ -94,7 +94,6 @@
|
|||
#include "wine/winuser16.h"
|
||||
#include "wine/unicode.h"
|
||||
#include "win.h"
|
||||
#include "nonclient.h"
|
||||
#include "controls.h"
|
||||
#include "message.h"
|
||||
#include "user_private.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
#include "controls.h"
|
||||
#include "cursoricon.h"
|
||||
#include "winpos.h"
|
||||
#include "nonclient.h"
|
||||
#include "shellapi.h"
|
||||
#include "wine/debug.h"
|
||||
|
||||
|
@ -427,7 +426,7 @@ LONG NC_HandleNCCalcSize( HWND hwnd, RECT *winRect )
|
|||
* but without the borders (if any).
|
||||
* The rectangle is in window coordinates (for drawing with GetWindowDC()).
|
||||
*/
|
||||
void NC_GetInsideRect( HWND hwnd, RECT *rect )
|
||||
static void NC_GetInsideRect( HWND hwnd, RECT *rect )
|
||||
{
|
||||
WND * wndPtr = WIN_FindWndPtr( hwnd );
|
||||
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
#include "win.h"
|
||||
#include "message.h"
|
||||
#include "winpos.h"
|
||||
#include "nonclient.h"
|
||||
#include "wine/debug.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(win);
|
||||
|
|
Loading…
Reference in New Issue