Make LockWindowUpdate return more Windows-like values.

This commit is contained in:
Ryan Cumming 2002-07-09 01:57:28 +00:00 committed by Alexandre Julliard
parent 6da436656c
commit 21a2b606fe

View file

@ -652,6 +652,27 @@ HWND WINAPI WindowFromDC( HDC hDC )
*/
BOOL WINAPI LockWindowUpdate( HWND hwnd )
{
FIXME("(%x), stub!\n",hwnd);
static HWND lockedWnd;
FIXME("(%x), partial stub!\n",hwnd);
USER_Lock();
if (lockedWnd)
{
if (!hwnd)
{
/* Unlock lockedWnd */
/* FIXME: Do something */
}
else
{
/* Attempted to lock a second window */
/* Return FALSE and do nothing */
USER_Unlock();
return FALSE;
}
}
lockedWnd = hwnd;
USER_Unlock();
return TRUE;
}