handle WM_SETCUROR messages for the desktop window

svn path=/trunk/; revision=9335
This commit is contained in:
Thomas Bluemel 2004-05-08 19:35:32 +00:00
parent c12dfa13b6
commit cc056e8bb5
2 changed files with 20 additions and 12 deletions

View file

@ -1,4 +1,4 @@
/* $Id: desktopbg.c,v 1.7 2004/04/09 20:03:16 navaraf Exp $ /* $Id: desktopbg.c,v 1.8 2004/05/08 19:35:32 weiden Exp $
* *
* reactos/subsys/csrss/win32csr/desktopbg.c * reactos/subsys/csrss/win32csr/desktopbg.c
* *
@ -53,11 +53,11 @@ DtbgWindowProc(HWND Wnd, UINT Msg, WPARAM wParam, LPARAM lParam)
switch(Msg) switch(Msg)
{ {
case WM_NCCREATE: case WM_ERASEBKGND:
Result = (LRESULT) TRUE; {
break; PaintDesktop((HDC)wParam);
case WM_CREATE: Result = 1;
Result = 0; }
break; break;
case WM_PAINT: case WM_PAINT:
{ {
@ -68,11 +68,14 @@ DtbgWindowProc(HWND Wnd, UINT Msg, WPARAM wParam, LPARAM lParam)
Result = 0; Result = 0;
} }
break; break;
case WM_ERASEBKGND: case WM_SETCURSOR:
{ Result = (LRESULT) SetCursor(LoadCursorW(0, (LPCWSTR)IDC_ARROW));
PaintDesktop((HDC)wParam); break;
Result = 1; case WM_NCCREATE:
} Result = (LRESULT) TRUE;
break;
case WM_CREATE:
Result = 0;
break; break;
case PM_SHOW_DESKTOP: case PM_SHOW_DESKTOP:
Result = ! SetWindowPos(Wnd, Result = ! SetWindowPos(Wnd,

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: msgqueue.c,v 1.92 2004/04/29 22:42:51 weiden Exp $ /* $Id: msgqueue.c,v 1.93 2004/05/08 19:35:32 weiden Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -257,6 +257,11 @@ MsqTranslateMouseMessage(PUSER_MESSAGE_QUEUE MessageQueue, HWND hWnd, UINT Filte
else else
{ {
WinPosWindowFromPoint(ScopeWin, NULL, &Message->Msg.pt, &Window); WinPosWindowFromPoint(ScopeWin, NULL, &Message->Msg.pt, &Window);
if(Window == NULL)
{
Window = ScopeWin;
IntReferenceWindowObject(Window);
}
} }
} }
else else