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
05a9678d
Commit
05a9678d
authored
Nov 16, 2007
by
Thomas Weidenmueller
Committed by
Alexandre Julliard
Nov 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fix handling of CB_RESETCONTENT in ComboBoxEx.
parent
52da1b16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
13 deletions
+26
-13
comboex.c
dlls/comctl32/comboex.c
+26
-13
No files found.
dlls/comctl32/comboex.c
View file @
05a9678d
...
...
@@ -1578,6 +1578,27 @@ static LRESULT COMBOEX_DrawItem (COMBOEX_INFO *infoPtr, DRAWITEMSTRUCT const *di
}
static
void
COMBOEX_ResetContent
(
COMBOEX_INFO
*
infoPtr
)
{
if
(
infoPtr
->
items
)
{
CBE_ITEMDATA
*
item
,
*
next
;
item
=
infoPtr
->
items
;
while
(
item
)
{
next
=
item
->
next
;
COMBOEX_FreeText
(
item
);
Free
(
item
);
item
=
next
;
}
infoPtr
->
items
=
0
;
}
infoPtr
->
selected
=
-
1
;
infoPtr
->
nb_items
=
0
;
}
static
LRESULT
COMBOEX_Destroy
(
COMBOEX_INFO
*
infoPtr
)
{
if
(
infoPtr
->
hwndCombo
)
...
...
@@ -1586,18 +1607,7 @@ static LRESULT COMBOEX_Destroy (COMBOEX_INFO *infoPtr)
Free
(
infoPtr
->
edit
);
infoPtr
->
edit
=
0
;
if
(
infoPtr
->
items
)
{
CBE_ITEMDATA
*
item
,
*
next
;
item
=
infoPtr
->
items
;
while
(
item
)
{
next
=
item
->
next
;
COMBOEX_FreeText
(
item
);
Free
(
item
);
item
=
next
;
}
infoPtr
->
items
=
0
;
}
COMBOEX_ResetContent
(
infoPtr
);
if
(
infoPtr
->
defaultFont
)
DeleteObject
(
infoPtr
->
defaultFont
);
...
...
@@ -2234,12 +2244,15 @@ COMBOEX_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
CB_GETLBTEXTLEN
:
return
COMBOEX_GetListboxText
(
infoPtr
,
wParam
,
NULL
);
case
CB_RESETCONTENT
:
COMBOEX_ResetContent
(
infoPtr
);
/* fall through */
/* Combo messages we are not sure if we need to process or just forward */
case
CB_GETDROPPEDCONTROLRECT
:
case
CB_GETITEMHEIGHT
:
case
CB_GETEXTENDEDUI
:
case
CB_LIMITTEXT
:
case
CB_RESETCONTENT
:
case
CB_SELECTSTRING
:
/* Combo messages OK to just forward to the regular COMBO */
...
...
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