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
ca5184f5
Commit
ca5184f5
authored
Feb 15, 2015
by
Mark Harmstone
Committed by
Alexandre Julliard
Feb 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Add themed scrollbar stub.
parent
18c41f71
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
2 deletions
+52
-2
Makefile.in
dlls/comctl32/Makefile.in
+1
-0
theme_scrollbar.c
dlls/comctl32/theme_scrollbar.c
+44
-0
theming.c
dlls/comctl32/theming.c
+7
-2
No files found.
dlls/comctl32/Makefile.in
View file @
ca5184f5
...
...
@@ -35,6 +35,7 @@ C_SRCS = \
theme_dialog.c
\
theme_edit.c
\
theme_listbox.c
\
theme_scrollbar.c
\
theming.c
\
toolbar.c
\
tooltips.c
\
...
...
dlls/comctl32/theme_scrollbar.c
0 → 100644
View file @
ca5184f5
/*
* Theming - Scrollbar control
*
* Copyright (c) 2015 Mark Harmstone
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*
*/
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "uxtheme.h"
#include "vssym32.h"
#include "comctl32.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
theme_scroll
);
LRESULT
CALLBACK
THEMING_ScrollbarSubclassProc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
,
ULONG_PTR
dwRefData
)
{
TRACE
(
"(%p, 0x%x, %lu, %lu, %lu)
\n
"
,
hwnd
,
msg
,
wParam
,
lParam
,
dwRefData
);
return
THEMING_CallOriginalClass
(
hwnd
,
msg
,
wParam
,
lParam
);
}
dlls/comctl32/theming.c
View file @
ca5184f5
...
...
@@ -44,6 +44,8 @@ extern LRESULT CALLBACK THEMING_EditSubclassProc (HWND, UINT, WPARAM, LPARAM,
ULONG_PTR
)
DECLSPEC_HIDDEN
;
extern
LRESULT
CALLBACK
THEMING_ListBoxSubclassProc
(
HWND
,
UINT
,
WPARAM
,
LPARAM
,
ULONG_PTR
)
DECLSPEC_HIDDEN
;
extern
LRESULT
CALLBACK
THEMING_ScrollbarSubclassProc
(
HWND
,
UINT
,
WPARAM
,
LPARAM
,
ULONG_PTR
)
DECLSPEC_HIDDEN
;
static
const
WCHAR
dialogClass
[]
=
{
'#'
,
'3'
,
'2'
,
'7'
,
'7'
,
'0'
,
0
};
static
const
WCHAR
comboLboxClass
[]
=
{
'C'
,
'o'
,
'm'
,
'b'
,
'o'
,
'L'
,
'b'
,
'o'
,
'x'
,
0
};
...
...
@@ -59,7 +61,8 @@ static const struct ThemingSubclass
{
WC_COMBOBOXW
,
THEMING_ComboSubclassProc
},
{
comboLboxClass
,
THEMING_ListBoxSubclassProc
},
{
WC_EDITW
,
THEMING_EditSubclassProc
},
{
WC_LISTBOXW
,
THEMING_ListBoxSubclassProc
}
{
WC_LISTBOXW
,
THEMING_ListBoxSubclassProc
},
{
WC_SCROLLBARW
,
THEMING_ScrollbarSubclassProc
}
};
#define NUM_SUBCLASSES (sizeof(subclasses)/sizeof(subclasses[0]))
...
...
@@ -95,6 +98,7 @@ MAKE_SUBCLASS_PROC(2)
MAKE_SUBCLASS_PROC
(
3
)
MAKE_SUBCLASS_PROC
(
4
)
MAKE_SUBCLASS_PROC
(
5
)
MAKE_SUBCLASS_PROC
(
6
)
static
const
WNDPROC
subclassProcs
[
NUM_SUBCLASSES
]
=
{
subclass_proc0
,
...
...
@@ -102,7 +106,8 @@ static const WNDPROC subclassProcs[NUM_SUBCLASSES] = {
subclass_proc2
,
subclass_proc3
,
subclass_proc4
,
subclass_proc5
subclass_proc5
,
subclass_proc6
};
/***********************************************************************
...
...
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