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
c2a7914d
Commit
c2a7914d
authored
Jan 23, 2008
by
Austin English
Committed by
Alexandre Julliard
Jan 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Spelling fixes.
parent
d0820c18
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
53 additions
and
53 deletions
+53
-53
animate.c
dlls/comctl32/animate.c
+1
-1
comctl32undoc.c
dlls/comctl32/comctl32undoc.c
+1
-1
commctrl.c
dlls/comctl32/commctrl.c
+4
-4
imagelist.h
dlls/comctl32/imagelist.h
+1
-1
listview.c
dlls/comctl32/listview.c
+23
-23
monthcal.c
dlls/comctl32/monthcal.c
+2
-2
propsheet.c
dlls/comctl32/propsheet.c
+1
-1
rebar.c
dlls/comctl32/rebar.c
+5
-5
status.c
dlls/comctl32/status.c
+1
-1
tab.c
dlls/comctl32/tab.c
+1
-1
dpa.c
dlls/comctl32/tests/dpa.c
+1
-1
header.c
dlls/comctl32/tests/header.c
+1
-1
toolbar.c
dlls/comctl32/toolbar.c
+3
-3
trackbar.c
dlls/comctl32/trackbar.c
+1
-1
treeview.c
dlls/comctl32/treeview.c
+5
-5
updown.c
dlls/comctl32/updown.c
+2
-2
No files found.
dlls/comctl32/animate.c
View file @
c2a7914d
...
...
@@ -85,7 +85,7 @@ typedef struct
int
nToFrame
;
int
nLoop
;
int
currFrame
;
/* tranparency info*/
/* tran
s
parency info*/
COLORREF
transparentColor
;
HBRUSH
hbrushBG
;
HBITMAP
hbmPrevFrame
;
...
...
dlls/comctl32/comctl32undoc.c
View file @
c2a7914d
...
...
@@ -812,7 +812,7 @@ HANDLE WINAPI CreateMRUListA (const CREATEMRULISTA *lpcml)
/**************************************************************************
* EnumMRUListW [COMCTL32.403]
*
* Enumerate item in a most-recenty-used list
* Enumerate item in a most-recent
l
y-used list
*
* PARAMS
* hList [I] list handle
...
...
dlls/comctl32/commctrl.c
View file @
c2a7914d
...
...
@@ -714,7 +714,7 @@ InitCommonControls (void)
* Failure: FALSE
*
* NOTES
* Probaly all versions of comctl32 initializes the Win95 controls in DllMain
* Proba
b
ly all versions of comctl32 initializes the Win95 controls in DllMain
* during DLL initialization. Starting from comctl32 v5.82 all the controls
* are initialized there. We follow this behaviour and this function is just
* a dummy.
...
...
@@ -1091,7 +1091,7 @@ VOID WINAPI InitMUILanguage (LANGID uiLang)
* BUGS
* If an application manually subclasses a window after subclassing it with
* this API and then with this API again, then none of the previous
* subclasses get called or the origi
o
nal window procedure.
* subclasses get called or the original window procedure.
*/
BOOL
WINAPI
SetWindowSubclass
(
HWND
hWnd
,
SUBCLASSPROC
pfnSubclass
,
...
...
@@ -1257,7 +1257,7 @@ BOOL WINAPI RemoveWindowSubclass(HWND hWnd, SUBCLASSPROC pfnSubclass, UINT_PTR u
if
(
!
stack
->
SubclassProcs
&&
!
stack
->
running
)
{
TRACE
(
"Last Subclass removed, cleaning up
\n
"
);
/* clean up our heap and reset the origi
o
nal window procedure */
/* clean up our heap and reset the original window procedure */
if
(
IsWindowUnicode
(
hWnd
))
SetWindowLongPtrW
(
hWnd
,
GWLP_WNDPROC
,
(
DWORD_PTR
)
stack
->
origproc
);
else
...
...
@@ -1299,7 +1299,7 @@ LRESULT WINAPI COMCTL32_SubclassProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
if
(
!
stack
->
SubclassProcs
&&
!
stack
->
running
)
{
TRACE
(
"Last Subclass removed, cleaning up
\n
"
);
/* clean up our heap and reset the origi
o
nal window procedure */
/* clean up our heap and reset the original window procedure */
if
(
IsWindowUnicode
(
hWnd
))
SetWindowLongPtrW
(
hWnd
,
GWLP_WNDPROC
,
(
DWORD_PTR
)
stack
->
origproc
);
else
...
...
dlls/comctl32/imagelist.h
View file @
c2a7914d
...
...
@@ -39,7 +39,7 @@ struct _IMAGELIST
DWORD
x4
;
UINT
flags
;
/* 1c: flags */
COLORREF
clrFg
;
/* 20: foreground color */
COLORREF
clrBk
;
/* 24: backg
our
nd color */
COLORREF
clrBk
;
/* 24: backg
rou
nd color */
HBITMAP
hbmImage
;
/* 30: images Bitmap */
...
...
dlls/comctl32/listview.c
View file @
c2a7914d
...
...
@@ -371,7 +371,7 @@ typedef struct tagLISTVIEW_INFO
/* Size of "line" scroll for V & H scrolls */
#define LISTVIEW_SCROLL_ICON_LINE_SIZE 37
/* Padding betwen image and label */
/* Padding betwe
e
n image and label */
#define IMAGE_PADDING 2
/* Padding behind the label */
...
...
@@ -950,7 +950,7 @@ static void prepaint_setup (const LISTVIEW_INFO *infoPtr, HDC hdc, NMLVCUSTOMDRA
if
(
lpnmlvcd
->
clrText
==
CLR_DEFAULT
)
lpnmlvcd
->
clrText
=
comctl32_color
.
clrWindowText
;
/* apprently, for selected items, we have to override the returned values */
/* app
a
rently, for selected items, we have to override the returned values */
if
(
!
SubItem
)
{
if
(
lpnmlvcd
->
nmcd
.
uItemState
&
CDIS_SELECTED
)
...
...
@@ -1010,7 +1010,7 @@ static inline BOOL ranges_delitem(RANGES ranges, INT nItem)
* ITERATOR DOCUMENTATION
*
* The iterator functions allow for easy, and convenient iteration
* over items of iterest in the list. Typically, you create a
* over items of i
n
terest in the list. Typically, you create a
* iterator, use it, and destroy it, as such:
* ITERATOR i;
*
...
...
@@ -1496,7 +1496,7 @@ static inline INT LISTVIEW_GetCountPerColumn(const LISTVIEW_INFO *infoPtr)
* BUGS
*
* - The current implementation has a list of characters it will
* accept and it ignores
a
verything else. In particular it will
* accept and it ignores
e
verything else. In particular it will
* ignore accentuated characters which seems to match what
* Windows does. But I'm not sure it makes sense to follow
* Windows there.
...
...
@@ -1826,9 +1826,9 @@ static void LISTVIEW_InvalidateSelectedItems(const LISTVIEW_INFO *infoPtr)
* Computes an item's (left,top) corner, relative to rcView.
* That is, the position has NOT been made relative to the Origin.
* This is deliberate, to avoid computing the Origin over, and
* over again, when this function is call in a loop. Instead,
* one ca factor the computation of the Origin before the loop,
* and offset the value retured by this function, on every iteration.
* over again, when this function is call
ed
in a loop. Instead,
* one ca
n
factor the computation of the Origin before the loop,
* and offset the value retur
n
ed by this function, on every iteration.
*
* PARAMETER(S):
* [I] infoPtr : valid pointer to the listview structure
...
...
@@ -1866,15 +1866,15 @@ static void LISTVIEW_GetItemOrigin(const LISTVIEW_INFO *infoPtr, INT nItem, LPPO
* DESCRIPTION: [INTERNAL]
* Compute the rectangles of an item. This is to localize all
* the computations in one place. If you are not interested in some
* of these values, simply pass in a NULL -- the fu
cn
tion is smart
* of these values, simply pass in a NULL -- the fu
nc
tion is smart
* enough to compute only what's necessary. The function computes
* the standard rectangles (BOUNDS, ICON, LABEL) plus a non-standard
* one, the BOX rectangle. This rectangle is very cheap to compute,
* and is guaranteed to contain all the other rectangles. Computing
* the ICON rect is also cheap, but all the others are potent
ai
ly
* the ICON rect is also cheap, but all the others are potent
ial
ly
* expensive. This gives an easy and effective optimization when
* searching (like point inclusion, or rectangle intersection):
* first test against the BOX, and if TRUE, test agains the desired
* first test against the BOX, and if TRUE, test agains
t
the desired
* rectangle.
* If the function does not have all the necessary information
* to computed the requested rectangles, will crash with a
...
...
@@ -1884,7 +1884,7 @@ static void LISTVIEW_GetItemOrigin(const LISTVIEW_INFO *infoPtr, INT nItem, LPPO
* We have the following 'special' meanings for a few fields:
* * If LVIS_FOCUSED is set, we assume the item has the focus
* This is important in ICON mode, where it might get a larger
* then usual rectange
* then usual rectang
l
e
*
* Please note that subitem support works only in REPORT mode.
*
...
...
@@ -2009,7 +2009,7 @@ static void LISTVIEW_GetItemMetrics(const LISTVIEW_INFO *infoPtr, const LVITEMW
/************************************************************/
if
(
doLabel
)
{
/* calculate how far to the right can the label strech */
/* calculate how far to the right can the label stre
t
ch */
Label
.
right
=
Box
.
right
;
if
(
uView
==
LVS_REPORT
)
{
...
...
@@ -2760,7 +2760,7 @@ static BOOL ranges_add(RANGES ranges, RANGE range)
TRACE
(
"New range %s @%d
\n
"
,
debugrange
(
chkrgn
),
index
);
/* merge now common anges */
/* merge now common
r
anges */
fromindex
=
0
;
srchrgn
.
lower
=
chkrgn
->
lower
-
1
;
srchrgn
.
upper
=
chkrgn
->
upper
+
1
;
...
...
@@ -3349,7 +3349,7 @@ static LRESULT LISTVIEW_MouseMove(LISTVIEW_INFO *infoPtr, WORD fwKeys, INT x, IN
/***
* Tests whe
ather the item is assignable to a list with style lStyle
* Tests whe
ther the item is assignable to a list with style lStyle
*/
static
inline
BOOL
is_assignable_item
(
const
LVITEMW
*
lpLVItem
,
LONG
lStyle
)
{
...
...
@@ -3367,7 +3367,7 @@ static inline BOOL is_assignable_item(const LVITEMW *lpLVItem, LONG lStyle)
*
* PARAMETER(S):
* [I] infoPtr : valid pointer to the listview structure
* [I] lpLVItem : valid pointer to new item att
t
ributes
* [I] lpLVItem : valid pointer to new item attributes
* [I] isNew : the item being set is being inserted
* [I] isW : TRUE if lpLVItem is Unicode, FALSE if it's ANSI
* [O] bChanged : will be set to TRUE if the item really changed
...
...
@@ -3392,7 +3392,7 @@ static BOOL set_main_item(LISTVIEW_INFO *infoPtr, const LVITEMW *lpLVItem, BOOL
if
(
infoPtr
->
dwStyle
&
LVS_OWNERDATA
)
{
/* a virtual listview
we stores only
selection and focus */
/* a virtual listview
only stores
selection and focus */
if
(
lpLVItem
->
mask
&
~
LVIF_STATE
)
return
FALSE
;
lpItem
=
NULL
;
...
...
@@ -3442,7 +3442,7 @@ static BOOL set_main_item(LISTVIEW_INFO *infoPtr, const LVITEMW *lpLVItem, BOOL
nmlv
.
lParam
=
item
.
lParam
;
/* send LVN_ITEMCHANGING notification, if the item is not being inserted */
/* and we are _NOT_ virtual (LVS_OW
ERN
DATA), and change notifications */
/* and we are _NOT_ virtual (LVS_OW
NER
DATA), and change notifications */
/* are enabled */
if
(
lpItem
&&
!
isNew
&&
infoPtr
->
bDoChangeNotify
)
{
...
...
@@ -3512,7 +3512,7 @@ static BOOL set_main_item(LISTVIEW_INFO *infoPtr, const LVITEMW *lpLVItem, BOOL
*
* PARAMETER(S):
* [I] infoPtr : valid pointer to the listview structure
* [I] lpLVItem : valid pointer to new subitem att
t
ributes
* [I] lpLVItem : valid pointer to new subitem attributes
* [I] isW : TRUE if lpLVItem is Unicode, FALSE if it's ANSI
* [O] bChanged : will be set to TRUE if the item really changed
*
...
...
@@ -3590,7 +3590,7 @@ static BOOL set_sub_item(const LISTVIEW_INFO *infoPtr, const LVITEMW *lpLVItem,
*
* PARAMETER(S):
* [I] infoPtr : valid pointer to the listview structure
* [I] lpLVItem : new item att
t
ributes
* [I] lpLVItem : new item attributes
* [I] isW : TRUE if lpLVItem is Unicode, FALSE if it's ANSI
*
* RETURN:
...
...
@@ -4425,7 +4425,7 @@ static void LISTVIEW_ScrollColumns(LISTVIEW_INFO *infoPtr, INT nColumn, INT dx)
if
(
nColumn
>=
DPA_GetPtrCount
(
infoPtr
->
hdpaColumns
))
rcCol
.
left
=
rcCol
.
right
;
/* ajust the other columns */
/* a
d
just the other columns */
for
(
nCol
=
nColumn
;
nCol
<
DPA_GetPtrCount
(
infoPtr
->
hdpaColumns
);
nCol
++
)
{
lpColumnInfo
=
LISTVIEW_GetColumnInfo
(
infoPtr
,
nCol
);
...
...
@@ -4436,7 +4436,7 @@ static void LISTVIEW_ScrollColumns(LISTVIEW_INFO *infoPtr, INT nColumn, INT dx)
/* do not update screen if not in report mode */
if
(
!
is_redrawing
(
infoPtr
)
||
(
infoPtr
->
dwStyle
&
LVS_TYPEMASK
)
!=
LVS_REPORT
)
return
;
/* if we have a focus, must first erase the focus rect */
/* if we have a focus,
we
must first erase the focus rect */
if
(
infoPtr
->
bFocus
)
LISTVIEW_ShowFocusRect
(
infoPtr
,
FALSE
);
/* Need to reset the item width when inserting a new column */
...
...
@@ -6497,7 +6497,7 @@ static BOOL LISTVIEW_RedrawItems(const LISTVIEW_INFO *infoPtr, INT nFirst, INT n
* is 16 and an 8 is passed, the list will be scrolled by 16. If a 7
* is passed, then the scroll will be 0. (per MSDN 7/2002)
*
* For: (per experimentaion with native control and CSpy ListView)
* For: (per experimenta
t
ion with native control and CSpy ListView)
* LVS_ICON dy=1 = 1 pixel (vertical only)
* dx ignored
* LVS_SMALLICON dy=1 = 1 pixel (vertical only)
...
...
@@ -10116,7 +10116,7 @@ static LRESULT CALLBACK EditLblWndProcA(HWND hwnd, UINT uMsg, WPARAM wParam, LPA
/***
* DESCRIPTION:
* Creates a subclassed edit cotrol
* Creates a subclassed edit co
n
trol
*
* PARAMETER(S):
* [I] infoPtr : valid pointer to the listview structure
...
...
dlls/comctl32/monthcal.c
View file @
c2a7914d
...
...
@@ -333,7 +333,7 @@ static void MONTHCAL_DrawDay(const MONTHCAL_INFO *infoPtr, HDC hdc, int day, int
wsprintfW
(
buf
,
fmtW
,
day
);
/* No need to check styles: when selection is not valid, it is set to zero.
* 1<day<31, so ever
tyhing'
s OK.
* 1<day<31, so ever
ything i
s OK.
*/
MONTHCAL_CalcDayRect
(
infoPtr
,
&
r
,
x
,
y
);
...
...
@@ -516,7 +516,7 @@ static void MONTHCAL_Refresh(MONTHCAL_INFO *infoPtr, HDC hdc, const PAINTSTRUCT
DeleteObject
(
hbr
);
}
/* draw line under day abbreviatons */
/* draw line under day abbreviat
i
ons */
MoveToEx
(
hdc
,
infoPtr
->
days
.
left
+
3
,
title
->
bottom
+
textHeight
+
1
,
NULL
);
LineTo
(
hdc
,
infoPtr
->
days
.
right
-
3
,
title
->
bottom
+
textHeight
+
1
);
...
...
dlls/comctl32/propsheet.c
View file @
c2a7914d
...
...
@@ -1218,7 +1218,7 @@ static BOOL PROPSHEET_CreateTabControl(HWND hwndParent,
/******************************************************************************
* PROPSHEET_WizardSubclassProc
*
* Subclassing window procedure for wizard extrior pages to prevent drawing
* Subclassing window procedure for wizard ext
e
rior pages to prevent drawing
* background and so drawing above the watermark.
*/
static
LRESULT
CALLBACK
...
...
dlls/comctl32/rebar.c
View file @
c2a7914d
...
...
@@ -74,7 +74,7 @@
/*
* 3. REBAR_MoveChildWindows should have a loop because more than
* one pass
is made
(together with the RBN_CHILDSIZEs) is made on
* one pass (together with the RBN_CHILDSIZEs) is made on
* at least RB_INSERTBAND
*/
...
...
@@ -167,7 +167,7 @@ typedef struct
DWORD
orgStyle
;
/* original style (dwStyle may change) */
SIZE
calcSize
;
/* calculated rebar size - coordinates swapped for CCS_VERT */
BOOL
bUnicode
;
/* TRUE if parent wants notify in W format */
BOOL
DoRedraw
;
/* TRUE to ac
ut
ally draw bands */
BOOL
DoRedraw
;
/* TRUE to ac
tu
ally draw bands */
UINT
fStatus
;
/* Status flags (see below) */
HCURSOR
hcurArrow
;
/* handle to the arrow cursor */
HCURSOR
hcurHorz
;
/* handle to the EW cursor */
...
...
@@ -233,7 +233,7 @@ typedef struct
/* height of a rebar without a child */
#define REBAR_NO_CHILD_HEIGHT 4
/* minim
i
um vertical height of a normal bar */
/* minimum vertical height of a normal bar */
/* or minimum width of a CCS_VERT bar - from experiment on Win2k */
#define REBAR_MINSIZE 23
...
...
@@ -1005,7 +1005,7 @@ REBAR_MoveChildWindows (const REBAR_INFO *infoPtr, UINT start, UINT endplus)
if
(
lpBand
->
hwndChild
)
{
TRACE
(
"hwndChild = %p
\n
"
,
lpBand
->
hwndChild
);
/* Always ge
terate the RBN_CHILDSIZE even it
child
/* Always ge
nerate the RBN_CHILDSIZE even if
child
did not change */
rbcz
.
uBand
=
i
;
rbcz
.
wID
=
lpBand
->
wID
;
...
...
@@ -2142,7 +2142,7 @@ REBAR_GetRect (const REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
return
FALSE
;
lpBand
=
&
infoPtr
->
bands
[
iBand
];
/* For CCS_VERT the coordintes will be swapped - like on Windows */
/* For CCS_VERT the coordin
a
tes will be swapped - like on Windows */
CopyRect
(
lprc
,
&
lpBand
->
rcBand
);
TRACE
(
"band %d, (%d,%d)-(%d,%d)
\n
"
,
iBand
,
...
...
dlls/comctl32/status.c
View file @
c2a7914d
...
...
@@ -31,7 +31,7 @@
* TODO:
* -- CCS_BOTTOM (default)
* -- CCS_LEFT
* -- CCS_NOD
E
VIDER
* -- CCS_NOD
I
VIDER
* -- CCS_NOMOVEX
* -- CCS_NOMOVEY
* -- CCS_NOPARENTALIGN
...
...
dlls/comctl32/tab.c
View file @
c2a7914d
...
...
@@ -2044,7 +2044,7 @@ static void TAB_DrawItem(const TAB_INFO *infoPtr, HDC hdc, INT iItem)
{
/* These are for adjusting the drawing of a Selected tab */
/* The initial values are for the normal case of non-Selected */
int
ZZ
=
1
;
/* Do not strech if selected */
int
ZZ
=
1
;
/* Do not stre
t
ch if selected */
if
(
iItem
==
infoPtr
->
iSelected
)
{
ZZ
=
0
;
...
...
dlls/comctl32/tests/dpa.c
View file @
c2a7914d
...
...
@@ -218,7 +218,7 @@ static void test_dpa(void)
/* Set item with out of bound index */
ok
(
pDPA_SetPtr
(
dpa
,
1
,
(
PVOID
)
6
),
"
\n
"
);
/* Fill the
g
reated gap */
/* Fill the
c
reated gap */
ok
(
pDPA_SetPtr
(
dpa
,
0
,
(
PVOID
)
5
),
"
\n
"
);
rc
=
CheckDPA
(
dpa
,
0x56
,
&
dw
);
ok
(
rc
,
"dw=0x%x
\n
"
,
dw
);
...
...
dlls/comctl32/tests/header.c
View file @
c2a7914d
...
...
@@ -1156,7 +1156,7 @@ static void test_hdm_index_messages(HWND hParent)
ok_sequence
(
sequences
,
HEADER_SEQ_INDEX
,
orderArray_seq
,
"set_get_orderArray sequence testing"
,
FALSE
);
/* check if the array order is set correctly and the size of the array is corret. */
/* check if the array order is set correctly and the size of the array is corre
c
t. */
expect
(
2
,
iSize
);
expect
(
lpiarray
[
0
],
lpiarrayReceived
[
0
]);
expect
(
lpiarray
[
1
],
lpiarrayReceived
[
1
]);
...
...
dlls/comctl32/toolbar.c
View file @
c2a7914d
...
...
@@ -880,7 +880,7 @@ TOOLBAR_DrawButton (HWND hwnd, TBUTTON_INFO *btnPtr, HDC hdc, DWORD dwBaseCustDr
}
/* copy text & bitmap rects after adjusting for drop-down arrow
* so that text & bitmap is centred in the rectangle not containing
* so that text & bitmap is cent
e
red in the rectangle not containing
* the arrow */
CopyRect
(
&
rcText
,
&
rc
);
CopyRect
(
&
rcBitmap
,
&
rc
);
...
...
@@ -1769,7 +1769,7 @@ TOOLBAR_LayoutToolbar(HWND hwnd)
else
y
+=
cy
;
/* nSepRows is used to calculate the extra height foll
wo
ing */
/* nSepRows is used to calculate the extra height foll
ow
ing */
/* the last row. */
nSepRows
++
;
}
...
...
@@ -4967,7 +4967,7 @@ TOOLBAR_SetRows (HWND hwnd, WPARAM wParam, LPARAM lParam)
rows (if CCS_NORESIZE is set), or will take up the whole window
(if no CCS_NORESIZE).
Basic algorith
u
m - If N buttons, and y rows requested, each row
Basic algorithm - If N buttons, and y rows requested, each row
contains N/y buttons.
FIXME: Handling of separators not obvious from testing results
...
...
dlls/comctl32/trackbar.c
View file @
c2a7914d
...
...
@@ -865,7 +865,7 @@ TRACKBAR_Refresh (TRACKBAR_INFO *infoPtr, HDC hdcDst)
gcdrf
=
notify_customdraw
(
infoPtr
,
&
nmcd
,
CDDS_PREPAINT
);
if
(
gcdrf
&
CDRF_SKIPDEFAULT
)
goto
cleanup
;
/* Erase back
b
round */
/* Erase back
g
round */
if
(
gcdrf
==
CDRF_DODEFAULT
||
notify_customdraw
(
infoPtr
,
&
nmcd
,
CDDS_PREERASE
)
!=
CDRF_SKIPDEFAULT
)
{
if
((
theme
=
GetWindowTheme
(
infoPtr
->
hwndSelf
)))
{
...
...
dlls/comctl32/treeview.c
View file @
c2a7914d
...
...
@@ -2042,7 +2042,7 @@ TREEVIEW_GetItemRect(const TREEVIEW_INFO *infoPtr, BOOL fTextRect, LPRECT lpRect
static
inline
LRESULT
TREEVIEW_GetVisibleCount
(
const
TREEVIEW_INFO
*
infoPtr
)
{
/* Suprise! This does not take integral height into account. */
/* Su
r
prise! This does not take integral height into account. */
return
infoPtr
->
clientHeight
/
infoPtr
->
uItemHeight
;
}
...
...
@@ -2138,7 +2138,7 @@ TREEVIEW_SetItemT(TREEVIEW_INFO *infoPtr, const TVITEMEXW *tvItem, BOOL isW)
if
(
!
TREEVIEW_ValidItem
(
infoPtr
,
wineItem
))
return
FALSE
;
/* store the orignal item values */
/* store the orig
i
nal item values */
originalItem
=
*
wineItem
;
if
(
!
TREEVIEW_DoSetItemT
(
infoPtr
,
wineItem
,
tvItem
,
isW
))
...
...
@@ -3017,7 +3017,7 @@ TREEVIEW_Sort(TREEVIEW_INFO *infoPtr, BOOL fRecurse, HTREEITEM parent,
item
=
(
HTREEITEM
)
DPA_GetPtr
(
sortList
,
count
++
);
while
((
nextItem
=
(
HTREEITEM
)
DPA_GetPtr
(
sortList
,
count
++
))
!=
NULL
)
{
/* link the two current item tog
h
ether */
/* link the two current item together */
item
->
nextSibling
=
nextItem
;
nextItem
->
prevSibling
=
item
;
...
...
@@ -4367,7 +4367,7 @@ TREEVIEW_SelectItem(TREEVIEW_INFO *infoPtr, INT wParam, HTREEITEM item)
* BUGS
*
* - The current implementation has a list of characters it will
* accept and it ignores
a
verything else. In particular it will
* accept and it ignores
e
verything else. In particular it will
* ignore accentuated characters which seems to match what
* Windows does. But I'm not sure it makes sense to follow
* Windows there.
...
...
@@ -4517,7 +4517,7 @@ TREEVIEW_EnsureVisible(TREEVIEW_INFO *infoPtr, HTREEITEM item, BOOL bHScroll)
/* Expand parents as necessary. */
HTREEITEM
parent
;
/* see if we are trying to ensure that root is vis
l
ble */
/* see if we are trying to ensure that root is vis
i
ble */
if
((
item
!=
infoPtr
->
root
)
&&
TREEVIEW_ValidItem
(
infoPtr
,
item
))
parent
=
item
->
parent
;
else
...
...
dlls/comctl32/updown.c
View file @
c2a7914d
...
...
@@ -137,7 +137,7 @@ static BOOL UPDOWN_InBounds(const UPDOWN_INFO *infoPtr, int val)
/***********************************************************************
* UPDOWN_OffsetVal
* Change the current value by delta.
* It returns TRUE is the value was changed successfuly, or FALSE
* It returns TRUE is the value was changed successful
l
y, or FALSE
* if the value was not changed, as it would go out of bounds.
*/
static
BOOL
UPDOWN_OffsetVal
(
UPDOWN_INFO
*
infoPtr
,
int
delta
)
...
...
@@ -174,7 +174,7 @@ static BOOL UPDOWN_HasBuddyBorder(const UPDOWN_INFO *infoPtr)
* rect - will hold the rectangle
* arrow - FLAG_INCR to get the "increment" rect (up or right)
* FLAG_DECR to get the "decrement" rect (down or left)
* If both flags are pres
s
ent, the envelope is returned.
* If both flags are present, the envelope is returned.
*/
static
void
UPDOWN_GetArrowRect
(
const
UPDOWN_INFO
*
infoPtr
,
RECT
*
rect
,
int
arrow
)
{
...
...
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