user32: We no longer need to ensure that the BeginPaint window belongs to the current thread.

This commit is contained in:
Alexandre Julliard 2008-05-30 10:03:30 +02:00
parent a2ba7dcf7b
commit 2c4a3c8ad6
1 changed files with 0 additions and 9 deletions

View File

@ -859,20 +859,11 @@ static HWND fix_caret(HWND hWnd, const RECT *scroll_rect, INT dx, INT dy,
*/ */
HDC WINAPI BeginPaint( HWND hwnd, PAINTSTRUCT *lps ) HDC WINAPI BeginPaint( HWND hwnd, PAINTSTRUCT *lps )
{ {
HWND full_handle;
HRGN hrgn; HRGN hrgn;
UINT flags = UPDATE_NONCLIENT | UPDATE_ERASE | UPDATE_PAINT | UPDATE_INTERNALPAINT | UPDATE_NOCHILDREN; UINT flags = UPDATE_NONCLIENT | UPDATE_ERASE | UPDATE_PAINT | UPDATE_INTERNALPAINT | UPDATE_NOCHILDREN;
if (!lps) return 0; if (!lps) return 0;
if (!(full_handle = WIN_IsCurrentThread( hwnd )))
{
if (IsWindow(hwnd))
FIXME( "window %p belongs to other thread\n", hwnd );
return 0;
}
hwnd = full_handle;
HideCaret( hwnd ); HideCaret( hwnd );
if (!(hrgn = send_ncpaint( hwnd, NULL, &flags ))) return 0; if (!(hrgn = send_ncpaint( hwnd, NULL, &flags ))) return 0;