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
57b5615f
Commit
57b5615f
authored
Jun 15, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Jun 15, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement GetComboBoxInfo and CB_GETCOMBOBOXINFO.
parent
ac75dcc2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
4 deletions
+25
-4
combo.c
dlls/user/combo.c
+22
-4
winuser.h
include/winuser.h
+3
-0
No files found.
dlls/user/combo.c
View file @
57b5615f
...
...
@@ -1828,6 +1828,24 @@ static void COMBO_MouseMove( LPHEADCOMBO lphc, WPARAM wParam, LPARAM lParam )
}
}
static
LRESULT
COMBO_GetComboBoxInfo
(
LPHEADCOMBO
lphc
,
COMBOBOXINFO
*
pcbi
)
{
if
(
!
pcbi
||
(
pcbi
->
cbSize
<
sizeof
(
COMBOBOXINFO
)))
return
FALSE
;
pcbi
->
rcItem
=
lphc
->
textRect
;
pcbi
->
rcButton
=
lphc
->
buttonRect
;
pcbi
->
stateButton
=
0
;
if
(
lphc
->
wState
&
CBF_DROPPED
)
pcbi
->
stateButton
|=
STATE_SYSTEM_PRESSED
;
if
(
IsRectEmpty
(
&
lphc
->
buttonRect
))
pcbi
->
stateButton
|=
STATE_SYSTEM_INVISIBLE
;
pcbi
->
hwndCombo
=
lphc
->
self
;
pcbi
->
hwndItem
=
lphc
->
hWndEdit
;
pcbi
->
hwndList
=
lphc
->
hWndLBox
;
return
TRUE
;
}
static
char
*
strdupA
(
LPCSTR
str
)
{
char
*
ret
;
...
...
@@ -2281,7 +2299,8 @@ static LRESULT ComboWndProc_common( HWND hwnd, UINT message,
case
CB_GETEXTENDEDUI16
:
case
CB_GETEXTENDEDUI
:
return
(
lphc
->
wState
&
CBF_EUI
)
?
TRUE
:
FALSE
;
case
CB_GETCOMBOBOXINFO
:
return
COMBO_GetComboBoxInfo
(
lphc
,
(
COMBOBOXINFO
*
)
lParam
);
default:
if
(
message
>=
WM_USER
)
WARN
(
"unknown msg WM_USER+%04x wp=%04x lp=%08lx
\n
"
,
...
...
@@ -2319,7 +2338,6 @@ static LRESULT WINAPI ComboWndProcW( HWND hwnd, UINT message, WPARAM wParam, LPA
BOOL
WINAPI
GetComboBoxInfo
(
HWND
hwndCombo
,
/* [in] handle to combo box */
PCOMBOBOXINFO
pcbi
/* [in/out] combo box information */
)
{
FIXME
(
"
\n
"
);
return
FALSE
;
TRACE
(
"(%p, %p)
\n
"
,
hwndCombo
,
pcbi
);
return
SendMessageW
(
hwndCombo
,
CB_GETCOMBOBOXINFO
,
0
,
(
LPARAM
)
pcbi
);
}
include/winuser.h
View file @
57b5615f
...
...
@@ -2344,6 +2344,9 @@ typedef struct tagSCROLLBARINFO
#define CB_GETDROPPEDWIDTH 0x015f
#define CB_SETDROPPEDWIDTH 0x0160
#define CB_INITSTORAGE 0x0161
#define CB_MULTIPLEADDSTRING 0x0163
#define CB_GETCOMBOBOXINFO 0x0164
#define CB_MSGMAX 0x0165
/* Combo box notification codes */
#define CBN_ERRSPACE (-1)
...
...
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