Exception for allowing the parent to set the cursor for a child wnd is

when the cursor is on the border of a resizable wnd.
oldstable
Susan Farley 2001-02-14 00:25:53 +00:00 committed by Alexandre Julliard
parent 9316fa3db3
commit 5c2cbc6850
1 changed files with 9 additions and 3 deletions

View File

@ -499,9 +499,15 @@ static LRESULT DEFWND_DefWinProc( WND *wndPtr, UINT msg, WPARAM wParam,
case WM_SETCURSOR:
if (wndPtr->dwStyle & WS_CHILD)
if (pSendMessage(wndPtr->parent->hwndSelf, WM_SETCURSOR,
wParam, lParam))
return TRUE;
{
/* with the exception of the border around a resizable wnd,
* give the parent first chance to set the cursor */
if ((LOWORD(lParam) < HTSIZEFIRST) || (LOWORD(lParam) > HTSIZELAST))
{
if (pSendMessage(wndPtr->parent->hwndSelf, WM_SETCURSOR, wParam, lParam))
return TRUE;
}
}
return NC_HandleSetCursor( wndPtr->hwndSelf, wParam, lParam );
case WM_SYSCOMMAND: