Commit 62852dc5 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

win32u: Move SetProgmanWindow implementation from user32.

parent c8f1d411
...@@ -76,16 +76,9 @@ HWND WINAPI GetShellWindow(void) ...@@ -76,16 +76,9 @@ HWND WINAPI GetShellWindow(void)
/*********************************************************************** /***********************************************************************
* SetProgmanWindow (USER32.@) * SetProgmanWindow (USER32.@)
*/ */
HWND WINAPI SetProgmanWindow ( HWND hwnd ) HWND WINAPI SetProgmanWindow( HWND hwnd )
{ {
SERVER_START_REQ(set_global_windows) return NtUserSetProgmanWindow( hwnd );
{
req->flags = SET_GLOBAL_PROGMAN_WINDOW;
req->progman_window = wine_server_user_handle( hwnd );
if (wine_server_call_err( req )) hwnd = 0;
}
SERVER_END_REQ;
return hwnd;
} }
......
...@@ -2207,3 +2207,15 @@ BOOL WINAPI NtUserSetShellWindowEx( HWND shell, HWND list_view ) ...@@ -2207,3 +2207,15 @@ BOOL WINAPI NtUserSetShellWindowEx( HWND shell, HWND list_view )
SERVER_END_REQ; SERVER_END_REQ;
return ret; return ret;
} }
HWND set_progman_window( HWND hwnd )
{
SERVER_START_REQ(set_global_windows)
{
req->flags = SET_GLOBAL_PROGMAN_WINDOW;
req->progman_window = wine_server_user_handle( hwnd );
if (wine_server_call_err( req )) hwnd = 0;
}
SERVER_END_REQ;
return hwnd;
}
...@@ -277,6 +277,7 @@ extern BOOL set_capture_window( HWND hwnd, UINT gui_flags, HWND *prev_ret ) DECL ...@@ -277,6 +277,7 @@ extern BOOL set_capture_window( HWND hwnd, UINT gui_flags, HWND *prev_ret ) DECL
extern BOOL set_caret_blink_time( unsigned int time ) DECLSPEC_HIDDEN; extern BOOL set_caret_blink_time( unsigned int time ) DECLSPEC_HIDDEN;
extern BOOL set_caret_pos( int x, int y ) DECLSPEC_HIDDEN; extern BOOL set_caret_pos( int x, int y ) DECLSPEC_HIDDEN;
extern BOOL set_foreground_window( HWND hwnd, BOOL mouse ) DECLSPEC_HIDDEN; extern BOOL set_foreground_window( HWND hwnd, BOOL mouse ) DECLSPEC_HIDDEN;
extern HWND set_progman_window( HWND hwnd ) DECLSPEC_HIDDEN;
extern void toggle_caret( HWND hwnd ) DECLSPEC_HIDDEN; extern void toggle_caret( HWND hwnd ) DECLSPEC_HIDDEN;
extern void update_mouse_tracking_info( HWND hwnd ) DECLSPEC_HIDDEN; extern void update_mouse_tracking_info( HWND hwnd ) DECLSPEC_HIDDEN;
......
...@@ -5429,6 +5429,9 @@ ULONG_PTR WINAPI NtUserCallHwnd( HWND hwnd, DWORD code ) ...@@ -5429,6 +5429,9 @@ ULONG_PTR WINAPI NtUserCallHwnd( HWND hwnd, DWORD code )
case NtUserCallHwnd_SetForegroundWindow: case NtUserCallHwnd_SetForegroundWindow:
return set_foreground_window( hwnd, FALSE ); return set_foreground_window( hwnd, FALSE );
case NtUserCallHwnd_SetProgmanWindow:
return HandleToUlong( set_progman_window( hwnd ));
/* temporary exports */ /* temporary exports */
case NtUserGetFullWindowHandle: case NtUserGetFullWindowHandle:
return HandleToUlong( get_full_window_handle( hwnd )); return HandleToUlong( get_full_window_handle( hwnd ));
......
...@@ -1175,6 +1175,7 @@ enum ...@@ -1175,6 +1175,7 @@ enum
NtUserCallHwnd_IsWindowUnicode, NtUserCallHwnd_IsWindowUnicode,
NtUserCallHwnd_IsWindowVisible, NtUserCallHwnd_IsWindowVisible,
NtUserCallHwnd_SetForegroundWindow, NtUserCallHwnd_SetForegroundWindow,
NtUserCallHwnd_SetProgmanWindow,
/* temporary exports */ /* temporary exports */
NtUserGetFullWindowHandle, NtUserGetFullWindowHandle,
NtUserIsCurrehtProcessWindow, NtUserIsCurrehtProcessWindow,
...@@ -1272,6 +1273,11 @@ static inline BOOL NtUserSetForegroundWindow( HWND hwnd ) ...@@ -1272,6 +1273,11 @@ static inline BOOL NtUserSetForegroundWindow( HWND hwnd )
return NtUserCallHwnd( hwnd, NtUserCallHwnd_SetForegroundWindow ); return NtUserCallHwnd( hwnd, NtUserCallHwnd_SetForegroundWindow );
} }
static inline HWND NtUserSetProgmanWindow( HWND hwnd )
{
return UlongToHandle( NtUserCallHwnd( hwnd, NtUserCallHwnd_SetProgmanWindow ));
}
/* NtUserCallHwndParam codes, not compatible with Windows */ /* NtUserCallHwndParam codes, not compatible with Windows */
enum enum
{ {
......
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