Implement XxxRedrawDesktop for Dx, needs testing.

svn path=/trunk/; revision=33300
This commit is contained in:
James Tabor 2008-05-05 17:45:20 +00:00
parent bc1d4f7c8c
commit beb173aaa8
3 changed files with 24 additions and 2 deletions

View file

@ -117,6 +117,8 @@ IntParseDesktopPath(PEPROCESS Process,
BOOL FASTCALL
IntDesktopUpdatePerUserSettings(BOOL bEnable);
VOID APIENTRY UserRedrawDesktop(VOID);
BOOL IntRegisterShellHookWindow(HWND hWnd);
BOOL IntDeRegisterShellHookWindow(HWND hWnd);

View file

@ -627,10 +627,11 @@ BOOLEAN
APIENTRY
DxEngRedrawDesktop()
{
/* FIXME add redraw code */
UNIMPLEMENTED;
UserRedrawDesktop();
return TRUE;
}
ULONG gulVisRgnUniqueness; // Increase count everytime client region is updated.
/************************************************************************/

View file

@ -626,6 +626,25 @@ BOOL FASTCALL IntDesktopUpdatePerUserSettings(BOOL bEnable)
/* PUBLIC FUNCTIONS ***********************************************************/
VOID APIENTRY
UserRedrawDesktop()
{
PWINDOW_OBJECT Window = NULL;
UserEnterExclusive();
Window = UserGetDesktopWindow();
IntInvalidateWindows( Window,
Window->UpdateRegion,
RDW_FRAME |
RDW_ERASE |
RDW_INVALIDATE |
RDW_ALLCHILDREN);
UserLeave();
}
NTSTATUS FASTCALL
co_IntShowDesktop(PDESKTOP_OBJECT Desktop, ULONG Width, ULONG Height)
{