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
882bc4d1
Commit
882bc4d1
authored
Jun 09, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Jun 09, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Warning fixes for -Wmissing-declarations and -Wwrite-strings.
parent
f5c433fa
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
69 additions
and
66 deletions
+69
-66
comctl32.h
dlls/comctl32/comctl32.h
+58
-0
commctrl.c
dlls/comctl32/commctrl.c
+0
-43
flatsb.c
dlls/comctl32/flatsb.c
+1
-0
listview.c
dlls/comctl32/listview.c
+1
-1
monthcal.c
dlls/comctl32/monthcal.c
+1
-14
propsheet.c
dlls/comctl32/propsheet.c
+2
-2
dpa.c
dlls/comctl32/tests/dpa.c
+1
-1
tab.c
dlls/comctl32/tests/tab.c
+3
-3
updown.c
dlls/comctl32/tests/updown.c
+2
-2
No files found.
dlls/comctl32/comctl32.h
View file @
882bc4d1
...
...
@@ -191,4 +191,62 @@ BOOL WINAPI DPA_Merge (const HDPA, const HDPA, DWORD, PFNDPACOMPARE, PFNDPAMERGE
LRESULT
WINAPI
SetPathWordBreakProc
(
HWND
hwnd
,
BOOL
bSet
);
BOOL
WINAPI
MirrorIcon
(
HICON
*
phicon1
,
HICON
*
phicon2
);
extern
void
ANIMATE_Register
(
void
);
extern
void
ANIMATE_Unregister
(
void
);
extern
void
COMBOEX_Register
(
void
);
extern
void
COMBOEX_Unregister
(
void
);
extern
void
DATETIME_Register
(
void
);
extern
void
DATETIME_Unregister
(
void
);
extern
void
FLATSB_Register
(
void
);
extern
void
FLATSB_Unregister
(
void
);
extern
void
HEADER_Register
(
void
);
extern
void
HEADER_Unregister
(
void
);
extern
void
HOTKEY_Register
(
void
);
extern
void
HOTKEY_Unregister
(
void
);
extern
void
IPADDRESS_Register
(
void
);
extern
void
IPADDRESS_Unregister
(
void
);
extern
void
LISTVIEW_Register
(
void
);
extern
void
LISTVIEW_Unregister
(
void
);
extern
void
MONTHCAL_Register
(
void
);
extern
void
MONTHCAL_Unregister
(
void
);
extern
void
NATIVEFONT_Register
(
void
);
extern
void
NATIVEFONT_Unregister
(
void
);
extern
void
PAGER_Register
(
void
);
extern
void
PAGER_Unregister
(
void
);
extern
void
PROGRESS_Register
(
void
);
extern
void
PROGRESS_Unregister
(
void
);
extern
void
REBAR_Register
(
void
);
extern
void
REBAR_Unregister
(
void
);
extern
void
STATUS_Register
(
void
);
extern
void
STATUS_Unregister
(
void
);
extern
void
SYSLINK_Register
(
void
);
extern
void
SYSLINK_Unregister
(
void
);
extern
void
TAB_Register
(
void
);
extern
void
TAB_Unregister
(
void
);
extern
void
TOOLBAR_Register
(
void
);
extern
void
TOOLBAR_Unregister
(
void
);
extern
void
TOOLTIPS_Register
(
void
);
extern
void
TOOLTIPS_Unregister
(
void
);
extern
void
TRACKBAR_Register
(
void
);
extern
void
TRACKBAR_Unregister
(
void
);
extern
void
TREEVIEW_Register
(
void
);
extern
void
TREEVIEW_Unregister
(
void
);
extern
void
UPDOWN_Register
(
void
);
extern
void
UPDOWN_Unregister
(
void
);
int
MONTHCAL_MonthLength
(
int
month
,
int
year
);
static
inline
void
MONTHCAL_CopyTime
(
const
SYSTEMTIME
*
from
,
SYSTEMTIME
*
to
)
{
to
->
wYear
=
from
->
wYear
;
to
->
wMonth
=
from
->
wMonth
;
to
->
wDayOfWeek
=
from
->
wDayOfWeek
;
to
->
wDay
=
from
->
wDay
;
to
->
wHour
=
from
->
wHour
;
to
->
wMinute
=
from
->
wMinute
;
to
->
wSecond
=
from
->
wSecond
;
to
->
wMilliseconds
=
from
->
wMilliseconds
;
}
#endif
/* __WINE_COMCTL32_H */
dlls/comctl32/commctrl.c
View file @
882bc4d1
...
...
@@ -73,49 +73,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
commctrl
);
extern
void
ANIMATE_Register
(
void
);
extern
void
ANIMATE_Unregister
(
void
);
extern
void
COMBOEX_Register
(
void
);
extern
void
COMBOEX_Unregister
(
void
);
extern
void
DATETIME_Register
(
void
);
extern
void
DATETIME_Unregister
(
void
);
extern
void
FLATSB_Register
(
void
);
extern
void
FLATSB_Unregister
(
void
);
extern
void
HEADER_Register
(
void
);
extern
void
HEADER_Unregister
(
void
);
extern
void
HOTKEY_Register
(
void
);
extern
void
HOTKEY_Unregister
(
void
);
extern
void
IPADDRESS_Register
(
void
);
extern
void
IPADDRESS_Unregister
(
void
);
extern
void
LISTVIEW_Register
(
void
);
extern
void
LISTVIEW_Unregister
(
void
);
extern
void
MONTHCAL_Register
(
void
);
extern
void
MONTHCAL_Unregister
(
void
);
extern
void
NATIVEFONT_Register
(
void
);
extern
void
NATIVEFONT_Unregister
(
void
);
extern
void
PAGER_Register
(
void
);
extern
void
PAGER_Unregister
(
void
);
extern
void
PROGRESS_Register
(
void
);
extern
void
PROGRESS_Unregister
(
void
);
extern
void
REBAR_Register
(
void
);
extern
void
REBAR_Unregister
(
void
);
extern
void
STATUS_Register
(
void
);
extern
void
STATUS_Unregister
(
void
);
extern
void
SYSLINK_Register
(
void
);
extern
void
SYSLINK_Unregister
(
void
);
extern
void
TAB_Register
(
void
);
extern
void
TAB_Unregister
(
void
);
extern
void
TOOLBAR_Register
(
void
);
extern
void
TOOLBAR_Unregister
(
void
);
extern
void
TOOLTIPS_Register
(
void
);
extern
void
TOOLTIPS_Unregister
(
void
);
extern
void
TRACKBAR_Register
(
void
);
extern
void
TRACKBAR_Unregister
(
void
);
extern
void
TREEVIEW_Register
(
void
);
extern
void
TREEVIEW_Unregister
(
void
);
extern
void
UPDOWN_Register
(
void
);
extern
void
UPDOWN_Unregister
(
void
);
LRESULT
WINAPI
COMCTL32_SubclassProc
(
HWND
hWnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
LPWSTR
COMCTL32_wSubclass
=
NULL
;
...
...
dlls/comctl32/flatsb.c
View file @
882bc4d1
...
...
@@ -36,6 +36,7 @@
#include "winerror.h"
#include "winuser.h"
#include "commctrl.h"
#include "comctl32.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
commctrl
);
...
...
dlls/comctl32/listview.c
View file @
882bc4d1
...
...
@@ -6926,7 +6926,7 @@ static DWORD LISTVIEW_SetIconSpacing(LISTVIEW_INFO *infoPtr, INT cx, INT cy)
return
oldspacing
;
}
inline
void
set_icon_size
(
SIZE
*
size
,
HIMAGELIST
himl
,
BOOL
small
)
static
inline
void
set_icon_size
(
SIZE
*
size
,
HIMAGELIST
himl
,
BOOL
small
)
{
INT
cx
,
cy
;
...
...
dlls/comctl32/monthcal.c
View file @
882bc4d1
...
...
@@ -134,7 +134,7 @@ static const int DayOfWeekTable[] = {0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4};
/* january is 1, december is 12 */
int
MONTHCAL_MonthLength
(
int
month
,
int
year
)
{
const
int
mdays
[]
=
{
31
,
28
,
31
,
30
,
31
,
30
,
31
,
31
,
30
,
31
,
30
,
31
,
0
};
const
int
mdays
[]
=
{
31
,
28
,
31
,
30
,
31
,
30
,
31
,
31
,
30
,
31
,
30
,
31
,
0
};
/*Wrap around, this eases handling*/
if
(
month
==
0
)
month
=
12
;
...
...
@@ -170,19 +170,6 @@ static int MONTHCAL_ValidateTime(SYSTEMTIME time)
}
void
MONTHCAL_CopyTime
(
const
SYSTEMTIME
*
from
,
SYSTEMTIME
*
to
)
{
to
->
wYear
=
from
->
wYear
;
to
->
wMonth
=
from
->
wMonth
;
to
->
wDayOfWeek
=
from
->
wDayOfWeek
;
to
->
wDay
=
from
->
wDay
;
to
->
wHour
=
from
->
wHour
;
to
->
wMinute
=
from
->
wMinute
;
to
->
wSecond
=
from
->
wSecond
;
to
->
wMilliseconds
=
from
->
wMilliseconds
;
}
/* Note:Depending on DST, this may be offset by a day.
Need to find out if we're on a DST place & adjust the clock accordingly.
Above function assumes we have a valid data.
...
...
dlls/comctl32/propsheet.c
View file @
882bc4d1
...
...
@@ -296,7 +296,7 @@ static void PROPSHEET_GetPageRect(const PropSheetInfo * psInfo, HWND hwndDlg,
*
* Find page index corresponding to page resource id.
*/
INT
PROPSHEET_FindPageByResId
(
PropSheetInfo
*
psInfo
,
LRESULT
resId
)
static
INT
PROPSHEET_FindPageByResId
(
PropSheetInfo
*
psInfo
,
LRESULT
resId
)
{
INT
i
;
...
...
@@ -1265,7 +1265,7 @@ static BOOL PROPSHEET_CreateTabControl(HWND hwndParent,
* Subclassing window procedure for wizard extrior pages to prevent drawing
* background and so drawing above the watermark.
*/
LRESULT
CALLBACK
static
LRESULT
CALLBACK
PROPSHEET_WizardSubclassProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
,
UINT_PTR
uID
,
DWORD_PTR
dwRef
)
{
switch
(
uMsg
)
...
...
dlls/comctl32/tests/dpa.c
View file @
882bc4d1
...
...
@@ -41,7 +41,7 @@ static INT CALLBACK dpa_strcmp(LPVOID pvstr1, LPVOID pvstr2, LPARAM flags)
return
lstrcmpA
(
str1
,
str2
);
}
void
DPA_test
(
)
static
void
DPA_test
(
void
)
{
HDPA
dpa_ret
;
INT
int_ret
;
...
...
dlls/comctl32/tests/tab.c
View file @
882bc4d1
...
...
@@ -39,7 +39,7 @@
#define trace_tab(str)
#endif
HWND
static
HWND
create_tabcontrol
(
DWORD
style
)
{
HWND
handle
;
...
...
@@ -76,7 +76,7 @@ create_tabcontrol (DWORD style)
return
handle
;
}
void
CheckSize
(
HWND
hwnd
,
INT
width
,
INT
height
)
static
void
CheckSize
(
HWND
hwnd
,
INT
width
,
INT
height
)
{
RECT
rTab
,
r1
;
...
...
@@ -95,7 +95,7 @@ void CheckSize(HWND hwnd, INT width, INT height)
"Expected [%d,%d] got [%ld,%ld]
\n
"
,
width
,
height
,
rTab
.
right
-
rTab
.
left
,
rTab
.
bottom
-
rTab
.
top
);
}
void
TabCheckSetSize
(
HWND
hwnd
,
INT
SetWidth
,
INT
SetHeight
,
INT
ExpWidth
,
INT
ExpHeight
)
static
void
TabCheckSetSize
(
HWND
hwnd
,
INT
SetWidth
,
INT
SetHeight
,
INT
ExpWidth
,
INT
ExpHeight
)
{
SendMessage
(
hwnd
,
TCM_SETITEMSIZE
,
0
,
(
LPARAM
)
MAKELPARAM
((
SetWidth
>=
0
)
?
SetWidth
:
0
,
(
SetHeight
>=
0
)
?
SetHeight
:
0
));
...
...
dlls/comctl32/tests/updown.c
View file @
882bc4d1
...
...
@@ -27,7 +27,7 @@
static
HDC
desktopDC
;
static
HINSTANCE
hinst
;
HWND
create_edit_control
(
DWORD
style
,
DWORD
exstyle
)
static
HWND
create_edit_control
(
DWORD
style
,
DWORD
exstyle
)
{
HWND
handle
;
...
...
@@ -43,7 +43,7 @@ HWND create_edit_control (DWORD style, DWORD exstyle)
return
handle
;
}
HWND
create_updown_control
(
HWND
hWndEdit
)
static
HWND
create_updown_control
(
HWND
hWndEdit
)
{
HWND
hWndUpDown
;
...
...
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