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
e30c69cc
Commit
e30c69cc
authored
May 26, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user: Added fast 32->16 mapping for WM_MDIACTIVATE, WM_MDIGETACTIVE and WM_MDISETMENU.
parent
dd67e8b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
24 deletions
+16
-24
winproc.c
dlls/user/winproc.c
+16
-24
No files found.
dlls/user/winproc.c
View file @
e30c69cc
...
...
@@ -974,13 +974,6 @@ static INT WINPROC_MapMsg32ATo16( HWND hwnd, UINT msg32, WPARAM wParam32,
*
plparam
=
MapLS
(
str
);
}
return
1
;
case
WM_MDIGETACTIVE
:
return
1
;
case
WM_MDISETMENU
:
*
plparam
=
MAKELPARAM
(
(
HMENU16
)
LOWORD
(
wParam32
),
(
HMENU16
)
LOWORD
(
*
plparam
)
);
*
pwparam16
=
(
*
plparam
==
0
);
return
0
;
case
WM_MENUSELECT
:
if
(
HIWORD
(
wParam32
)
&
MF_POPUP
)
{
...
...
@@ -995,19 +988,6 @@ static INT WINPROC_MapMsg32ATo16( HWND hwnd, UINT msg32, WPARAM wParam32,
case
WM_MENUCHAR
:
*
plparam
=
MAKELPARAM
(
HIWORD
(
wParam32
),
(
HMENU16
)
*
plparam
);
return
0
;
case
WM_MDIACTIVATE
:
if
(
GetWindowLongW
(
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_MDICHILD
)
{
*
pwparam16
=
((
HWND
)
*
plparam
==
hwnd
);
*
plparam
=
MAKELPARAM
(
(
HWND16
)
LOWORD
(
*
plparam
),
(
HWND16
)
LOWORD
(
wParam32
)
);
}
else
{
*
pwparam16
=
HWND_16
(
(
HWND
)
wParam32
);
*
plparam
=
0
;
}
return
0
;
case
WM_PARENTNOTIFY
:
if
((
LOWORD
(
wParam32
)
==
WM_CREATE
)
||
(
LOWORD
(
wParam32
)
==
WM_DESTROY
))
*
plparam
=
MAKELPARAM
(
(
HWND16
)
*
plparam
,
HIWORD
(
wParam32
));
...
...
@@ -1193,10 +1173,6 @@ static void WINPROC_UnmapMsg32ATo16( HWND hwnd, UINT msg, WPARAM wParam, LPARAM
HeapFree
(
GetProcessHeap
(),
0
,
(
LPARAM
*
)
str
-
1
);
}
break
;
case
WM_MDIGETACTIVE
:
if
(
lParam
)
*
(
BOOL
*
)
lParam
=
(
BOOL16
)
HIWORD
(
*
result
);
*
result
=
(
LRESULT
)
WIN_Handle32
(
LOWORD
(
*
result
)
);
break
;
case
WM_NOTIFY
:
UnMapLS
(
lParam16
);
break
;
...
...
@@ -2122,6 +2098,22 @@ LRESULT WINPROC_CallProc32ATo16( winproc_callback16_t callback, HWND hwnd, UINT
UnMapLS
(
cs
.
szClass
);
}
break
;
case
WM_MDIACTIVATE
:
if
(
GetWindowLongW
(
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_MDICHILD
)
ret
=
callback
(
HWND_16
(
hwnd
),
msg
,
((
HWND
)
lParam
==
hwnd
),
MAKELPARAM
(
LOWORD
(
lParam
),
LOWORD
(
wParam
)
),
result
,
arg
);
else
ret
=
callback
(
HWND_16
(
hwnd
),
msg
,
HWND_16
(
(
HWND
)
wParam
),
0
,
result
,
arg
);
break
;
case
WM_MDIGETACTIVE
:
ret
=
callback
(
HWND_16
(
hwnd
),
msg
,
wParam
,
lParam
,
result
,
arg
);
if
(
lParam
)
*
(
BOOL
*
)
lParam
=
(
BOOL16
)
HIWORD
(
*
result
);
*
result
=
(
LRESULT
)
WIN_Handle32
(
LOWORD
(
*
result
)
);
break
;
case
WM_MDISETMENU
:
ret
=
callback
(
HWND_16
(
hwnd
),
msg
,
(
lParam
==
0
),
MAKELPARAM
(
LOWORD
(
wParam
),
LOWORD
(
lParam
)
),
result
,
arg
);
break
;
case
WM_GETMINMAXINFO
:
{
MINMAXINFO
*
mmi32
=
(
MINMAXINFO
*
)
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