Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6758db9a
Commit
6758db9a
authored
Jan 17, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of nonclient.h and of the corresponding exported functions in
user32.spec.
parent
ed9a3594
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
24 additions
and
56 deletions
+24
-56
controls.h
dlls/user/controls.h
+12
-0
menu.c
dlls/user/menu.c
+0
-1
user32.spec
dlls/user/user32.spec
+0
-3
winpos.c
dlls/x11drv/winpos.c
+11
-9
nonclient.h
include/nonclient.h
+0
-38
defwnd.c
windows/defwnd.c
+0
-1
mdi.c
windows/mdi.c
+0
-1
nonclient.c
windows/nonclient.c
+1
-2
winpos.c
windows/winpos.c
+0
-1
No files found.
dlls/user/controls.h
View file @
6758db9a
...
...
@@ -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
);
...
...
dlls/user/menu.c
View file @
6758db9a
...
...
@@ -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"
...
...
dlls/user/user32.spec
View file @
6758db9a
...
...
@@ -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)
...
...
dlls/x11drv/winpos.c
View file @
6758db9a
...
...
@@ -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
=
rect
Window
.
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
;
}
...
...
include/nonclient.h
deleted
100644 → 0
View file @
ed9a3594
/*
* 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 */
windows/defwnd.c
View file @
6758db9a
...
...
@@ -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"
...
...
windows/mdi.c
View file @
6758db9a
...
...
@@ -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"
...
...
windows/nonclient.c
View file @
6758db9a
...
...
@@ -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
);
...
...
windows/winpos.c
View file @
6758db9a
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment