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
564d5804
Commit
564d5804
authored
Nov 16, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Use wide-char string literals.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
621ed4b6
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
38 additions
and
70 deletions
+38
-70
combo.c
dlls/comctl32/combo.c
+6
-16
comboex.c
dlls/comctl32/comboex.c
+6
-10
commctrl.c
dlls/comctl32/commctrl.c
+2
-4
datetime.c
dlls/comctl32/datetime.c
+1
-1
edit.c
dlls/comctl32/edit.c
+3
-6
listbox.c
dlls/comctl32/listbox.c
+4
-8
listview.c
dlls/comctl32/listview.c
+1
-1
progress.c
dlls/comctl32/progress.c
+1
-1
status.c
dlls/comctl32/status.c
+1
-1
taskdialog.c
dlls/comctl32/taskdialog.c
+2
-3
theme_dialog.c
dlls/comctl32/theme_dialog.c
+1
-1
theming.c
dlls/comctl32/theming.c
+3
-7
toolbar.c
dlls/comctl32/toolbar.c
+1
-1
trackbar.c
dlls/comctl32/trackbar.c
+2
-3
treeview.c
dlls/comctl32/treeview.c
+1
-1
updown.c
dlls/comctl32/updown.c
+3
-6
No files found.
dlls/comctl32/combo.c
View file @
564d5804
...
@@ -400,9 +400,6 @@ static void CBGetDroppedControlRect( LPHEADCOMBO lphc, LPRECT lpRect)
...
@@ -400,9 +400,6 @@ static void CBGetDroppedControlRect( LPHEADCOMBO lphc, LPRECT lpRect)
*/
*/
static
LRESULT
COMBO_Create
(
HWND
hwnd
,
LPHEADCOMBO
lphc
,
HWND
hwndParent
,
LONG
style
)
static
LRESULT
COMBO_Create
(
HWND
hwnd
,
LPHEADCOMBO
lphc
,
HWND
hwndParent
,
LONG
style
)
{
{
static
const
WCHAR
clbName
[]
=
{
'C'
,
'o'
,
'm'
,
'b'
,
'o'
,
'L'
,
'B'
,
'o'
,
'x'
,
0
};
static
const
WCHAR
editName
[]
=
{
'E'
,
'd'
,
'i'
,
't'
,
0
};
OpenThemeData
(
hwnd
,
WC_COMBOBOXW
);
OpenThemeData
(
hwnd
,
WC_COMBOBOXW
);
if
(
!
CB_GETTYPE
(
lphc
)
)
lphc
->
dwStyle
|=
CBS_SIMPLE
;
if
(
!
CB_GETTYPE
(
lphc
)
)
lphc
->
dwStyle
|=
CBS_SIMPLE
;
if
(
CB_GETTYPE
(
lphc
)
!=
CBS_DROPDOWNLIST
)
lphc
->
wState
|=
CBF_EDIT
;
if
(
CB_GETTYPE
(
lphc
)
!=
CBS_DROPDOWNLIST
)
lphc
->
wState
|=
CBF_EDIT
;
...
@@ -488,7 +485,7 @@ static LRESULT COMBO_Create( HWND hwnd, LPHEADCOMBO lphc, HWND hwndParent, LONG
...
@@ -488,7 +485,7 @@ static LRESULT COMBO_Create( HWND hwnd, LPHEADCOMBO lphc, HWND hwndParent, LONG
lbeExStyle
|=
(
WS_EX_TOPMOST
|
WS_EX_TOOLWINDOW
);
lbeExStyle
|=
(
WS_EX_TOPMOST
|
WS_EX_TOOLWINDOW
);
}
}
lphc
->
hWndLBox
=
CreateWindowExW
(
lbeExStyle
,
clbName
,
NULL
,
lbeStyle
,
lphc
->
hWndLBox
=
CreateWindowExW
(
lbeExStyle
,
L"ComboLBox"
,
NULL
,
lbeStyle
,
lphc
->
droppedRect
.
left
,
lphc
->
droppedRect
.
top
,
lphc
->
droppedRect
.
right
-
lphc
->
droppedRect
.
left
,
lphc
->
droppedRect
.
left
,
lphc
->
droppedRect
.
top
,
lphc
->
droppedRect
.
right
-
lphc
->
droppedRect
.
left
,
lphc
->
droppedRect
.
bottom
-
lphc
->
droppedRect
.
top
,
hwnd
,
(
HMENU
)
ID_CB_LISTBOX
,
lphc
->
droppedRect
.
bottom
-
lphc
->
droppedRect
.
top
,
hwnd
,
(
HMENU
)
ID_CB_LISTBOX
,
(
HINSTANCE
)
GetWindowLongPtrW
(
hwnd
,
GWLP_HINSTANCE
),
lphc
);
(
HINSTANCE
)
GetWindowLongPtrW
(
hwnd
,
GWLP_HINSTANCE
),
lphc
);
...
@@ -510,7 +507,7 @@ static LRESULT COMBO_Create( HWND hwnd, LPHEADCOMBO lphc, HWND hwndParent, LONG
...
@@ -510,7 +507,7 @@ static LRESULT COMBO_Create( HWND hwnd, LPHEADCOMBO lphc, HWND hwndParent, LONG
if
(
!
IsWindowEnabled
(
hwnd
))
lbeStyle
|=
WS_DISABLED
;
if
(
!
IsWindowEnabled
(
hwnd
))
lbeStyle
|=
WS_DISABLED
;
lphc
->
hWndEdit
=
CreateWindowExW
(
0
,
editName
,
NULL
,
lbeStyle
,
lphc
->
hWndEdit
=
CreateWindowExW
(
0
,
WC_EDITW
,
NULL
,
lbeStyle
,
lphc
->
textRect
.
left
,
lphc
->
textRect
.
top
,
lphc
->
textRect
.
left
,
lphc
->
textRect
.
top
,
lphc
->
textRect
.
right
-
lphc
->
textRect
.
left
,
lphc
->
textRect
.
right
-
lphc
->
textRect
.
left
,
lphc
->
textRect
.
bottom
-
lphc
->
textRect
.
top
,
lphc
->
textRect
.
bottom
-
lphc
->
textRect
.
top
,
...
@@ -648,8 +645,7 @@ static void CBPaintText(HEADCOMBO *lphc, HDC hdc_paint)
...
@@ -648,8 +645,7 @@ static void CBPaintText(HEADCOMBO *lphc, HDC hdc_paint)
if
(
lphc
->
wState
&
CBF_EDIT
)
if
(
lphc
->
wState
&
CBF_EDIT
)
{
{
static
const
WCHAR
empty_stringW
[]
=
{
0
};
if
(
CB_HASSTRINGS
(
lphc
)
)
SetWindowTextW
(
lphc
->
hWndEdit
,
pText
?
pText
:
L""
);
if
(
CB_HASSTRINGS
(
lphc
)
)
SetWindowTextW
(
lphc
->
hWndEdit
,
pText
?
pText
:
empty_stringW
);
if
(
lphc
->
wState
&
CBF_FOCUSED
)
if
(
lphc
->
wState
&
CBF_FOCUSED
)
SendMessageW
(
lphc
->
hWndEdit
,
EM_SETSEL
,
0
,
MAXLONG
);
SendMessageW
(
lphc
->
hWndEdit
,
EM_SETSEL
,
0
,
MAXLONG
);
}
}
...
@@ -705,8 +701,6 @@ static void CBPaintText(HEADCOMBO *lphc, HDC hdc_paint)
...
@@ -705,8 +701,6 @@ static void CBPaintText(HEADCOMBO *lphc, HDC hdc_paint)
}
}
else
else
{
{
static
const
WCHAR
empty_stringW
[]
=
{
0
};
if
(
(
lphc
->
wState
&
CBF_FOCUSED
)
&&
if
(
(
lphc
->
wState
&
CBF_FOCUSED
)
&&
!
(
lphc
->
wState
&
CBF_DROPPED
)
)
{
!
(
lphc
->
wState
&
CBF_DROPPED
)
)
{
...
@@ -721,7 +715,7 @@ static void CBPaintText(HEADCOMBO *lphc, HDC hdc_paint)
...
@@ -721,7 +715,7 @@ static void CBPaintText(HEADCOMBO *lphc, HDC hdc_paint)
rectEdit
.
top
+
1
,
rectEdit
.
top
+
1
,
ETO_OPAQUE
|
ETO_CLIPPED
,
ETO_OPAQUE
|
ETO_CLIPPED
,
&
rectEdit
,
&
rectEdit
,
pText
?
pText
:
empty_stringW
,
size
,
NULL
);
pText
?
pText
:
L""
,
size
,
NULL
);
if
(
lphc
->
wState
&
CBF_FOCUSED
&&
!
(
lphc
->
wState
&
CBF_DROPPED
))
if
(
lphc
->
wState
&
CBF_FOCUSED
&&
!
(
lphc
->
wState
&
CBF_DROPPED
))
DrawFocusRect
(
hdc
,
&
rectEdit
);
DrawFocusRect
(
hdc
,
&
rectEdit
);
...
@@ -886,7 +880,6 @@ static void CBUpdateEdit( LPHEADCOMBO lphc , INT index )
...
@@ -886,7 +880,6 @@ static void CBUpdateEdit( LPHEADCOMBO lphc , INT index )
{
{
INT
length
;
INT
length
;
LPWSTR
pText
=
NULL
;
LPWSTR
pText
=
NULL
;
static
const
WCHAR
empty_stringW
[]
=
{
0
};
TRACE
(
"
\t
%i
\n
"
,
index
);
TRACE
(
"
\t
%i
\n
"
,
index
);
...
@@ -903,7 +896,7 @@ static void CBUpdateEdit( LPHEADCOMBO lphc , INT index )
...
@@ -903,7 +896,7 @@ static void CBUpdateEdit( LPHEADCOMBO lphc , INT index )
if
(
CB_HASSTRINGS
(
lphc
)
)
if
(
CB_HASSTRINGS
(
lphc
)
)
{
{
lphc
->
wState
|=
(
CBF_NOEDITNOTIFY
|
CBF_NOLBSELECT
);
lphc
->
wState
|=
(
CBF_NOEDITNOTIFY
|
CBF_NOLBSELECT
);
SendMessageW
(
lphc
->
hWndEdit
,
WM_SETTEXT
,
0
,
pText
?
(
LPARAM
)
pText
:
(
LPARAM
)
empty_stringW
);
SendMessageW
(
lphc
->
hWndEdit
,
WM_SETTEXT
,
0
,
pText
?
(
LPARAM
)
pText
:
(
LPARAM
)
L""
);
lphc
->
wState
&=
~
(
CBF_NOEDITNOTIFY
|
CBF_NOLBSELECT
);
lphc
->
wState
&=
~
(
CBF_NOEDITNOTIFY
|
CBF_NOLBSELECT
);
}
}
...
@@ -1959,10 +1952,7 @@ static LRESULT CALLBACK COMBO_WindowProc( HWND hwnd, UINT message, WPARAM wParam
...
@@ -1959,10 +1952,7 @@ static LRESULT CALLBACK COMBO_WindowProc( HWND hwnd, UINT message, WPARAM wParam
SendMessageW
(
lphc
->
hWndLBox
,
LB_RESETCONTENT
,
0
,
0
);
SendMessageW
(
lphc
->
hWndLBox
,
LB_RESETCONTENT
,
0
,
0
);
if
((
lphc
->
wState
&
CBF_EDIT
)
&&
CB_HASSTRINGS
(
lphc
))
if
((
lphc
->
wState
&
CBF_EDIT
)
&&
CB_HASSTRINGS
(
lphc
))
{
SendMessageW
(
lphc
->
hWndEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
L""
);
static
const
WCHAR
empty_stringW
[]
=
{
0
};
SendMessageW
(
lphc
->
hWndEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
empty_stringW
);
}
else
else
InvalidateRect
(
lphc
->
self
,
NULL
,
TRUE
);
InvalidateRect
(
lphc
->
self
,
NULL
,
TRUE
);
return
TRUE
;
return
TRUE
;
...
...
dlls/comctl32/comboex.c
View file @
564d5804
...
@@ -327,14 +327,13 @@ static LPCWSTR COMBOEX_GetText(const COMBOEX_INFO *infoPtr, CBE_ITEMDATA *item)
...
@@ -327,14 +327,13 @@ static LPCWSTR COMBOEX_GetText(const COMBOEX_INFO *infoPtr, CBE_ITEMDATA *item)
static
void
COMBOEX_GetComboFontSize
(
const
COMBOEX_INFO
*
infoPtr
,
SIZE
*
size
)
static
void
COMBOEX_GetComboFontSize
(
const
COMBOEX_INFO
*
infoPtr
,
SIZE
*
size
)
{
{
static
const
WCHAR
strA
[]
=
{
'A'
,
0
};
HFONT
nfont
,
ofont
;
HFONT
nfont
,
ofont
;
HDC
mydc
;
HDC
mydc
;
mydc
=
GetDC
(
0
);
/* why the entire screen???? */
mydc
=
GetDC
(
0
);
/* why the entire screen???? */
nfont
=
(
HFONT
)
SendMessageW
(
infoPtr
->
hwndCombo
,
WM_GETFONT
,
0
,
0
);
nfont
=
(
HFONT
)
SendMessageW
(
infoPtr
->
hwndCombo
,
WM_GETFONT
,
0
,
0
);
ofont
=
SelectObject
(
mydc
,
nfont
);
ofont
=
SelectObject
(
mydc
,
nfont
);
GetTextExtentPointW
(
mydc
,
strA
,
1
,
size
);
GetTextExtentPointW
(
mydc
,
L"A"
,
1
,
size
);
SelectObject
(
mydc
,
ofont
);
SelectObject
(
mydc
,
ofont
);
ReleaseDC
(
0
,
mydc
);
ReleaseDC
(
0
,
mydc
);
TRACE
(
"selected font hwnd=%p, height=%d
\n
"
,
nfont
,
size
->
cy
);
TRACE
(
"selected font hwnd=%p, height=%d
\n
"
,
nfont
,
size
->
cy
);
...
@@ -948,7 +947,6 @@ static INT COMBOEX_SetItemHeight (COMBOEX_INFO const *infoPtr, INT index, UINT h
...
@@ -948,7 +947,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
NIL
[]
=
{
0
};
COMBOEX_INFO
*
infoPtr
;
COMBOEX_INFO
*
infoPtr
;
LOGFONTW
mylogfont
;
LOGFONTW
mylogfont
;
RECT
win_rect
;
RECT
win_rect
;
...
@@ -991,7 +989,7 @@ static LRESULT COMBOEX_Create (HWND hwnd, CREATESTRUCTA const *cs)
...
@@ -991,7 +989,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
(
WC_COMBOBOXW
,
NIL
,
infoPtr
->
hwndCombo
=
CreateWindowW
(
WC_COMBOBOXW
,
L""
,
WS_CLIPSIBLINGS
|
WS_CLIPCHILDREN
|
WS_VSCROLL
|
WS_CLIPSIBLINGS
|
WS_CLIPCHILDREN
|
WS_VSCROLL
|
CBS_NOINTEGRALHEIGHT
|
CBS_DROPDOWNLIST
|
CBS_NOINTEGRALHEIGHT
|
CBS_DROPDOWNLIST
|
WS_CHILD
|
WS_VISIBLE
|
CBS_OWNERDRAWFIXED
|
WS_CHILD
|
WS_VISIBLE
|
CBS_OWNERDRAWFIXED
|
...
@@ -1009,7 +1007,7 @@ static LRESULT COMBOEX_Create (HWND hwnd, CREATESTRUCTA const *cs)
...
@@ -1009,7 +1007,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
,
WC_EDITW
,
NIL
,
infoPtr
->
hwndEdit
=
CreateWindowExW
(
0
,
WC_EDITW
,
L""
,
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
,
...
@@ -1257,11 +1255,10 @@ static BOOL COMBOEX_WM_DeleteItem (COMBOEX_INFO *infoPtr, DELETEITEMSTRUCT const
...
@@ -1257,11 +1255,10 @@ static BOOL COMBOEX_WM_DeleteItem (COMBOEX_INFO *infoPtr, DELETEITEMSTRUCT const
static
LRESULT
COMBOEX_DrawItem
(
COMBOEX_INFO
*
infoPtr
,
DRAWITEMSTRUCT
const
*
dis
)
static
LRESULT
COMBOEX_DrawItem
(
COMBOEX_INFO
*
infoPtr
,
DRAWITEMSTRUCT
const
*
dis
)
{
{
static
const
WCHAR
nil
[]
=
{
0
};
CBE_ITEMDATA
*
item
=
NULL
;
CBE_ITEMDATA
*
item
=
NULL
;
SIZE
txtsize
;
SIZE
txtsize
;
RECT
rect
;
RECT
rect
;
LPCWSTR
str
=
nil
;
LPCWSTR
str
=
L""
;
UINT
xbase
,
x
,
y
;
UINT
xbase
,
x
,
y
;
INT
len
;
INT
len
;
COLORREF
nbkc
,
ntxc
,
bkc
,
txc
;
COLORREF
nbkc
,
ntxc
,
bkc
,
txc
;
...
@@ -1399,7 +1396,7 @@ static LRESULT COMBOEX_DrawItem (COMBOEX_INFO *infoPtr, DRAWITEMSTRUCT const *di
...
@@ -1399,7 +1396,7 @@ static LRESULT COMBOEX_DrawItem (COMBOEX_INFO *infoPtr, DRAWITEMSTRUCT const *di
/* setup pointer to text to be drawn */
/* setup pointer to text to be drawn */
str
=
COMBOEX_GetText
(
infoPtr
,
item
);
str
=
COMBOEX_GetText
(
infoPtr
,
item
);
if
(
!
str
)
str
=
nil
;
if
(
!
str
)
str
=
L""
;
len
=
lstrlenW
(
str
);
len
=
lstrlenW
(
str
);
GetTextExtentPoint32W
(
dis
->
hDC
,
str
,
len
,
&
txtsize
);
GetTextExtentPoint32W
(
dis
->
hDC
,
str
,
len
,
&
txtsize
);
...
@@ -1537,12 +1534,11 @@ static LRESULT COMBOEX_Enable (COMBOEX_INFO *infoPtr, BOOL enable)
...
@@ -1537,12 +1534,11 @@ static LRESULT COMBOEX_Enable (COMBOEX_INFO *infoPtr, BOOL enable)
static
LRESULT
COMBOEX_MeasureItem
(
COMBOEX_INFO
const
*
infoPtr
,
MEASUREITEMSTRUCT
*
mis
)
static
LRESULT
COMBOEX_MeasureItem
(
COMBOEX_INFO
const
*
infoPtr
,
MEASUREITEMSTRUCT
*
mis
)
{
{
static
const
WCHAR
strW
[]
=
{
'W'
,
0
};
SIZE
mysize
;
SIZE
mysize
;
HDC
hdc
;
HDC
hdc
;
hdc
=
GetDC
(
0
);
hdc
=
GetDC
(
0
);
GetTextExtentPointW
(
hdc
,
strW
,
1
,
&
mysize
);
GetTextExtentPointW
(
hdc
,
L"W"
,
1
,
&
mysize
);
ReleaseDC
(
0
,
hdc
);
ReleaseDC
(
0
,
hdc
);
mis
->
itemHeight
=
mysize
.
cy
+
CBE_EXTRA
;
mis
->
itemHeight
=
mysize
.
cy
+
CBE_EXTRA
;
...
...
dlls/comctl32/commctrl.c
View file @
564d5804
...
@@ -93,9 +93,7 @@ static const WORD wPattern55AA[] =
...
@@ -93,9 +93,7 @@ static const WORD wPattern55AA[] =
0x5555
,
0xaaaa
,
0x5555
,
0xaaaa
0x5555
,
0xaaaa
,
0x5555
,
0xaaaa
};
};
static
const
WCHAR
strCC32SubclassInfo
[]
=
{
static
const
WCHAR
strCC32SubclassInfo
[]
=
L"CC32SubclassInfo"
;
'C'
,
'C'
,
'3'
,
'2'
,
'S'
,
'u'
,
'b'
,
'c'
,
'l'
,
'a'
,
's'
,
's'
,
'I'
,
'n'
,
'f'
,
'o'
,
0
};
static
void
unregister_versioned_classes
(
void
)
static
void
unregister_versioned_classes
(
void
)
{
{
...
@@ -1738,7 +1736,7 @@ HRESULT WINAPI LoadIconMetric(HINSTANCE hinst, const WCHAR *name, int size, HICO
...
@@ -1738,7 +1736,7 @@ HRESULT WINAPI LoadIconMetric(HINSTANCE hinst, const WCHAR *name, int size, HICO
return
LoadIconWithScaleDown
(
hinst
,
name
,
cx
,
cy
,
icon
);
return
LoadIconWithScaleDown
(
hinst
,
name
,
cx
,
cy
,
icon
);
}
}
static
const
WCHAR
strMRUList
[]
=
{
'M'
,
'R'
,
'U'
,
'L'
,
'i'
,
's'
,
't'
,
0
}
;
static
const
WCHAR
strMRUList
[]
=
L"MRUList"
;
/**************************************************************************
/**************************************************************************
* Alloc [COMCTL32.71]
* Alloc [COMCTL32.71]
...
...
dlls/comctl32/datetime.c
View file @
564d5804
...
@@ -126,7 +126,7 @@ extern int MONTHCAL_CalculateDayOfWeek(SYSTEMTIME *date, BOOL inplace);
...
@@ -126,7 +126,7 @@ extern int MONTHCAL_CalculateDayOfWeek(SYSTEMTIME *date, BOOL inplace);
static
BOOL
DATETIME_SendSimpleNotify
(
const
DATETIME_INFO
*
infoPtr
,
UINT
code
);
static
BOOL
DATETIME_SendSimpleNotify
(
const
DATETIME_INFO
*
infoPtr
,
UINT
code
);
static
BOOL
DATETIME_SendDateTimeChangeNotify
(
const
DATETIME_INFO
*
infoPtr
);
static
BOOL
DATETIME_SendDateTimeChangeNotify
(
const
DATETIME_INFO
*
infoPtr
);
static
const
WCHAR
allowedformatchars
[]
=
{
'd'
,
'h'
,
'H'
,
'm'
,
'M'
,
's'
,
't'
,
'y'
,
'X'
,
0
}
;
static
const
WCHAR
allowedformatchars
[]
=
L"dhHmMstyX"
;
static
const
int
maxrepetition
[]
=
{
4
,
2
,
2
,
2
,
4
,
2
,
2
,
4
,
-
1
};
static
const
int
maxrepetition
[]
=
{
4
,
2
,
2
,
2
,
4
,
2
,
2
,
4
,
-
1
};
/* valid date limits */
/* valid date limits */
...
...
dlls/comctl32/edit.c
View file @
564d5804
...
@@ -3031,19 +3031,16 @@ static LRESULT EDIT_WM_Char(EDITSTATE *es, WCHAR c)
...
@@ -3031,19 +3031,16 @@ static LRESULT EDIT_WM_Char(EDITSTATE *es, WCHAR c)
if
(
es
->
style
&
ES_READONLY
)
{
if
(
es
->
style
&
ES_READONLY
)
{
EDIT_MoveHome
(
es
,
FALSE
,
FALSE
);
EDIT_MoveHome
(
es
,
FALSE
,
FALSE
);
EDIT_MoveDown_ML
(
es
,
FALSE
);
EDIT_MoveDown_ML
(
es
,
FALSE
);
}
else
{
}
else
static
const
WCHAR
cr_lfW
[]
=
{
'\r'
,
'\n'
};
EDIT_EM_ReplaceSel
(
es
,
TRUE
,
L"
\r\n
"
,
2
,
TRUE
,
TRUE
);
EDIT_EM_ReplaceSel
(
es
,
TRUE
,
cr_lfW
,
2
,
TRUE
,
TRUE
);
}
}
}
break
;
break
;
case
'\t'
:
case
'\t'
:
if
((
es
->
style
&
ES_MULTILINE
)
&&
!
(
es
->
style
&
ES_READONLY
))
if
((
es
->
style
&
ES_MULTILINE
)
&&
!
(
es
->
style
&
ES_READONLY
))
{
{
static
const
WCHAR
tabW
[]
=
{
'\t'
};
if
(
EDIT_IsInsideDialog
(
es
))
if
(
EDIT_IsInsideDialog
(
es
))
break
;
break
;
EDIT_EM_ReplaceSel
(
es
,
TRUE
,
tabW
,
1
,
TRUE
,
TRUE
);
EDIT_EM_ReplaceSel
(
es
,
TRUE
,
L"
\t
"
,
1
,
TRUE
,
TRUE
);
}
}
break
;
break
;
case
VK_BACK
:
case
VK_BACK
:
...
...
dlls/comctl32/listbox.c
View file @
564d5804
...
@@ -1690,8 +1690,7 @@ static LRESULT LISTBOX_InsertString( LB_DESCR *descr, INT index, LPCWSTR str )
...
@@ -1690,8 +1690,7 @@ static LRESULT LISTBOX_InsertString( LB_DESCR *descr, INT index, LPCWSTR str )
if
(
HAS_STRINGS
(
descr
))
if
(
HAS_STRINGS
(
descr
))
{
{
static
const
WCHAR
empty_stringW
[]
=
{
0
};
if
(
!
str
)
str
=
L""
;
if
(
!
str
)
str
=
empty_stringW
;
if
(
!
(
new_str
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
lstrlenW
(
str
)
+
1
)
*
sizeof
(
WCHAR
)
)))
if
(
!
(
new_str
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
lstrlenW
(
str
)
+
1
)
*
sizeof
(
WCHAR
)
)))
{
{
SEND_NOTIFICATION
(
descr
,
LBN_ERRSPACE
);
SEND_NOTIFICATION
(
descr
,
LBN_ERRSPACE
);
...
@@ -1881,16 +1880,14 @@ static LRESULT LISTBOX_Directory( LB_DESCR *descr, UINT attrib,
...
@@ -1881,16 +1880,14 @@ static LRESULT LISTBOX_Directory( LB_DESCR *descr, UINT attrib,
WCHAR
buffer
[
270
];
WCHAR
buffer
[
270
];
if
(
entry
.
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
if
(
entry
.
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
{
{
static
const
WCHAR
bracketW
[]
=
{
']'
,
0
};
static
const
WCHAR
dotW
[]
=
{
'.'
,
0
};
if
(
!
(
attrib
&
DDL_DIRECTORY
)
||
if
(
!
(
attrib
&
DDL_DIRECTORY
)
||
!
lstrcmpW
(
entry
.
cFileName
,
dotW
))
continue
;
!
lstrcmpW
(
entry
.
cFileName
,
L"."
))
continue
;
buffer
[
0
]
=
'['
;
buffer
[
0
]
=
'['
;
if
(
!
long_names
&&
entry
.
cAlternateFileName
[
0
])
if
(
!
long_names
&&
entry
.
cAlternateFileName
[
0
])
lstrcpyW
(
buffer
+
1
,
entry
.
cAlternateFileName
);
lstrcpyW
(
buffer
+
1
,
entry
.
cAlternateFileName
);
else
else
lstrcpyW
(
buffer
+
1
,
entry
.
cFileName
);
lstrcpyW
(
buffer
+
1
,
entry
.
cFileName
);
lstrcatW
(
buffer
,
bracketW
);
lstrcatW
(
buffer
,
L"]"
);
}
}
else
/* not a directory */
else
/* not a directory */
{
{
...
@@ -3164,7 +3161,6 @@ void LISTBOX_Register(void)
...
@@ -3164,7 +3161,6 @@ void LISTBOX_Register(void)
void
COMBOLBOX_Register
(
void
)
void
COMBOLBOX_Register
(
void
)
{
{
static
const
WCHAR
combolboxW
[]
=
{
'C'
,
'o'
,
'm'
,
'b'
,
'o'
,
'L'
,
'B'
,
'o'
,
'x'
,
0
};
WNDCLASSW
wndClass
;
WNDCLASSW
wndClass
;
memset
(
&
wndClass
,
0
,
sizeof
(
wndClass
));
memset
(
&
wndClass
,
0
,
sizeof
(
wndClass
));
...
@@ -3174,6 +3170,6 @@ void COMBOLBOX_Register(void)
...
@@ -3174,6 +3170,6 @@ void COMBOLBOX_Register(void)
wndClass
.
cbWndExtra
=
sizeof
(
LB_DESCR
*
);
wndClass
.
cbWndExtra
=
sizeof
(
LB_DESCR
*
);
wndClass
.
hCursor
=
LoadCursorW
(
0
,
(
LPWSTR
)
IDC_ARROW
);
wndClass
.
hCursor
=
LoadCursorW
(
0
,
(
LPWSTR
)
IDC_ARROW
);
wndClass
.
hbrBackground
=
NULL
;
wndClass
.
hbrBackground
=
NULL
;
wndClass
.
lpszClassName
=
combolboxW
;
wndClass
.
lpszClassName
=
L"ComboLBox"
;
RegisterClassW
(
&
wndClass
);
RegisterClassW
(
&
wndClass
);
}
}
dlls/comctl32/listview.c
View file @
564d5804
...
@@ -422,7 +422,7 @@ typedef struct tagLISTVIEW_INFO
...
@@ -422,7 +422,7 @@ typedef struct tagLISTVIEW_INFO
TRACE("hwndSelf=%p, rcList=%s\n", iP->hwndSelf, wine_dbgstr_rect(&iP->rcList)); \
TRACE("hwndSelf=%p, rcList=%s\n", iP->hwndSelf, wine_dbgstr_rect(&iP->rcList)); \
} while(0)
} while(0)
static
const
WCHAR
themeClass
[]
=
{
'L'
,
'i'
,
's'
,
't'
,
'V'
,
'i'
,
'e'
,
'w'
,
0
}
;
static
const
WCHAR
themeClass
[]
=
L"ListView"
;
/*
/*
* forward declarations
* forward declarations
...
...
dlls/comctl32/progress.c
View file @
564d5804
...
@@ -529,7 +529,7 @@ static LRESULT WINAPI ProgressWindowProc(HWND hwnd, UINT message,
...
@@ -529,7 +529,7 @@ static LRESULT WINAPI ProgressWindowProc(HWND hwnd, UINT message,
WPARAM
wParam
,
LPARAM
lParam
)
WPARAM
wParam
,
LPARAM
lParam
)
{
{
PROGRESS_INFO
*
infoPtr
;
PROGRESS_INFO
*
infoPtr
;
static
const
WCHAR
themeClass
[]
=
{
'P'
,
'r'
,
'o'
,
'g'
,
'r'
,
'e'
,
's'
,
's'
,
0
}
;
static
const
WCHAR
themeClass
[]
=
L"Progress"
;
HTHEME
theme
;
HTHEME
theme
;
TRACE
(
"hwnd=%p msg=%04x wparam=%lx lParam=%lx
\n
"
,
hwnd
,
message
,
wParam
,
lParam
);
TRACE
(
"hwnd=%p msg=%04x wparam=%lx lParam=%lx
\n
"
,
hwnd
,
message
,
wParam
,
lParam
);
...
...
dlls/comctl32/status.c
View file @
564d5804
...
@@ -86,7 +86,7 @@ typedef struct
...
@@ -86,7 +86,7 @@ typedef struct
#define VERT_BORDER 2
#define VERT_BORDER 2
#define HORZ_GAP 2
#define HORZ_GAP 2
static
const
WCHAR
themeClass
[]
=
{
'S'
,
't'
,
'a'
,
't'
,
'u'
,
's'
,
0
}
;
static
const
WCHAR
themeClass
[]
=
L"Status"
;
/* prototype */
/* prototype */
static
void
static
void
...
...
dlls/comctl32/taskdialog.c
View file @
564d5804
...
@@ -145,7 +145,6 @@ static DLGTEMPLATE *create_taskdialog_template(const TASKDIALOGCONFIG *taskconfi
...
@@ -145,7 +145,6 @@ static DLGTEMPLATE *create_taskdialog_template(const TASKDIALOGCONFIG *taskconfi
{
{
unsigned
int
size
,
title_size
;
unsigned
int
size
,
title_size
;
static
const
WORD
fontsize
=
0x7fff
;
static
const
WORD
fontsize
=
0x7fff
;
static
const
WCHAR
emptyW
[]
=
{
0
};
const
WCHAR
*
titleW
=
NULL
;
const
WCHAR
*
titleW
=
NULL
;
DLGTEMPLATE
*
template
;
DLGTEMPLATE
*
template
;
WCHAR
pathW
[
MAX_PATH
];
WCHAR
pathW
[
MAX_PATH
];
...
@@ -162,7 +161,7 @@ static DLGTEMPLATE *create_taskdialog_template(const TASKDIALOGCONFIG *taskconfi
...
@@ -162,7 +161,7 @@ static DLGTEMPLATE *create_taskdialog_template(const TASKDIALOGCONFIG *taskconfi
else
else
titleW
=
taskconfig
->
pszWindowTitle
;
titleW
=
taskconfig
->
pszWindowTitle
;
if
(
!
titleW
)
if
(
!
titleW
)
titleW
=
emptyW
;
titleW
=
L""
;
title_size
=
(
lstrlenW
(
titleW
)
+
1
)
*
sizeof
(
WCHAR
);
title_size
=
(
lstrlenW
(
titleW
)
+
1
)
*
sizeof
(
WCHAR
);
size
=
sizeof
(
DLGTEMPLATE
)
+
2
*
sizeof
(
WORD
);
size
=
sizeof
(
DLGTEMPLATE
)
+
2
*
sizeof
(
WORD
);
...
@@ -1205,7 +1204,7 @@ static void taskdialog_destroy(struct taskdialog_info *dialog_info)
...
@@ -1205,7 +1204,7 @@ static void taskdialog_destroy(struct taskdialog_info *dialog_info)
static
INT_PTR
CALLBACK
taskdialog_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
static
INT_PTR
CALLBACK
taskdialog_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
static
const
WCHAR
taskdialog_info_propnameW
[]
=
{
'T'
,
'a'
,
's'
,
'k'
,
'D'
,
'i'
,
'a'
,
'l'
,
'o'
,
'g'
,
'I'
,
'n'
,
'f'
,
'o'
,
0
}
;
static
const
WCHAR
taskdialog_info_propnameW
[]
=
L"TaskDialogInfo"
;
struct
taskdialog_info
*
dialog_info
;
struct
taskdialog_info
*
dialog_info
;
LRESULT
result
;
LRESULT
result
;
...
...
dlls/comctl32/theme_dialog.c
View file @
564d5804
...
@@ -40,7 +40,7 @@ LRESULT CALLBACK THEMING_DialogSubclassProc (HWND hWnd, UINT msg,
...
@@ -40,7 +40,7 @@ LRESULT CALLBACK THEMING_DialogSubclassProc (HWND hWnd, UINT msg,
ULONG_PTR
dwRefData
)
ULONG_PTR
dwRefData
)
{
{
HTHEME
theme
=
GetWindowTheme
(
hWnd
);
HTHEME
theme
=
GetWindowTheme
(
hWnd
);
static
const
WCHAR
themeClass
[]
=
{
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
0
}
;
static
const
WCHAR
themeClass
[]
=
L"Window"
;
BOOL
themingActive
=
IsThemeDialogTextureEnabled
(
hWnd
);
BOOL
themingActive
=
IsThemeDialogTextureEnabled
(
hWnd
);
BOOL
doTheming
=
themingActive
&&
(
theme
!=
NULL
);
BOOL
doTheming
=
themingActive
&&
(
theme
!=
NULL
);
LRESULT
result
;
LRESULT
result
;
...
...
dlls/comctl32/theming.c
View file @
564d5804
...
@@ -39,7 +39,7 @@ extern LRESULT CALLBACK THEMING_DialogSubclassProc (HWND, UINT, WPARAM, LPARAM,
...
@@ -39,7 +39,7 @@ extern LRESULT CALLBACK THEMING_DialogSubclassProc (HWND, UINT, WPARAM, LPARAM,
extern
LRESULT
CALLBACK
THEMING_ScrollbarSubclassProc
(
HWND
,
UINT
,
WPARAM
,
LPARAM
,
extern
LRESULT
CALLBACK
THEMING_ScrollbarSubclassProc
(
HWND
,
UINT
,
WPARAM
,
LPARAM
,
ULONG_PTR
)
DECLSPEC_HIDDEN
;
ULONG_PTR
)
DECLSPEC_HIDDEN
;
static
const
WCHAR
dialogClass
[]
=
{
'#'
,
'3'
,
'2'
,
'7'
,
'7'
,
'0'
,
0
}
;
static
const
WCHAR
dialogClass
[]
=
L"#32770"
;
static
const
struct
ThemingSubclass
static
const
struct
ThemingSubclass
{
{
...
@@ -95,15 +95,11 @@ static const WNDPROC subclassProcs[NUM_SUBCLASSES] = {
...
@@ -95,15 +95,11 @@ static const WNDPROC subclassProcs[NUM_SUBCLASSES] = {
void
THEMING_Initialize
(
void
)
void
THEMING_Initialize
(
void
)
{
{
unsigned
int
i
;
unsigned
int
i
;
static
const
WCHAR
subclassPropName
[]
=
{
'C'
,
'C'
,
'3'
,
'2'
,
'T'
,
'h'
,
'e'
,
'm'
,
'i'
,
'n'
,
'g'
,
'S'
,
'u'
,
'b'
,
'C'
,
'l'
,
0
};
static
const
WCHAR
refDataPropName
[]
=
{
'C'
,
'C'
,
'3'
,
'2'
,
'T'
,
'h'
,
'e'
,
'm'
,
'i'
,
'n'
,
'g'
,
'D'
,
'a'
,
't'
,
'a'
,
0
};
if
(
!
IsThemeActive
())
return
;
if
(
!
IsThemeActive
())
return
;
atSubclassProp
=
GlobalAddAtomW
(
subclassPropName
);
atSubclassProp
=
GlobalAddAtomW
(
L"CC32ThemingSubCl"
);
atRefDataProp
=
GlobalAddAtomW
(
refDataPropName
);
atRefDataProp
=
GlobalAddAtomW
(
L"CC32ThemingData"
);
for
(
i
=
0
;
i
<
NUM_SUBCLASSES
;
i
++
)
for
(
i
=
0
;
i
<
NUM_SUBCLASSES
;
i
++
)
{
{
...
...
dlls/comctl32/toolbar.c
View file @
564d5804
...
@@ -232,7 +232,7 @@ typedef enum
...
@@ -232,7 +232,7 @@ typedef enum
#define GETHOTIMAGELIST(infoPtr, id) TOOLBAR_GetImageList(infoPtr->himlHot, infoPtr->cimlHot, id)
#define GETHOTIMAGELIST(infoPtr, id) TOOLBAR_GetImageList(infoPtr->himlHot, infoPtr->cimlHot, id)
#define GETDISIMAGELIST(infoPtr, id) TOOLBAR_GetImageList(infoPtr->himlDis, infoPtr->cimlDis, id)
#define GETDISIMAGELIST(infoPtr, id) TOOLBAR_GetImageList(infoPtr->himlDis, infoPtr->cimlDis, id)
static
const
WCHAR
themeClass
[]
=
{
'T'
,
'o'
,
'o'
,
'l'
,
'b'
,
'a'
,
'r'
,
0
}
;
static
const
WCHAR
themeClass
[]
=
L"Toolbar"
;
static
BOOL
TOOLBAR_GetButtonInfo
(
const
TOOLBAR_INFO
*
infoPtr
,
NMTOOLBARW
*
nmtb
);
static
BOOL
TOOLBAR_GetButtonInfo
(
const
TOOLBAR_INFO
*
infoPtr
,
NMTOOLBARW
*
nmtb
);
static
BOOL
TOOLBAR_IsButtonRemovable
(
const
TOOLBAR_INFO
*
infoPtr
,
int
iItem
,
const
CUSTOMBUTTON
*
btnInfo
);
static
BOOL
TOOLBAR_IsButtonRemovable
(
const
TOOLBAR_INFO
*
infoPtr
,
int
iItem
,
const
CUSTOMBUTTON
*
btnInfo
);
...
...
dlls/comctl32/trackbar.c
View file @
564d5804
...
@@ -97,7 +97,7 @@ typedef struct
...
@@ -97,7 +97,7 @@ typedef struct
#define TIC_SELECTIONMARKMIN 0x100
#define TIC_SELECTIONMARKMIN 0x100
#define TIC_SELECTIONMARK (TIC_SELECTIONMARKMAX | TIC_SELECTIONMARKMIN)
#define TIC_SELECTIONMARK (TIC_SELECTIONMARKMAX | TIC_SELECTIONMARKMIN)
static
const
WCHAR
themeClass
[]
=
{
'T'
,
'r'
,
'a'
,
'c'
,
'k'
,
'b'
,
'a'
,
'r'
,
0
}
;
static
const
WCHAR
themeClass
[]
=
L"Trackbar"
;
static
inline
int
static
inline
int
notify_customdraw
(
const
TRACKBAR_INFO
*
infoPtr
,
NMCUSTOMDRAW
*
pnmcd
,
int
stage
)
notify_customdraw
(
const
TRACKBAR_INFO
*
infoPtr
,
NMCUSTOMDRAW
*
pnmcd
,
int
stage
)
...
@@ -851,7 +851,6 @@ static void
...
@@ -851,7 +851,6 @@ static void
TRACKBAR_UpdateToolTip
(
const
TRACKBAR_INFO
*
infoPtr
)
TRACKBAR_UpdateToolTip
(
const
TRACKBAR_INFO
*
infoPtr
)
{
{
WCHAR
buf
[
80
];
WCHAR
buf
[
80
];
static
const
WCHAR
fmt
[]
=
{
'%'
,
'l'
,
'd'
,
0
};
TTTOOLINFOW
ti
;
TTTOOLINFOW
ti
;
POINT
pt
;
POINT
pt
;
RECT
rcClient
;
RECT
rcClient
;
...
@@ -864,7 +863,7 @@ TRACKBAR_UpdateToolTip (const TRACKBAR_INFO *infoPtr)
...
@@ -864,7 +863,7 @@ TRACKBAR_UpdateToolTip (const TRACKBAR_INFO *infoPtr)
ti
.
hwnd
=
infoPtr
->
hwndSelf
;
ti
.
hwnd
=
infoPtr
->
hwndSelf
;
ti
.
uFlags
=
TTF_IDISHWND
|
TTF_TRACK
|
TTF_ABSOLUTE
;
ti
.
uFlags
=
TTF_IDISHWND
|
TTF_TRACK
|
TTF_ABSOLUTE
;
wsprintfW
(
buf
,
fmt
,
infoPtr
->
lPos
);
wsprintfW
(
buf
,
L"%ld"
,
infoPtr
->
lPos
);
ti
.
lpszText
=
buf
;
ti
.
lpszText
=
buf
;
SendMessageW
(
infoPtr
->
hwndToolTip
,
TTM_UPDATETIPTEXTW
,
0
,
(
LPARAM
)
&
ti
);
SendMessageW
(
infoPtr
->
hwndToolTip
,
TTM_UPDATETIPTEXTW
,
0
,
(
LPARAM
)
&
ti
);
...
...
dlls/comctl32/treeview.c
View file @
564d5804
...
@@ -200,7 +200,7 @@ typedef struct _TREEITEM /* HTREEITEM is a _TREEINFO *. */
...
@@ -200,7 +200,7 @@ typedef struct _TREEITEM /* HTREEITEM is a _TREEINFO *. */
#define GETTXTCOLOR(x) ((x) == CLR_NONE ? comctl32_color.clrWindowText : (x))
#define GETTXTCOLOR(x) ((x) == CLR_NONE ? comctl32_color.clrWindowText : (x))
#define GETINSCOLOR(x) ((x) == CLR_DEFAULT ? comctl32_color.clrBtnText : (x))
#define GETINSCOLOR(x) ((x) == CLR_DEFAULT ? comctl32_color.clrBtnText : (x))
static
const
WCHAR
themeClass
[]
=
{
'T'
,
'r'
,
'e'
,
'e'
,
'v'
,
'i'
,
'e'
,
'w'
,
0
}
;
static
const
WCHAR
themeClass
[]
=
L"Treeview"
;
typedef
VOID
(
*
TREEVIEW_ItemEnumFunc
)(
TREEVIEW_INFO
*
,
TREEVIEW_ITEM
*
,
LPVOID
);
typedef
VOID
(
*
TREEVIEW_ItemEnumFunc
)(
TREEVIEW_INFO
*
,
TREEVIEW_ITEM
*
,
LPVOID
);
...
...
dlls/comctl32/updown.c
View file @
564d5804
...
@@ -306,8 +306,6 @@ static BOOL UPDOWN_GetBuddyInt (UPDOWN_INFO *infoPtr)
...
@@ -306,8 +306,6 @@ static BOOL UPDOWN_GetBuddyInt (UPDOWN_INFO *infoPtr)
*/
*/
static
BOOL
UPDOWN_SetBuddyInt
(
const
UPDOWN_INFO
*
infoPtr
)
static
BOOL
UPDOWN_SetBuddyInt
(
const
UPDOWN_INFO
*
infoPtr
)
{
{
static
const
WCHAR
fmt_hex
[]
=
{
'0'
,
'x'
,
'%'
,
'0'
,
'4'
,
'X'
,
0
};
static
const
WCHAR
fmt_dec_oct
[]
=
{
'%'
,
'd'
,
'\0'
};
const
WCHAR
*
fmt
;
const
WCHAR
*
fmt
;
WCHAR
txt
[
20
],
txt_old
[
20
]
=
{
0
};
WCHAR
txt
[
20
],
txt_old
[
20
]
=
{
0
};
int
len
;
int
len
;
...
@@ -323,7 +321,7 @@ static BOOL UPDOWN_SetBuddyInt (const UPDOWN_INFO *infoPtr)
...
@@ -323,7 +321,7 @@ static BOOL UPDOWN_SetBuddyInt (const UPDOWN_INFO *infoPtr)
}
}
/* Regular window, so set caption to the number */
/* Regular window, so set caption to the number */
fmt
=
(
infoPtr
->
Base
==
16
)
?
fmt_hex
:
fmt_dec_oct
;
fmt
=
(
infoPtr
->
Base
==
16
)
?
L"0x%04X"
:
L"%d"
;
len
=
wsprintfW
(
txt
,
fmt
,
infoPtr
->
CurVal
);
len
=
wsprintfW
(
txt
,
fmt
,
infoPtr
->
CurVal
);
...
@@ -892,7 +890,6 @@ static void UPDOWN_HandleMouseEvent (UPDOWN_INFO *infoPtr, UINT msg, INT x, INT
...
@@ -892,7 +890,6 @@ static void UPDOWN_HandleMouseEvent (UPDOWN_INFO *infoPtr, UINT msg, INT x, INT
static
LRESULT
WINAPI
UpDownWindowProc
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
static
LRESULT
WINAPI
UpDownWindowProc
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
UPDOWN_INFO
*
infoPtr
=
UPDOWN_GetInfoPtr
(
hwnd
);
UPDOWN_INFO
*
infoPtr
=
UPDOWN_GetInfoPtr
(
hwnd
);
static
const
WCHAR
themeClass
[]
=
{
'S'
,
'p'
,
'i'
,
'n'
,
0
};
HTHEME
theme
;
HTHEME
theme
;
TRACE
(
"hwnd=%p msg=%04x wparam=%08lx lparam=%08lx
\n
"
,
hwnd
,
message
,
wParam
,
lParam
);
TRACE
(
"hwnd=%p msg=%04x wparam=%08lx lparam=%08lx
\n
"
,
hwnd
,
message
,
wParam
,
lParam
);
...
@@ -932,7 +929,7 @@ static LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam, L
...
@@ -932,7 +929,7 @@ static LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam, L
if
(
infoPtr
->
dwStyle
&
UDS_AUTOBUDDY
)
if
(
infoPtr
->
dwStyle
&
UDS_AUTOBUDDY
)
UPDOWN_SetBuddy
(
infoPtr
,
GetWindow
(
hwnd
,
GW_HWNDPREV
));
UPDOWN_SetBuddy
(
infoPtr
,
GetWindow
(
hwnd
,
GW_HWNDPREV
));
OpenThemeData
(
hwnd
,
themeClass
);
OpenThemeData
(
hwnd
,
L"Spin"
);
TRACE
(
"UpDown Ctrl creation, hwnd=%p
\n
"
,
hwnd
);
TRACE
(
"UpDown Ctrl creation, hwnd=%p
\n
"
,
hwnd
);
}
}
...
@@ -968,7 +965,7 @@ static LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam, L
...
@@ -968,7 +965,7 @@ static LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam, L
case
WM_THEMECHANGED
:
case
WM_THEMECHANGED
:
theme
=
GetWindowTheme
(
hwnd
);
theme
=
GetWindowTheme
(
hwnd
);
CloseThemeData
(
theme
);
CloseThemeData
(
theme
);
OpenThemeData
(
hwnd
,
themeClass
);
OpenThemeData
(
hwnd
,
L"Spin"
);
InvalidateRect
(
hwnd
,
NULL
,
FALSE
);
InvalidateRect
(
hwnd
,
NULL
,
FALSE
);
break
;
break
;
...
...
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