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
8f7779fc
Commit
8f7779fc
authored
May 07, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Implement GetListBoxInfo().
parent
b49c565f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
5 deletions
+52
-5
listbox.c
dlls/user32/listbox.c
+7
-4
listbox.c
dlls/user32/tests/listbox.c
+44
-0
user32.spec
dlls/user32/user32.spec
+1
-1
No files found.
dlls/user32/listbox.c
View file @
8f7779fc
...
...
@@ -27,8 +27,6 @@
* If you discover missing features, or bugs, please note them below.
*
* TODO:
* - GetListBoxInfo()
* - LB_GETLISTBOXINFO
* - LBS_NODATA
*/
...
...
@@ -2955,8 +2953,7 @@ LRESULT ListBoxWndProc_common( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam
return
LB_OKAY
;
case
LB_GETLISTBOXINFO
:
FIXME
(
"LB_GETLISTBOXINFO: stub!
\n
"
);
return
0
;
return
descr
->
page_size
;
case
WM_DESTROY
:
return
LISTBOX_Destroy
(
descr
);
...
...
@@ -3149,3 +3146,9 @@ LRESULT ListBoxWndProc_common( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam
return
unicode
?
DefWindowProcW
(
hwnd
,
msg
,
wParam
,
lParam
)
:
DefWindowProcA
(
hwnd
,
msg
,
wParam
,
lParam
);
}
DWORD
WINAPI
GetListBoxInfo
(
HWND
hwnd
)
{
TRACE
(
"%p
\n
"
,
hwnd
);
return
SendMessageW
(
hwnd
,
LB_GETLISTBOXINFO
,
0
,
0
);
}
dlls/user32/tests/listbox.c
View file @
8f7779fc
...
...
@@ -1545,6 +1545,49 @@ static void test_set_count( void )
DestroyWindow
(
parent
);
}
static
DWORD
(
WINAPI
*
pGetListBoxInfo
)(
HWND
);
static
int
lb_getlistboxinfo
;
static
LRESULT
WINAPI
listbox_subclass_proc
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
WNDPROC
oldproc
=
(
WNDPROC
)
GetWindowLongPtrA
(
hwnd
,
GWLP_USERDATA
);
if
(
message
==
LB_GETLISTBOXINFO
)
lb_getlistboxinfo
++
;
return
CallWindowProcA
(
oldproc
,
hwnd
,
message
,
wParam
,
lParam
);
}
static
void
test_GetListBoxInfo
(
void
)
{
HWND
listbox
,
parent
;
WNDPROC
oldproc
;
DWORD
ret
;
pGetListBoxInfo
=
(
void
*
)
GetProcAddress
(
GetModuleHandle
(
"user32"
),
"GetListBoxInfo"
);
if
(
!
pGetListBoxInfo
)
{
win_skip
(
"GetListBoxInfo() not available
\n
"
);
return
;
}
parent
=
create_parent
();
listbox
=
create_listbox
(
WS_CHILD
|
WS_VISIBLE
,
parent
);
oldproc
=
(
WNDPROC
)
SetWindowLongPtrA
(
listbox
,
GWLP_WNDPROC
,
(
LONG_PTR
)
listbox_subclass_proc
);
SetWindowLongPtrA
(
listbox
,
GWLP_USERDATA
,
(
LONG_PTR
)
oldproc
);
lb_getlistboxinfo
=
0
;
ret
=
pGetListBoxInfo
(
listbox
);
ok
(
ret
>
0
,
"got %d
\n
"
,
ret
);
todo_wine
ok
(
lb_getlistboxinfo
==
0
,
"got %d
\n
"
,
lb_getlistboxinfo
);
DestroyWindow
(
listbox
);
DestroyWindow
(
parent
);
}
START_TEST
(
listbox
)
{
const
struct
listbox_test
SS
=
...
...
@@ -1624,4 +1667,5 @@ START_TEST(listbox)
test_listbox_LB_DIR
();
test_listbox_dlgdir
();
test_set_count
();
test_GetListBoxInfo
();
}
dlls/user32/user32.spec
View file @
8f7779fc
...
...
@@ -308,7 +308,7 @@
@ stdcall GetLastActivePopup(long)
@ stdcall GetLastInputInfo(ptr)
@ stdcall GetLayeredWindowAttributes(long ptr ptr ptr)
# @ stub GetListBoxInfo
@ stdcall GetListBoxInfo(long)
@ stdcall GetMenu(long)
@ stdcall GetMenuBarInfo(long long long ptr)
@ stdcall GetMenuCheckMarkDimensions()
...
...
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