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
9fb76ddd
Commit
9fb76ddd
authored
Sep 12, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Add a SetLayeredWindowAttributes driver entry point.
parent
d476761f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletion
+16
-1
driver.c
dlls/user32/driver.c
+12
-0
user_private.h
dlls/user32/user_private.h
+1
-0
win.c
dlls/user32/win.c
+3
-1
No files found.
dlls/user32/driver.c
View file @
9fb76ddd
...
...
@@ -114,6 +114,7 @@ static const USER_DRIVER *load_driver(void)
GET_USER_FUNC
(
ScrollDC
);
GET_USER_FUNC
(
SetCapture
);
GET_USER_FUNC
(
SetFocus
);
GET_USER_FUNC
(
SetLayeredWindowAttributes
);
GET_USER_FUNC
(
SetParent
);
GET_USER_FUNC
(
SetWindowRgn
);
GET_USER_FUNC
(
SetWindowIcon
);
...
...
@@ -375,6 +376,10 @@ static void nulldrv_SetFocus( HWND hwnd )
{
}
static
void
nulldrv_SetLayeredWindowAttributes
(
HWND
hwnd
,
COLORREF
key
,
BYTE
alpha
,
DWORD
flags
)
{
}
static
void
nulldrv_SetParent
(
HWND
hwnd
,
HWND
parent
,
HWND
old_parent
)
{
}
...
...
@@ -473,6 +478,7 @@ static USER_DRIVER null_driver =
nulldrv_ScrollDC
,
nulldrv_SetCapture
,
nulldrv_SetFocus
,
nulldrv_SetLayeredWindowAttributes
,
nulldrv_SetParent
,
nulldrv_SetWindowRgn
,
nulldrv_SetWindowIcon
,
...
...
@@ -708,6 +714,11 @@ static void loaderdrv_SetFocus( HWND hwnd )
load_driver
()
->
pSetFocus
(
hwnd
);
}
static
void
loaderdrv_SetLayeredWindowAttributes
(
HWND
hwnd
,
COLORREF
key
,
BYTE
alpha
,
DWORD
flags
)
{
load_driver
()
->
pSetLayeredWindowAttributes
(
hwnd
,
key
,
alpha
,
flags
);
}
static
void
loaderdrv_SetParent
(
HWND
hwnd
,
HWND
parent
,
HWND
old_parent
)
{
load_driver
()
->
pSetParent
(
hwnd
,
parent
,
old_parent
);
...
...
@@ -814,6 +825,7 @@ static USER_DRIVER lazy_load_driver =
loaderdrv_ScrollDC
,
loaderdrv_SetCapture
,
loaderdrv_SetFocus
,
loaderdrv_SetLayeredWindowAttributes
,
loaderdrv_SetParent
,
loaderdrv_SetWindowRgn
,
loaderdrv_SetWindowIcon
,
...
...
dlls/user32/user_private.h
View file @
9fb76ddd
...
...
@@ -150,6 +150,7 @@ typedef struct tagUSER_DRIVER {
BOOL
(
*
pScrollDC
)(
HDC
,
INT
,
INT
,
const
RECT
*
,
const
RECT
*
,
HRGN
,
LPRECT
);
void
(
*
pSetCapture
)(
HWND
,
UINT
);
void
(
*
pSetFocus
)(
HWND
);
void
(
*
pSetLayeredWindowAttributes
)(
HWND
,
COLORREF
,
BYTE
,
DWORD
);
void
(
*
pSetParent
)(
HWND
,
HWND
,
HWND
);
int
(
*
pSetWindowRgn
)(
HWND
,
HRGN
,
BOOL
);
void
(
*
pSetWindowIcon
)(
HWND
,
UINT
,
HICON
);
...
...
dlls/user32/win.c
View file @
9fb76ddd
...
...
@@ -3325,7 +3325,7 @@ BOOL WINAPI SetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alpha, DWO
{
BOOL
ret
;
FIXM
E
(
"(%p,%08x,%d,%x): stub!
\n
"
,
hwnd
,
key
,
alpha
,
flags
);
TRAC
E
(
"(%p,%08x,%d,%x): stub!
\n
"
,
hwnd
,
key
,
alpha
,
flags
);
SERVER_START_REQ
(
set_window_layered_info
)
{
...
...
@@ -3337,6 +3337,8 @@ BOOL WINAPI SetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alpha, DWO
}
SERVER_END_REQ
;
if
(
ret
)
USER_Driver
->
pSetLayeredWindowAttributes
(
hwnd
,
key
,
alpha
,
flags
);
return
ret
;
}
...
...
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