Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1207e84a
Commit
1207e84a
authored
Oct 06, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Oct 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Return the correct value for CB_GETLBTEXTLEN.
parent
4d41a2b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
2 deletions
+32
-2
comboex.c
dlls/comctl32/comboex.c
+32
-2
No files found.
dlls/comctl32/comboex.c
View file @
1207e84a
...
...
@@ -501,6 +501,32 @@ static inline BOOL COMBOEX_HasEdit(COMBOEX_INFO *infoPtr)
/* *** CBEM_xxx message support *** */
static
UINT
COMBOEX_GetListboxText
(
COMBOEX_INFO
*
infoPtr
,
int
n
,
LPWSTR
buf
)
{
CBE_ITEMDATA
*
item
;
LPCWSTR
str
;
item
=
COMBOEX_FindItem
(
infoPtr
,
n
);
if
(
!
item
)
return
0
;
str
=
COMBOEX_GetText
(
infoPtr
,
item
);
if
(
infoPtr
->
unicode
)
{
if
(
buf
)
lstrcpyW
(
buf
,
str
);
return
lstrlenW
(
str
);
}
else
{
UINT
r
;
r
=
WideCharToMultiByte
(
CP_ACP
,
0
,
str
,
-
1
,
(
LPSTR
)
buf
,
0x40000000
,
NULL
,
NULL
);
if
(
r
)
r
--
;
return
r
;
}
}
static
INT
COMBOEX_DeleteItem
(
COMBOEX_INFO
*
infoPtr
,
INT
index
)
{
...
...
@@ -2193,11 +2219,15 @@ COMBOEX_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
WM_GETTEXT
:
return
SendMessageW
(
infoPtr
->
hwndEdit
,
uMsg
,
wParam
,
lParam
);
case
CB_GETLBTEXT
:
return
COMBOEX_GetListboxText
(
infoPtr
,
wParam
,
(
LPWSTR
)
lParam
);
case
CB_GETLBTEXTLEN
:
return
COMBOEX_GetListboxText
(
infoPtr
,
wParam
,
NULL
);
/* Combo messages we are not sure if we need to process or just forward */
case
CB_GETDROPPEDCONTROLRECT
:
case
CB_GETITEMHEIGHT
:
case
CB_GETLBTEXT
:
case
CB_GETLBTEXTLEN
:
case
CB_GETEXTENDEDUI
:
case
CB_LIMITTEXT
:
case
CB_RESETCONTENT
:
...
...
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