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
f37130c8
Commit
f37130c8
authored
Oct 08, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Use user32 control names from public header constants instead of…
comctl32: Use user32 control names from public header constants instead of defining over and over again.
parent
c8f35a13
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
18 deletions
+9
-18
comboex.c
dlls/comctl32/comboex.c
+2
-4
ipaddress.c
dlls/comctl32/ipaddress.c
+1
-2
listview.c
dlls/comctl32/listview.c
+2
-3
monthcal.c
dlls/comctl32/monthcal.c
+1
-3
treeview.c
dlls/comctl32/treeview.c
+1
-2
updown.c
dlls/comctl32/updown.c
+2
-4
No files found.
dlls/comctl32/comboex.c
View file @
f37130c8
...
@@ -968,8 +968,6 @@ static INT COMBOEX_SetItemHeight (COMBOEX_INFO const *infoPtr, INT index, UINT h
...
@@ -968,8 +968,6 @@ static INT COMBOEX_SetItemHeight (COMBOEX_INFO const *infoPtr, INT index, UINT h
static
LRESULT
COMBOEX_Create
(
HWND
hwnd
,
CREATESTRUCTA
const
*
cs
)
static
LRESULT
COMBOEX_Create
(
HWND
hwnd
,
CREATESTRUCTA
const
*
cs
)
{
{
static
const
WCHAR
COMBOBOX
[]
=
{
'C'
,
'o'
,
'm'
,
'b'
,
'o'
,
'B'
,
'o'
,
'x'
,
0
};
static
const
WCHAR
EDIT
[]
=
{
'E'
,
'D'
,
'I'
,
'T'
,
0
};
static
const
WCHAR
NIL
[]
=
{
0
};
static
const
WCHAR
NIL
[]
=
{
0
};
COMBOEX_INFO
*
infoPtr
;
COMBOEX_INFO
*
infoPtr
;
LOGFONTW
mylogfont
;
LOGFONTW
mylogfont
;
...
@@ -1011,7 +1009,7 @@ static LRESULT COMBOEX_Create (HWND hwnd, CREATESTRUCTA const *cs)
...
@@ -1011,7 +1009,7 @@ static LRESULT COMBOEX_Create (HWND hwnd, CREATESTRUCTA const *cs)
/* We also need to place the edit control at the proper location */
/* We also need to place the edit control at the proper location */
/* (allow space for the icons). */
/* (allow space for the icons). */
infoPtr
->
hwndCombo
=
CreateWindowW
(
COMBOBOX
,
NIL
,
infoPtr
->
hwndCombo
=
CreateWindowW
(
WC_COMBOBOXW
,
NIL
,
/* following line added to match native */
/* following line added to match native */
WS_CLIPSIBLINGS
|
WS_CLIPCHILDREN
|
WS_VSCROLL
|
WS_CLIPSIBLINGS
|
WS_CLIPCHILDREN
|
WS_VSCROLL
|
CBS_NOINTEGRALHEIGHT
|
CBS_DROPDOWNLIST
|
CBS_NOINTEGRALHEIGHT
|
CBS_DROPDOWNLIST
|
...
@@ -1045,7 +1043,7 @@ static LRESULT COMBOEX_Create (HWND hwnd, CREATESTRUCTA const *cs)
...
@@ -1045,7 +1043,7 @@ static LRESULT COMBOEX_Create (HWND hwnd, CREATESTRUCTA const *cs)
* It is created only for CBS_DROPDOWN style
* It is created only for CBS_DROPDOWN style
*/
*/
if
((
cs
->
style
&
CBS_DROPDOWNLIST
)
==
CBS_DROPDOWN
)
{
if
((
cs
->
style
&
CBS_DROPDOWNLIST
)
==
CBS_DROPDOWN
)
{
infoPtr
->
hwndEdit
=
CreateWindowExW
(
0
,
EDIT
,
NIL
,
infoPtr
->
hwndEdit
=
CreateWindowExW
(
0
,
WC_EDITW
,
NIL
,
WS_CHILD
|
WS_VISIBLE
|
WS_CLIPSIBLINGS
|
ES_AUTOHSCROLL
,
WS_CHILD
|
WS_VISIBLE
|
WS_CLIPSIBLINGS
|
ES_AUTOHSCROLL
,
0
,
0
,
0
,
0
,
/* will set later */
0
,
0
,
0
,
0
,
/* will set later */
infoPtr
->
hwndCombo
,
infoPtr
->
hwndCombo
,
...
...
dlls/comctl32/ipaddress.c
View file @
f37130c8
...
@@ -189,7 +189,6 @@ static LRESULT IPADDRESS_Draw (const IPADDRESS_INFO *infoPtr, HDC hdc)
...
@@ -189,7 +189,6 @@ static LRESULT IPADDRESS_Draw (const IPADDRESS_INFO *infoPtr, HDC hdc)
static
LRESULT
IPADDRESS_Create
(
HWND
hwnd
,
const
CREATESTRUCTA
*
lpCreate
)
static
LRESULT
IPADDRESS_Create
(
HWND
hwnd
,
const
CREATESTRUCTA
*
lpCreate
)
{
{
static
const
WCHAR
EDIT
[]
=
{
'E'
,
'd'
,
'i'
,
't'
,
0
};
IPADDRESS_INFO
*
infoPtr
;
IPADDRESS_INFO
*
infoPtr
;
RECT
rcClient
,
edit
;
RECT
rcClient
,
edit
;
int
i
,
fieldsize
;
int
i
,
fieldsize
;
...
@@ -230,7 +229,7 @@ static LRESULT IPADDRESS_Create (HWND hwnd, const CREATESTRUCTA *lpCreate)
...
@@ -230,7 +229,7 @@ static LRESULT IPADDRESS_Create (HWND hwnd, const CREATESTRUCTA *lpCreate)
edit
.
left
=
rcClient
.
left
+
i
*
fieldsize
+
6
;
edit
.
left
=
rcClient
.
left
+
i
*
fieldsize
+
6
;
edit
.
right
=
rcClient
.
left
+
(
i
+
1
)
*
fieldsize
-
2
;
edit
.
right
=
rcClient
.
left
+
(
i
+
1
)
*
fieldsize
-
2
;
part
->
EditHwnd
=
part
->
EditHwnd
=
CreateWindowW
(
EDIT
,
NULL
,
WS_CHILD
|
WS_VISIBLE
|
ES_CENTER
,
CreateWindowW
(
WC_EDITW
,
NULL
,
WS_CHILD
|
WS_VISIBLE
|
ES_CENTER
,
edit
.
left
,
edit
.
top
,
edit
.
right
-
edit
.
left
,
edit
.
left
,
edit
.
top
,
edit
.
right
-
edit
.
left
,
edit
.
bottom
-
edit
.
top
,
hwnd
,
(
HMENU
)
1
,
edit
.
bottom
-
edit
.
top
,
hwnd
,
(
HMENU
)
1
,
(
HINSTANCE
)
GetWindowLongPtrW
(
hwnd
,
GWLP_HINSTANCE
),
NULL
);
(
HINSTANCE
)
GetWindowLongPtrW
(
hwnd
,
GWLP_HINSTANCE
),
NULL
);
...
...
dlls/comctl32/listview.c
View file @
f37130c8
...
@@ -11309,7 +11309,6 @@ static LRESULT CALLBACK EditLblWndProcA(HWND hwnd, UINT uMsg, WPARAM wParam, LPA
...
@@ -11309,7 +11309,6 @@ static LRESULT CALLBACK EditLblWndProcA(HWND hwnd, UINT uMsg, WPARAM wParam, LPA
*/
*/
static
HWND
CreateEditLabelT
(
LISTVIEW_INFO
*
infoPtr
,
LPCWSTR
text
,
DWORD
style
,
BOOL
isW
)
static
HWND
CreateEditLabelT
(
LISTVIEW_INFO
*
infoPtr
,
LPCWSTR
text
,
DWORD
style
,
BOOL
isW
)
{
{
WCHAR
editName
[
5
]
=
{
'E'
,
'd'
,
'i'
,
't'
,
'\0'
};
HWND
hedit
;
HWND
hedit
;
HINSTANCE
hinst
=
(
HINSTANCE
)
GetWindowLongPtrW
(
infoPtr
->
hwndSelf
,
GWLP_HINSTANCE
);
HINSTANCE
hinst
=
(
HINSTANCE
)
GetWindowLongPtrW
(
infoPtr
->
hwndSelf
,
GWLP_HINSTANCE
);
...
@@ -11319,9 +11318,9 @@ static HWND CreateEditLabelT(LISTVIEW_INFO *infoPtr, LPCWSTR text, DWORD style,
...
@@ -11319,9 +11318,9 @@ static HWND CreateEditLabelT(LISTVIEW_INFO *infoPtr, LPCWSTR text, DWORD style,
/* Window will be resized and positioned after LVN_BEGINLABELEDIT */
/* Window will be resized and positioned after LVN_BEGINLABELEDIT */
if
(
isW
)
if
(
isW
)
hedit
=
CreateWindowW
(
editName
,
text
,
style
,
0
,
0
,
0
,
0
,
infoPtr
->
hwndSelf
,
0
,
hinst
,
0
);
hedit
=
CreateWindowW
(
WC_EDITW
,
text
,
style
,
0
,
0
,
0
,
0
,
infoPtr
->
hwndSelf
,
0
,
hinst
,
0
);
else
else
hedit
=
CreateWindowA
(
"Edit"
,
(
LPCSTR
)
text
,
style
,
0
,
0
,
0
,
0
,
infoPtr
->
hwndSelf
,
0
,
hinst
,
0
);
hedit
=
CreateWindowA
(
WC_EDITA
,
(
LPCSTR
)
text
,
style
,
0
,
0
,
0
,
0
,
infoPtr
->
hwndSelf
,
0
,
hinst
,
0
);
if
(
!
hedit
)
return
0
;
if
(
!
hedit
)
return
0
;
...
...
dlls/comctl32/monthcal.c
View file @
f37130c8
...
@@ -1681,10 +1681,8 @@ MONTHCAL_RButtonUp(MONTHCAL_INFO *infoPtr, LPARAM lParam)
...
@@ -1681,10 +1681,8 @@ MONTHCAL_RButtonUp(MONTHCAL_INFO *infoPtr, LPARAM lParam)
/* creates updown control and edit box */
/* creates updown control and edit box */
static
void
MONTHCAL_EditYear
(
MONTHCAL_INFO
*
infoPtr
)
static
void
MONTHCAL_EditYear
(
MONTHCAL_INFO
*
infoPtr
)
{
{
static
const
WCHAR
EditW
[]
=
{
'E'
,
'D'
,
'I'
,
'T'
,
0
};
infoPtr
->
hWndYearEdit
=
infoPtr
->
hWndYearEdit
=
CreateWindowExW
(
0
,
Edit
W
,
0
,
WS_VISIBLE
|
WS_CHILD
|
ES_READONLY
,
CreateWindowExW
(
0
,
WC_EDIT
W
,
0
,
WS_VISIBLE
|
WS_CHILD
|
ES_READONLY
,
infoPtr
->
titleyear
.
left
+
3
,
infoPtr
->
titlebtnnext
.
top
,
infoPtr
->
titleyear
.
left
+
3
,
infoPtr
->
titlebtnnext
.
top
,
infoPtr
->
titleyear
.
right
-
infoPtr
->
titleyear
.
left
+
4
,
infoPtr
->
titleyear
.
right
-
infoPtr
->
titleyear
.
left
+
4
,
infoPtr
->
textHeight
,
infoPtr
->
hwndSelf
,
infoPtr
->
textHeight
,
infoPtr
->
hwndSelf
,
...
...
dlls/comctl32/treeview.c
View file @
f37130c8
...
@@ -3674,7 +3674,6 @@ TREEVIEW_EditLabel(TREEVIEW_INFO *infoPtr, HTREEITEM hItem)
...
@@ -3674,7 +3674,6 @@ TREEVIEW_EditLabel(TREEVIEW_INFO *infoPtr, HTREEITEM hItem)
HDC
hdc
;
HDC
hdc
;
HFONT
hOldFont
=
0
;
HFONT
hOldFont
=
0
;
TEXTMETRICW
textMetric
;
TEXTMETRICW
textMetric
;
static
const
WCHAR
EditW
[]
=
{
'E'
,
'd'
,
'i'
,
't'
,
0
};
TRACE
(
"%p %p
\n
"
,
hwnd
,
hItem
);
TRACE
(
"%p %p
\n
"
,
hwnd
,
hItem
);
if
(
!
TREEVIEW_ValidItem
(
infoPtr
,
hItem
))
if
(
!
TREEVIEW_ValidItem
(
infoPtr
,
hItem
))
...
@@ -3721,7 +3720,7 @@ TREEVIEW_EditLabel(TREEVIEW_INFO *infoPtr, HTREEITEM hItem)
...
@@ -3721,7 +3720,7 @@ TREEVIEW_EditLabel(TREEVIEW_INFO *infoPtr, HTREEITEM hItem)
infoPtr
->
editItem
=
hItem
;
infoPtr
->
editItem
=
hItem
;
hwndEdit
=
CreateWindowExW
(
WS_EX_LEFT
,
hwndEdit
=
CreateWindowExW
(
WS_EX_LEFT
,
Edit
W
,
WC_EDIT
W
,
0
,
0
,
WS_CHILD
|
WS_BORDER
|
ES_AUTOHSCROLL
|
WS_CHILD
|
WS_BORDER
|
ES_AUTOHSCROLL
|
WS_CLIPSIBLINGS
|
ES_WANTRETURN
|
WS_CLIPSIBLINGS
|
ES_WANTRETURN
|
...
...
dlls/comctl32/updown.c
View file @
f37130c8
...
@@ -557,8 +557,6 @@ UPDOWN_Buddy_SubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
...
@@ -557,8 +557,6 @@ UPDOWN_Buddy_SubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
*/
*/
static
HWND
UPDOWN_SetBuddy
(
UPDOWN_INFO
*
infoPtr
,
HWND
bud
)
static
HWND
UPDOWN_SetBuddy
(
UPDOWN_INFO
*
infoPtr
,
HWND
bud
)
{
{
static
const
WCHAR
editW
[]
=
{
'E'
,
'd'
,
'i'
,
't'
,
0
};
static
const
WCHAR
listboxW
[]
=
{
'L'
,
'i'
,
's'
,
't'
,
'b'
,
'o'
,
'x'
,
0
};
RECT
budRect
;
/* new coord for the buddy */
RECT
budRect
;
/* new coord for the buddy */
int
x
,
width
;
/* new x position and width for the up-down */
int
x
,
width
;
/* new x position and width for the up-down */
WNDPROC
baseWndProc
;
WNDPROC
baseWndProc
;
...
@@ -586,9 +584,9 @@ static HWND UPDOWN_SetBuddy (UPDOWN_INFO* infoPtr, HWND bud)
...
@@ -586,9 +584,9 @@ static HWND UPDOWN_SetBuddy (UPDOWN_INFO* infoPtr, HWND bud)
/* Store buddy window class type */
/* Store buddy window class type */
infoPtr
->
BuddyType
=
BUDDY_TYPE_UNKNOWN
;
infoPtr
->
BuddyType
=
BUDDY_TYPE_UNKNOWN
;
if
(
GetClassNameW
(
bud
,
buddyClass
,
COUNT_OF
(
buddyClass
)))
{
if
(
GetClassNameW
(
bud
,
buddyClass
,
COUNT_OF
(
buddyClass
)))
{
if
(
lstrcmpiW
(
buddyClass
,
edit
W
)
==
0
)
if
(
lstrcmpiW
(
buddyClass
,
WC_EDIT
W
)
==
0
)
infoPtr
->
BuddyType
=
BUDDY_TYPE_EDIT
;
infoPtr
->
BuddyType
=
BUDDY_TYPE_EDIT
;
else
if
(
lstrcmpiW
(
buddyClass
,
listbox
W
)
==
0
)
else
if
(
lstrcmpiW
(
buddyClass
,
WC_LISTBOX
W
)
==
0
)
infoPtr
->
BuddyType
=
BUDDY_TYPE_LISTBOX
;
infoPtr
->
BuddyType
=
BUDDY_TYPE_LISTBOX
;
}
}
...
...
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