{
if (pWnd->pcls->spcur)
{
- UserSetCursor(pWnd->pcls->spcur, FALSE);
+ IntSystemSetCursor(pWnd->pcls->spcur);
}
return FALSE;
}
{
break;
}
- UserSetCursor(SYSTEMCUR(SIZEWE), FALSE);
+ IntSystemSetCursor(SYSTEMCUR(SIZEWE));
return TRUE;
}
{
break;
}
- UserSetCursor(SYSTEMCUR(SIZENS), FALSE);
+ IntSystemSetCursor(SYSTEMCUR(SIZENS));
return TRUE;
}
{
break;
}
- UserSetCursor(SYSTEMCUR(SIZENWSE), FALSE);
+ IntSystemSetCursor(SYSTEMCUR(SIZENWSE));
return TRUE;
}
{
break;
}
- UserSetCursor(SYSTEMCUR(SIZENESW), FALSE);
+ IntSystemSetCursor(SYSTEMCUR(SIZENESW));
return TRUE;
}
}
- UserSetCursor(SYSTEMCUR(ARROW), FALSE);
+ IntSystemSetCursor(SYSTEMCUR(ARROW));
return FALSE;
}
{
BOOL Ret = FALSE;
- if ( pWnd->style & WS_VISIBLE && (pWnd->style & WS_CAPTION) == WS_CAPTION )
+ if ( (pWnd->style & WS_VISIBLE) && ((pWnd->style & WS_CAPTION) == WS_CAPTION) )
{
-
if (pWnd->state & WNDS_HASCAPTION && pWnd->head.pti->MessageQueue == gpqForeground)
Flags |= DC_ACTIVE;
/*
* When themes are not enabled we can go on and paint the non client area.
* However if we do that with themes enabled we will draw a classic frame.
- * This is sovled by sending a themes specific message to notify the themes
+ * This is solved by sending a themes specific message to notify the themes
* engine that the caption needs to be redrawn
*/
if (gpsi->dwSRVIFlags & SRVINFO_APIHOOK)
EngSetLastError(ERROR_INVALID_PARAMETER);
return 0;
}
- hIconSmall = UserGetProp(pWnd, gpsi->atomIconSmProp);
- hIcon = UserGetProp(pWnd, gpsi->atomIconProp);
+ hIconSmall = UserGetProp(pWnd, gpsi->atomIconSmProp, TRUE);
+ hIcon = UserGetProp(pWnd, gpsi->atomIconProp, TRUE);
hIconOld = wParam == ICON_BIG ? hIcon : hIconSmall;
break;
}
- IntSetProp(pWnd, gpsi->atomIconProp, hIcon);
- IntSetProp(pWnd, gpsi->atomIconSmProp, hIconSmall);
+ UserSetProp(pWnd, gpsi->atomIconProp, hIcon, TRUE);
+ UserSetProp(pWnd, gpsi->atomIconSmProp, hIconSmall, TRUE);
if ((pWnd->style & WS_CAPTION ) == WS_CAPTION)
UserPaintCaption(pWnd, DC_ICON);
switch(wParam)
{
case ICON_BIG:
- hIconRet = UserGetProp(pWnd, gpsi->atomIconProp);
+ hIconRet = UserGetProp(pWnd, gpsi->atomIconProp, TRUE);
break;
case ICON_SMALL:
case ICON_SMALL2:
- hIconRet = UserGetProp(pWnd, gpsi->atomIconSmProp);
+ hIconRet = UserGetProp(pWnd, gpsi->atomIconSmProp, TRUE);
break;
default:
break;
co_WinPosShowWindow(Wnd, wParam ? SW_SHOWNOACTIVATE : SW_HIDE);
}
+ break;
}
- break;
case WM_CLIENTSHUTDOWN:
return IntClientShutdown(Wnd, wParam, lParam);
break;
case WM_NCLBUTTONDOWN:
- return (NC_HandleNCLButtonDown( Wnd, wParam, lParam));
+ return NC_HandleNCLButtonDown(Wnd, wParam, lParam);
+
+ case WM_NCRBUTTONDOWN:
+ return NC_HandleNCRButtonDown(Wnd, wParam, lParam);
case WM_LBUTTONDBLCLK:
- return (NC_HandleNCLButtonDblClk( Wnd, HTCLIENT, lParam));
+ return NC_HandleNCLButtonDblClk(Wnd, HTCLIENT, lParam);
case WM_NCLBUTTONDBLCLK:
- return (NC_HandleNCLButtonDblClk( Wnd, wParam, lParam));
-
- case WM_NCRBUTTONDOWN:
- return NC_HandleNCRButtonDown( Wnd, wParam, lParam );
+ return NC_HandleNCLButtonDblClk(Wnd, wParam, lParam);
case WM_RBUTTONUP:
{
ERR("WM_NCRBUTTONUP\n");
break;
+ case WM_XBUTTONUP:
+ case WM_NCXBUTTONUP:
+ if (HIWORD(wParam) == XBUTTON1 || HIWORD(wParam) == XBUTTON2)
+ {
+ co_IntSendMessage(UserHMGetHandle(Wnd), WM_APPCOMMAND, (WPARAM)UserHMGetHandle(Wnd),
+ MAKELPARAM(LOWORD(wParam), FAPPCOMMAND_MOUSE | HIWORD(wParam)));
+ }
+ break;
+
+
case WM_CONTEXTMENU:
{
if (Wnd->style & WS_CHILD)
case WM_NCCALCSIZE:
{
- return NC_HandleNCCalcSize( Wnd, wParam, (RECTL *)lParam );
+ return NC_HandleNCCalcSize( Wnd, wParam, (RECTL *)lParam, FALSE );
}
case WM_NCACTIVATE: