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
5224f74b
Commit
5224f74b
authored
Sep 12, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the non-client message handling functions return an LRESULT.
parent
e1646dd2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
24 deletions
+24
-24
controls.h
dlls/user/controls.h
+8
-8
nonclient.c
dlls/user/nonclient.c
+16
-16
No files found.
dlls/user/controls.h
View file @
5224f74b
...
...
@@ -67,14 +67,14 @@ extern UINT MENU_DrawMenuBar( HDC hDC, LPRECT lprect,
extern
UINT
MENU_FindSubMenu
(
HMENU
*
hmenu
,
HMENU
hSubTarget
);
/* nonclient area */
extern
L
ONG
NC_HandleNCPaint
(
HWND
hwnd
,
HRGN
clip
);
extern
L
ONG
NC_HandleNCActivate
(
HWND
hwnd
,
WPARAM
wParam
);
extern
L
ONG
NC_HandleNCCalcSize
(
HWND
hwnd
,
RECT
*
winRect
);
extern
L
ONG
NC_HandleNCHitTest
(
HWND
hwnd
,
POINT
pt
);
extern
L
ONG
NC_HandleNCLButtonDown
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
);
extern
L
ONG
NC_HandleNCLButtonDblClk
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
);
extern
L
ONG
NC_HandleSysCommand
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
);
extern
L
ONG
NC_HandleSetCursor
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
);
extern
L
RESULT
NC_HandleNCPaint
(
HWND
hwnd
,
HRGN
clip
);
extern
L
RESULT
NC_HandleNCActivate
(
HWND
hwnd
,
WPARAM
wParam
);
extern
L
RESULT
NC_HandleNCCalcSize
(
HWND
hwnd
,
RECT
*
winRect
);
extern
L
RESULT
NC_HandleNCHitTest
(
HWND
hwnd
,
POINT
pt
);
extern
L
RESULT
NC_HandleNCLButtonDown
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
);
extern
L
RESULT
NC_HandleNCLButtonDblClk
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
);
extern
L
RESULT
NC_HandleSysCommand
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
);
extern
L
RESULT
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
);
...
...
dlls/user/nonclient.c
View file @
5224f74b
...
...
@@ -430,10 +430,10 @@ BOOL WINAPI AdjustWindowRectEx( LPRECT rect, DWORD style, BOOL menu, DWORD exSty
*
* Handle a WM_NCCALCSIZE message. Called from DefWindowProc().
*/
L
ONG
NC_HandleNCCalcSize
(
HWND
hwnd
,
RECT
*
winRect
)
L
RESULT
NC_HandleNCCalcSize
(
HWND
hwnd
,
RECT
*
winRect
)
{
RECT
tmpRect
=
{
0
,
0
,
0
,
0
};
L
ONG
result
=
0
;
L
RESULT
result
=
0
;
LONG
cls_style
=
GetClassLongW
(
hwnd
,
GCL_STYLE
);
LONG
style
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
LONG
exStyle
=
GetWindowLongW
(
hwnd
,
GWL_EXSTYLE
);
...
...
@@ -546,7 +546,7 @@ END:
* FIXME: Just a modified copy of the Win 3.1 version.
*/
static
L
ONG
NC_DoNCHitTest
(
WND
*
wndPtr
,
POINT
pt
)
static
L
RESULT
NC_DoNCHitTest
(
WND
*
wndPtr
,
POINT
pt
)
{
RECT
rect
,
rcClient
;
POINT
ptClient
;
...
...
@@ -696,9 +696,9 @@ static LONG NC_DoNCHitTest (WND *wndPtr, POINT pt )
*
* Handle a WM_NCHITTEST message. Called from DefWindowProc().
*/
L
ONG
NC_HandleNCHitTest
(
HWND
hwnd
,
POINT
pt
)
L
RESULT
NC_HandleNCHitTest
(
HWND
hwnd
,
POINT
pt
)
{
L
ONG
retvalue
;
L
RESULT
retvalue
;
WND
*
wndPtr
=
WIN_GetPtr
(
hwnd
);
if
(
!
wndPtr
||
wndPtr
==
WND_OTHER_PROCESS
||
wndPtr
==
WND_DESKTOP
)
return
HTERROR
;
...
...
@@ -1125,7 +1125,7 @@ static void NC_DoNCPaint( HWND hwnd, HRGN clip, BOOL suppress_menupaint )
*
* Handle a WM_NCPAINT message. Called from DefWindowProc().
*/
L
ONG
NC_HandleNCPaint
(
HWND
hwnd
,
HRGN
clip
)
L
RESULT
NC_HandleNCPaint
(
HWND
hwnd
,
HRGN
clip
)
{
DWORD
dwStyle
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
...
...
@@ -1145,7 +1145,7 @@ LONG NC_HandleNCPaint( HWND hwnd , HRGN clip)
*
* Handle a WM_NCACTIVATE message. Called from DefWindowProc().
*/
L
ONG
NC_HandleNCActivate
(
HWND
hwnd
,
WPARAM
wParam
)
L
RESULT
NC_HandleNCActivate
(
HWND
hwnd
,
WPARAM
wParam
)
{
WND
*
wndPtr
=
WIN_GetPtr
(
hwnd
);
...
...
@@ -1174,7 +1174,7 @@ LONG NC_HandleNCActivate( HWND hwnd, WPARAM wParam )
*
* Handle a WM_SETCURSOR message. Called from DefWindowProc().
*/
L
ONG
NC_HandleSetCursor
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
L
RESULT
NC_HandleSetCursor
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
hwnd
=
WIN_GetFullHandle
(
(
HWND
)
wParam
);
...
...
@@ -1201,23 +1201,23 @@ LONG NC_HandleSetCursor( HWND hwnd, WPARAM wParam, LPARAM lParam )
case
HTLEFT
:
case
HTRIGHT
:
return
(
L
ONG
)
SetCursor
(
LoadCursorA
(
0
,
(
LPSTR
)
IDC_SIZEWE
)
);
return
(
L
RESULT
)
SetCursor
(
LoadCursorA
(
0
,
(
LPSTR
)
IDC_SIZEWE
)
);
case
HTTOP
:
case
HTBOTTOM
:
return
(
L
ONG
)
SetCursor
(
LoadCursorA
(
0
,
(
LPSTR
)
IDC_SIZENS
)
);
return
(
L
RESULT
)
SetCursor
(
LoadCursorA
(
0
,
(
LPSTR
)
IDC_SIZENS
)
);
case
HTTOPLEFT
:
case
HTBOTTOMRIGHT
:
return
(
L
ONG
)
SetCursor
(
LoadCursorA
(
0
,
(
LPSTR
)
IDC_SIZENWSE
)
);
return
(
L
RESULT
)
SetCursor
(
LoadCursorA
(
0
,
(
LPSTR
)
IDC_SIZENWSE
)
);
case
HTTOPRIGHT
:
case
HTBOTTOMLEFT
:
return
(
L
ONG
)
SetCursor
(
LoadCursorA
(
0
,
(
LPSTR
)
IDC_SIZENESW
)
);
return
(
L
RESULT
)
SetCursor
(
LoadCursorA
(
0
,
(
LPSTR
)
IDC_SIZENESW
)
);
}
/* Default cursor: arrow */
return
(
L
ONG
)
SetCursor
(
LoadCursorA
(
0
,
(
LPSTR
)
IDC_ARROW
)
);
return
(
L
RESULT
)
SetCursor
(
LoadCursorA
(
0
,
(
LPSTR
)
IDC_ARROW
)
);
}
/***********************************************************************
...
...
@@ -1410,7 +1410,7 @@ static void NC_TrackScrollBar( HWND hwnd, WPARAM wParam, POINT pt )
*
* Handle a WM_NCLBUTTONDOWN message. Called from DefWindowProc().
*/
L
ONG
NC_HandleNCLButtonDown
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
L
RESULT
NC_HandleNCLButtonDown
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
LONG
style
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
...
...
@@ -1490,7 +1490,7 @@ LONG NC_HandleNCLButtonDown( HWND hwnd, WPARAM wParam, LPARAM lParam )
*
* Handle a WM_NCLBUTTONDBLCLK message. Called from DefWindowProc().
*/
L
ONG
NC_HandleNCLButtonDblClk
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
L
RESULT
NC_HandleNCLButtonDblClk
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
/*
* if this is an icon, send a restore since we are handling
...
...
@@ -1541,7 +1541,7 @@ LONG NC_HandleNCLButtonDblClk( HWND hwnd, WPARAM wParam, LPARAM lParam )
*
* Handle a WM_SYSCOMMAND message. Called from DefWindowProc().
*/
L
ONG
NC_HandleSysCommand
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
L
RESULT
NC_HandleSysCommand
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
TRACE
(
"Handling WM_SYSCOMMAND %x %lx
\n
"
,
wParam
,
lParam
);
...
...
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