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
820da77d
Commit
820da77d
authored
May 24, 2000
by
Susan Farley
Committed by
Alexandre Julliard
May 24, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Defer to standard scrolling APIs for non-flatSB specific functions so
that flatSBs show up and behave properly, just not with flat properties.
parent
c5384f14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
79 additions
and
54 deletions
+79
-54
flatsb.c
dlls/comctl32/flatsb.c
+79
-54
No files found.
dlls/comctl32/flatsb.c
View file @
820da77d
...
...
@@ -16,6 +16,7 @@
*/
#include "winbase.h"
#include "winerror.h"
#include "commctrl.h"
#include "flatsb.h"
#include "debugtools.h"
...
...
@@ -27,128 +28,154 @@ DEFAULT_DEBUG_CHANNEL(commctrl)
/***********************************************************************
* FlatSB_EnableScrollBar
* InitializeFlatSB
*
* returns nonzero if successful, zero otherwise
*
*/
BOOL
WINAPI
FlatSB_EnableScrollBar
(
HWND
hwnd
,
INT
dummy
,
UINT
dummy2
)
BOOL
WINAPI
InitializeFlatSB
(
HWND
hwnd
)
{
TRACE
(
"[%04x]
\n
"
,
hwnd
);
FIXME
(
"stub
\n
"
);
return
0
;
return
FALSE
;
}
/***********************************************************************
* FlatSB_ShowScrollBar
* UninitializeFlatSB
*
* returns:
* E_FAIL if one of the scroll bars is currently in use
* S_FALSE if InitializeFlatSB was never called on this hwnd
* S_OK otherwise
*
*/
BOOL
WINAPI
FlatSB_ShowScrollBar
(
HWND
hwnd
,
INT
code
,
BOOL
flag
)
HRESULT
WINAPI
UninitializeFlatSB
(
HWND
hwnd
)
{
TRACE
(
"[%04x]
\n
"
,
hwnd
);
FIXME
(
"stub
\n
"
);
return
0
;
return
S_FALSE
;
}
/***********************************************************************
* FlatSB_GetScrollRange
* FlatSB_GetScrollProp
*
* Returns nonzero if successful, or zero otherwise. If index is WSB_PROP_HSTYLE,
* the return is nonzero if InitializeFlatSB has been called for this window, or
* zero otherwise.
*
*/
BOOL
WINAPI
FlatSB_GetScroll
Range
(
HWND
hwnd
,
INT
code
,
LPINT
min
,
LPINT
max
)
FlatSB_GetScroll
Prop
(
HWND
hwnd
,
INT
propIndex
,
LPINT
prop
)
{
TRACE
(
"[%04x] propIndex=%d
\n
"
,
hwnd
,
propIndex
);
FIXME
(
"stub
\n
"
);
return
0
;
return
FALSE
;
}
/***********************************************************************
* FlatSB_
GetScrollInfo
* FlatSB_
SetScrollProp
*/
BOOL
WINAPI
FlatSB_
GetScrollInfo
(
HWND
hwnd
,
INT
code
,
LPSCROLLINFO
info
)
FlatSB_
SetScrollProp
(
HWND
hwnd
,
UINT
index
,
INT
newValue
,
BOOL
flag
)
{
TRACE
(
"[%04x] index=%u newValue=%d flag=%d
\n
"
,
hwnd
,
index
,
newValue
,
flag
);
FIXME
(
"stub
\n
"
);
return
0
;
return
FALSE
;
}
/***********************************************************************
* FlatSB_GetScrollPos
* From the Microsoft docs:
* "If flat scroll bars haven't been initialized for the
* window, the flat scroll bar APIs will defer to the corresponding
* standard APIs. This allows the developer to turn flat scroll
* bars on and off without having to write conditional code."
*
* So, if we just call the standard functions until we implement
* the flat scroll bar functions, flat scroll bars will show up and
* behave properly, as though they had simply not been setup to
* have flat properties.
*
* Susan <sfarley@codeweavers.com>
*
*/
INT
WINAPI
FlatSB_GetScrollPos
(
HWND
hwnd
,
INT
code
)
/***********************************************************************
* FlatSB_EnableScrollBar
*/
BOOL
WINAPI
FlatSB_EnableScrollBar
(
HWND
hwnd
,
int
nBar
,
UINT
flags
)
{
FIXME
(
"stub
\n
"
);
return
0
;
return
EnableScrollBar
(
hwnd
,
nBar
,
flags
);
}
/***********************************************************************
* FlatSB_
GetScrollProp
* FlatSB_
ShowScrollBar
*/
BOOL
WINAPI
FlatSB_
GetScrollProp
(
HWND
hwnd
,
INT
propIndex
,
LPINT
prop
)
FlatSB_
ShowScrollBar
(
HWND
hwnd
,
int
nBar
,
BOOL
fShow
)
{
FIXME
(
"stub
\n
"
);
return
0
;
return
ShowScrollBar
(
hwnd
,
nBar
,
fShow
);
}
/***********************************************************************
* FlatSB_
SetScrollPos
* FlatSB_
GetScrollRange
*/
INT
WINAPI
FlatSB_
SetScrollPos
(
HWND
hwnd
,
INT
code
,
INT
pos
,
BOOL
fRedraw
)
BOOL
WINAPI
FlatSB_
GetScrollRange
(
HWND
hwnd
,
int
nBar
,
LPINT
min
,
LPINT
max
)
{
FIXME
(
"stub
\n
"
);
return
0
;
return
GetScrollRange
(
hwnd
,
nBar
,
min
,
max
);
}
/***********************************************************************
* FlatSB_
S
etScrollInfo
* FlatSB_
G
etScrollInfo
*/
INT
WINAPI
FlatSB_
SetScrollInfo
(
HWND
hwnd
,
INT
code
,
LPSCROLLINFO
info
,
BOOL
fRedraw
)
BOOL
WINAPI
FlatSB_
GetScrollInfo
(
HWND
hwnd
,
int
nBar
,
LPSCROLLINFO
info
)
{
FIXME
(
"stub
\n
"
);
return
0
;
return
GetScrollInfo
(
hwnd
,
nBar
,
info
);
}
/***********************************************************************
* FlatSB_
SetScrollRange
* FlatSB_
GetScrollPos
*/
INT
WINAPI
FlatSB_
SetScrollRange
(
HWND
hwnd
,
INT
code
,
INT
min
,
INT
max
,
BOOL
fRedraw
)
FlatSB_
GetScrollPos
(
HWND
hwnd
,
int
nBar
)
{
FIXME
(
"stub
\n
"
);
return
0
;
return
GetScrollPos
(
hwnd
,
nBar
);
}
/***********************************************************************
* FlatSB_SetScrollP
rop
* FlatSB_SetScrollP
os
*/
BOOL
WINAPI
FlatSB_SetScrollP
rop
(
HWND
hwnd
,
UINT
index
,
INT
newValue
,
BOOL
flag
)
INT
WINAPI
FlatSB_SetScrollP
os
(
HWND
hwnd
,
int
nBar
,
INT
pos
,
BOOL
bRedraw
)
{
FIXME
(
"stub
\n
"
);
return
0
;
return
SetScrollPos
(
hwnd
,
nBar
,
pos
,
bRedraw
);
}
/***********************************************************************
*
InitializeFlatSB
*
FlatSB_SetScrollInfo
*/
BOOL
WINAPI
InitializeFlatSB
(
HWND
hwnd
)
INT
WINAPI
FlatSB_SetScrollInfo
(
HWND
hwnd
,
int
nBar
,
LPSCROLLINFO
info
,
BOOL
bRedraw
)
{
FIXME
(
"stub
\n
"
);
return
0
;
return
SetScrollInfo
(
hwnd
,
nBar
,
info
,
bRedraw
);
}
/***********************************************************************
*
UninitializeFlatSB
*
FlatSB_SetScrollRange
*/
HRESULT
WINAPI
UninitializeFlatSB
(
HWND
hwnd
)
INT
WINAPI
FlatSB_SetScrollRange
(
HWND
hwnd
,
int
nBar
,
INT
min
,
INT
max
,
BOOL
bRedraw
)
{
FIXME
(
"stub
\n
"
);
return
0
;
return
SetScrollRange
(
hwnd
,
nBar
,
min
,
max
,
bRedraw
);
}
static
LRESULT
FlatSB_Create
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
TRACE
(
"[%04x] wParam=%04x lParam=%08lx
\n
"
,
hwnd
,
wParam
,
lParam
);
return
0
;
}
...
...
@@ -156,18 +183,16 @@ FlatSB_Create (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
FlatSB_Destroy
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
TRACE
(
"[%04x] wParam=%04x lParam=%08lx
\n
"
,
hwnd
,
wParam
,
lParam
);
return
0
;
}
static
LRESULT
WINAPI
FlatSB_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
switch
(
uMsg
)
{
case
WM_CREATE
:
return
FlatSB_Create
(
hwnd
,
wParam
,
lParam
);
...
...
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