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
ebed1b87
Commit
ebed1b87
authored
Jul 05, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ComboLBWndProc: fall through to ListBoxWndProc if the listbox is not a
ComboLBox.
parent
2128b338
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
26 deletions
+25
-26
listbox.c
controls/listbox.c
+25
-26
No files found.
controls/listbox.c
View file @
ebed1b87
...
...
@@ -3056,24 +3056,30 @@ static LRESULT WINAPI ComboLBWndProc_common( HWND hwnd, UINT msg,
WPARAM
wParam
,
LPARAM
lParam
,
BOOL
unicode
)
{
LRESULT
lRet
=
0
;
LB_DESCR
*
descr
=
(
LB_DESCR
*
)
GetWindowLongA
(
hwnd
,
0
);
LB_DESCR
*
descr
;
LPHEADCOMBO
lphc
;
if
(
!
(
descr
=
(
LB_DESCR
*
)
GetWindowLongA
(
hwnd
,
0
)))
{
if
(
msg
==
WM_CREATE
)
{
CREATESTRUCTA
*
lpcs
=
(
CREATESTRUCTA
*
)
lParam
;
TRACE_
(
combo
)(
"
\t
passed parent handle = %p
\n
"
,
lpcs
->
lpCreateParams
);
lphc
=
(
LPHEADCOMBO
)(
lpcs
->
lpCreateParams
);
return
LISTBOX_Create
(
hwnd
,
lphc
);
}
/* Ignore all other messages before we get a WM_CREATE */
return
unicode
?
DefWindowProcW
(
hwnd
,
msg
,
wParam
,
lParam
)
:
DefWindowProcA
(
hwnd
,
msg
,
wParam
,
lParam
);
}
TRACE_
(
combo
)(
"[%04x]: msg %s wp %08x lp %08lx
\n
"
,
hwnd
,
SPY_GetMsgName
(
msg
,
hwnd
),
wParam
,
lParam
);
if
(
descr
||
msg
==
WM_CREATE
)
if
((
lphc
=
descr
->
lphc
)
!=
NULL
)
{
LPHEADCOMBO
lphc
=
(
descr
)
?
descr
->
lphc
:
NULL
;
switch
(
msg
)
{
case
WM_CREATE
:
{
CREATESTRUCTA
*
lpcs
=
(
CREATESTRUCTA
*
)
lParam
;
TRACE_
(
combo
)(
"
\t
passed parent handle = %p
\n
"
,
lpcs
->
lpCreateParams
);
lphc
=
(
LPHEADCOMBO
)(
lpcs
->
lpCreateParams
);
return
LISTBOX_Create
(
hwnd
,
lphc
);
}
case
WM_MOUSEMOVE
:
if
(
(
TWEAK_WineLook
>
WIN31_LOOK
)
&&
(
CB_GETTYPE
(
lphc
)
!=
CBS_SIMPLE
)
)
...
...
@@ -3111,14 +3117,9 @@ static LRESULT WINAPI ComboLBWndProc_common( HWND hwnd, UINT msg,
return
0
;
}
else
{
/*
* If we are in Win3.1 look, go with the default behavior.
*/
return
unicode
?
ListBoxWndProcW
(
hwnd
,
msg
,
wParam
,
lParam
)
:
ListBoxWndProcA
(
hwnd
,
msg
,
wParam
,
lParam
);
}
/* else we are in Win3.1 look, go with the default behavior. */
break
;
case
WM_LBUTTONUP
:
if
(
TWEAK_WineLook
>
WIN31_LOOK
)
{
...
...
@@ -3180,15 +3181,13 @@ static LRESULT WINAPI ComboLBWndProc_common( HWND hwnd, UINT msg,
case
WM_NCDESTROY
:
if
(
CB_GETTYPE
(
lphc
)
!=
CBS_SIMPLE
)
lphc
->
hWndLBox
=
0
;
/* fall through */
default:
return
unicode
?
ListBoxWndProcW
(
hwnd
,
msg
,
wParam
,
lParam
)
:
ListBoxWndProcA
(
hwnd
,
msg
,
wParam
,
lParam
);
break
;
}
}
lRet
=
unicode
?
DefWindowProcW
(
hwnd
,
msg
,
wParam
,
lParam
)
:
DefWindowProcA
(
hwnd
,
msg
,
wParam
,
lParam
);
/* default handling: call listbox wnd proc */
lRet
=
unicode
?
ListBoxWndProcW
(
hwnd
,
msg
,
wParam
,
lParam
)
:
ListBoxWndProcA
(
hwnd
,
msg
,
wParam
,
lParam
);
TRACE_
(
combo
)(
"
\t
default on msg [%04x]
\n
"
,
(
UINT16
)
msg
);
...
...
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