Commit 9fb76ddd authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Add a SetLayeredWindowAttributes driver entry point.

parent d476761f
...@@ -114,6 +114,7 @@ static const USER_DRIVER *load_driver(void) ...@@ -114,6 +114,7 @@ static const USER_DRIVER *load_driver(void)
GET_USER_FUNC(ScrollDC); GET_USER_FUNC(ScrollDC);
GET_USER_FUNC(SetCapture); GET_USER_FUNC(SetCapture);
GET_USER_FUNC(SetFocus); GET_USER_FUNC(SetFocus);
GET_USER_FUNC(SetLayeredWindowAttributes);
GET_USER_FUNC(SetParent); GET_USER_FUNC(SetParent);
GET_USER_FUNC(SetWindowRgn); GET_USER_FUNC(SetWindowRgn);
GET_USER_FUNC(SetWindowIcon); GET_USER_FUNC(SetWindowIcon);
...@@ -375,6 +376,10 @@ static void nulldrv_SetFocus( HWND hwnd ) ...@@ -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 ) static void nulldrv_SetParent( HWND hwnd, HWND parent, HWND old_parent )
{ {
} }
...@@ -473,6 +478,7 @@ static USER_DRIVER null_driver = ...@@ -473,6 +478,7 @@ static USER_DRIVER null_driver =
nulldrv_ScrollDC, nulldrv_ScrollDC,
nulldrv_SetCapture, nulldrv_SetCapture,
nulldrv_SetFocus, nulldrv_SetFocus,
nulldrv_SetLayeredWindowAttributes,
nulldrv_SetParent, nulldrv_SetParent,
nulldrv_SetWindowRgn, nulldrv_SetWindowRgn,
nulldrv_SetWindowIcon, nulldrv_SetWindowIcon,
...@@ -708,6 +714,11 @@ static void loaderdrv_SetFocus( HWND hwnd ) ...@@ -708,6 +714,11 @@ static void loaderdrv_SetFocus( HWND hwnd )
load_driver()->pSetFocus( 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 ) static void loaderdrv_SetParent( HWND hwnd, HWND parent, HWND old_parent )
{ {
load_driver()->pSetParent( hwnd, parent, old_parent ); load_driver()->pSetParent( hwnd, parent, old_parent );
...@@ -814,6 +825,7 @@ static USER_DRIVER lazy_load_driver = ...@@ -814,6 +825,7 @@ static USER_DRIVER lazy_load_driver =
loaderdrv_ScrollDC, loaderdrv_ScrollDC,
loaderdrv_SetCapture, loaderdrv_SetCapture,
loaderdrv_SetFocus, loaderdrv_SetFocus,
loaderdrv_SetLayeredWindowAttributes,
loaderdrv_SetParent, loaderdrv_SetParent,
loaderdrv_SetWindowRgn, loaderdrv_SetWindowRgn,
loaderdrv_SetWindowIcon, loaderdrv_SetWindowIcon,
......
...@@ -150,6 +150,7 @@ typedef struct tagUSER_DRIVER { ...@@ -150,6 +150,7 @@ typedef struct tagUSER_DRIVER {
BOOL (*pScrollDC)(HDC, INT, INT, const RECT *, const RECT *, HRGN, LPRECT); BOOL (*pScrollDC)(HDC, INT, INT, const RECT *, const RECT *, HRGN, LPRECT);
void (*pSetCapture)(HWND,UINT); void (*pSetCapture)(HWND,UINT);
void (*pSetFocus)(HWND); void (*pSetFocus)(HWND);
void (*pSetLayeredWindowAttributes)(HWND,COLORREF,BYTE,DWORD);
void (*pSetParent)(HWND,HWND,HWND); void (*pSetParent)(HWND,HWND,HWND);
int (*pSetWindowRgn)(HWND,HRGN,BOOL); int (*pSetWindowRgn)(HWND,HRGN,BOOL);
void (*pSetWindowIcon)(HWND,UINT,HICON); void (*pSetWindowIcon)(HWND,UINT,HICON);
......
...@@ -3325,7 +3325,7 @@ BOOL WINAPI SetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alpha, DWO ...@@ -3325,7 +3325,7 @@ BOOL WINAPI SetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alpha, DWO
{ {
BOOL ret; BOOL ret;
FIXME("(%p,%08x,%d,%x): stub!\n", hwnd, key, alpha, flags); TRACE("(%p,%08x,%d,%x): stub!\n", hwnd, key, alpha, flags);
SERVER_START_REQ( set_window_layered_info ) SERVER_START_REQ( set_window_layered_info )
{ {
...@@ -3337,6 +3337,8 @@ BOOL WINAPI SetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alpha, DWO ...@@ -3337,6 +3337,8 @@ BOOL WINAPI SetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alpha, DWO
} }
SERVER_END_REQ; SERVER_END_REQ;
if (ret) USER_Driver->pSetLayeredWindowAttributes( hwnd, key, alpha, flags );
return ret; return ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment