mirror of
https://github.com/reactos/reactos.git
synced 2024-08-08 04:08:29 +00:00
handle WM_SETCUROR messages for the desktop window
svn path=/trunk/; revision=9335
This commit is contained in:
parent
c12dfa13b6
commit
cc056e8bb5
|
@ -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
|
||||
*
|
||||
|
@ -53,11 +53,11 @@ DtbgWindowProc(HWND Wnd, UINT Msg, WPARAM wParam, LPARAM lParam)
|
|||
|
||||
switch(Msg)
|
||||
{
|
||||
case WM_NCCREATE:
|
||||
Result = (LRESULT) TRUE;
|
||||
break;
|
||||
case WM_CREATE:
|
||||
Result = 0;
|
||||
case WM_ERASEBKGND:
|
||||
{
|
||||
PaintDesktop((HDC)wParam);
|
||||
Result = 1;
|
||||
}
|
||||
break;
|
||||
case WM_PAINT:
|
||||
{
|
||||
|
@ -68,11 +68,14 @@ DtbgWindowProc(HWND Wnd, UINT Msg, WPARAM wParam, LPARAM lParam)
|
|||
Result = 0;
|
||||
}
|
||||
break;
|
||||
case WM_ERASEBKGND:
|
||||
{
|
||||
PaintDesktop((HDC)wParam);
|
||||
Result = 1;
|
||||
}
|
||||
case WM_SETCURSOR:
|
||||
Result = (LRESULT) SetCursor(LoadCursorW(0, (LPCWSTR)IDC_ARROW));
|
||||
break;
|
||||
case WM_NCCREATE:
|
||||
Result = (LRESULT) TRUE;
|
||||
break;
|
||||
case WM_CREATE:
|
||||
Result = 0;
|
||||
break;
|
||||
case PM_SHOW_DESKTOP:
|
||||
Result = ! SetWindowPos(Wnd,
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* 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
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -257,6 +257,11 @@ MsqTranslateMouseMessage(PUSER_MESSAGE_QUEUE MessageQueue, HWND hWnd, UINT Filte
|
|||
else
|
||||
{
|
||||
WinPosWindowFromPoint(ScopeWin, NULL, &Message->Msg.pt, &Window);
|
||||
if(Window == NULL)
|
||||
{
|
||||
Window = ScopeWin;
|
||||
IntReferenceWindowObject(Window);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue