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
386cf457
Commit
386cf457
authored
Jan 09, 2005
by
Vitaly Lipatov
Committed by
Alexandre Julliard
Jan 09, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added handling of SBM_GETSCROLLBARINFO message.
parent
56dbf7fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletion
+29
-1
message.c
dlls/user/message.c
+14
-1
winuser.h
include/winuser.h
+15
-0
No files found.
dlls/user/message.c
View file @
386cf457
...
...
@@ -106,7 +106,7 @@ static const unsigned int message_pointer_flags[] =
/* 0xc0 - 0xdf */
SET
(
EM_REPLACESEL
)
|
SET
(
EM_GETLINE
)
|
SET
(
EM_SETTABSTOPS
),
/* 0xe0 - 0xff */
SET
(
SBM_GETRANGE
)
|
SET
(
SBM_SETSCROLLINFO
)
|
SET
(
SBM_GETSCROLLINFO
),
SET
(
SBM_GETRANGE
)
|
SET
(
SBM_SETSCROLLINFO
)
|
SET
(
SBM_GETSCROLLINFO
)
|
SET
(
SBM_GETSCROLLBARINFO
)
,
/* 0x100 - 0x11f */
0
,
/* 0x120 - 0x13f */
...
...
@@ -499,6 +499,13 @@ static size_t pack_message( HWND hwnd, UINT message, WPARAM wparam, LPARAM lpara
case
SBM_GETSCROLLINFO
:
push_data
(
data
,
(
SCROLLINFO
*
)
lparam
,
sizeof
(
SCROLLINFO
)
);
return
sizeof
(
SCROLLINFO
);
case
SBM_GETSCROLLBARINFO
:
{
const
SCROLLBARINFO
*
info
=
(
const
SCROLLBARINFO
*
)
lparam
;
size_t
size
=
min
(
info
->
cbSize
,
sizeof
(
SCROLLBARINFO
)
);
push_data
(
data
,
info
,
size
);
return
size
;
}
case
EM_GETSEL
:
case
SBM_GETRANGE
:
case
CB_GETEDITSEL
:
...
...
@@ -724,6 +731,9 @@ static BOOL unpack_message( HWND hwnd, UINT message, WPARAM *wparam, LPARAM *lpa
case
SBM_GETSCROLLINFO
:
if
(
!
get_buffer_space
(
buffer
,
sizeof
(
SCROLLINFO
)))
return
FALSE
;
break
;
case
SBM_GETSCROLLBARINFO
:
if
(
!
get_buffer_space
(
buffer
,
sizeof
(
SCROLLBARINFO
)))
return
FALSE
;
break
;
case
EM_GETSEL
:
case
SBM_GETRANGE
:
case
CB_GETEDITSEL
:
...
...
@@ -999,6 +1009,9 @@ static void unpack_reply( HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam,
case
SBM_GETSCROLLINFO
:
memcpy
(
(
SCROLLINFO
*
)
lparam
,
buffer
,
min
(
sizeof
(
SCROLLINFO
),
size
));
break
;
case
SBM_GETSCROLLBARINFO
:
memcpy
(
(
SCROLLBARINFO
*
)
lparam
,
buffer
,
min
(
sizeof
(
SCROLLBARINFO
),
size
));
break
;
case
EM_GETRECT
:
case
CB_GETDROPPEDCONTROLRECT
:
case
LB_GETITEMRECT
:
...
...
include/winuser.h
View file @
386cf457
...
...
@@ -2118,6 +2118,7 @@ typedef PVOID *LPMENUTEMPLATE;
#define SBM_SETRANGEREDRAW 0x00e6
#define SBM_SETSCROLLINFO 0x00e9
#define SBM_GETSCROLLINFO 0x00ea
#define SBM_GETSCROLLBARINFO 0x00eb
/* Scrollbar info */
typedef
struct
tagSCROLLINFO
...
...
@@ -2133,6 +2134,19 @@ typedef struct tagSCROLLINFO
typedef
const
SCROLLINFO
*
LPCSCROLLINFO
;
#define CCHILDREN_SCROLLBAR 5
typedef
struct
tagSCROLLBARINFO
{
DWORD
cbSize
;
/* Size of SCROLLBARINFO struct */
RECT
rcScrollBar
;
/* Coordinates of the scroll bar */
INT
dxyLineButton
;
/* Height or width */
INT
xyThumbTop
;
/* Position of the top or the left */
INT
xyThumbBottom
;
/* Position of the bottom or the right */
INT
reserved
;
DWORD
rgstate
[
CCHILDREN_SCROLLBAR
+
1
];
}
SCROLLBARINFO
,
*
PSCROLLBARINFO
,
*
LPSCROLLBARINFO
;
/* GetScrollInfo() flags */
#define SIF_RANGE 0x0001
#define SIF_PAGE 0x0002
...
...
@@ -4239,6 +4253,7 @@ HANDLE WINAPI GetPropW(HWND,LPCWSTR);
#define GetProp WINELIB_NAME_AW(GetProp)
DWORD
WINAPI
GetQueueStatus
(
UINT
);
BOOL
WINAPI
GetScrollInfo
(
HWND
,
INT
,
LPSCROLLINFO
);
BOOL
WINAPI
GetScrollBarInfo
(
HWND
,
LONG
,
LPSCROLLBARINFO
);
INT
WINAPI
GetScrollPos
(
HWND
,
INT
);
BOOL
WINAPI
GetScrollRange
(
HWND
,
INT
,
LPINT
,
LPINT
);
HWND
WINAPI
GetShellWindow
(
void
);
...
...
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