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
f5d4244f
Commit
f5d4244f
authored
May 18, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sheri Steeves
The edit is now detected correctly if the parent is a combo box. It wasn't working when the combobox was superclassed.
parent
16e9237a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
edit.c
controls/edit.c
+19
-2
No files found.
controls/edit.c
View file @
f5d4244f
...
...
@@ -3335,8 +3335,25 @@ static BOOL EDIT_CheckCombo(WND *wnd, UINT msg, INT key, DWORD key_data)
{
HWND
hLBox
;
if
(
WIDGETS_IsControl
(
wnd
->
parent
,
BIC32_COMBO
)
&&
(
hLBox
=
COMBO_GetLBWindow
(
wnd
->
parent
)))
{
/********************************************************************
* This if statement used to check to see if the parent of the
* edit control was a 'combobox' by comparing the ATOM of the parent
* to a table of internal window control ATOMs. However, this check
* would fail if the parent was a superclassed combobox (Although
* having the same basic functionality of a combobox, it has a
* different name and ATOM, thus defeating this check.)
*
* The safe way to determine if the parent is a combobox is to send it
* a message only a combo box would understand. I send it a message
* CB_GETCOUNT, if I get 0 then the parent is not a combobox -
* return FALSE. If I get > 0, then the parent IS a combobox
* (or sub/super classed derrivative thereof)
********************************************************************/
if
(
((
SendMessageA
(
wnd
->
parent
->
hwndSelf
,
CB_GETCOUNT
,
0
,
0
))
>
0
)
&&
(
hLBox
=
COMBO_GetLBWindow
(
wnd
->
parent
))
)
{
HWND
hCombo
=
wnd
->
parent
->
hwndSelf
;
BOOL
bUIFlip
=
TRUE
;
...
...
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