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
312beec8
Commit
312beec8
authored
Oct 31, 2000
by
Guy L. Albertelli
Committed by
Alexandre Julliard
Oct 31, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle special case where itemID = -1 (special focus rect draw).
parent
7e618ef0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletion
+30
-1
comboex.c
dlls/comctl32/comboex.c
+30
-1
No files found.
dlls/comctl32/comboex.c
View file @
312beec8
...
...
@@ -570,11 +570,40 @@ COMBOEX_DrawItem (HWND hwnd, WPARAM wParam, LPARAM lParam)
if
(
!
IsWindowEnabled
(
infoPtr
->
hwndCombo
))
return
0
;
/* MSDN says: */
/* "itemID - Specifies the menu item identifier for a menu */
/* item or the index of the item in a list box or combo box. */
/* For an empty list box or combo box, this member can be -1. */
/* This allows the application to draw only the focus */
/* rectangle at the coordinates specified by the rcItem */
/* member even though there are no items in the control. */
/* This indicates to the user whether the list box or combo */
/* box has the focus. How the bits are set in the itemAction */
/* member determines whether the rectangle is to be drawn as */
/* though the list box or combo box has the focus. */
if
(
dis
->
itemID
==
0xffffffff
)
{
if
(
(
(
dis
->
itemAction
&
ODA_FOCUS
)
&&
(
dis
->
itemState
&
ODS_SELECTED
))
||
(
(
dis
->
itemAction
&
(
ODA_SELECT
|
ODA_DRAWENTIRE
))
&&
(
dis
->
itemState
&
ODS_FOCUS
)
)
)
{
TRACE
(
"drawing item -1 special focus, rect=(%d,%d)-(%d,%d)
\n
"
,
dis
->
rcItem
.
left
,
dis
->
rcItem
.
top
,
dis
->
rcItem
.
right
,
dis
->
rcItem
.
bottom
);
DrawFocusRect
(
dis
->
hDC
,
&
dis
->
rcItem
);
return
0
;
}
else
{
TRACE
(
"NOT drawing item -1 special focus, rect=(%d,%d)-(%d,%d), action=%08x, state=%08x
\n
"
,
dis
->
rcItem
.
left
,
dis
->
rcItem
.
top
,
dis
->
rcItem
.
right
,
dis
->
rcItem
.
bottom
,
dis
->
itemAction
,
dis
->
itemState
);
return
0
;
}
}
item
=
(
CBE_ITEMDATA
*
)
SendMessageA
(
infoPtr
->
hwndCombo
,
CB_GETITEMDATA
,
(
WPARAM
)
dis
->
itemID
,
0
);
if
(
item
==
(
CBE_ITEMDATA
*
)
CB_ERR
)
{
TRAC
E
(
"invalid item for id %d
\n
"
,
dis
->
itemID
);
FIXM
E
(
"invalid item for id %d
\n
"
,
dis
->
itemID
);
return
0
;
}
if
(
!
TRACE_ON
(
message
))
{
...
...
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