Commit e3bd659b authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

atl: Simplify RECT assignments.

parent 0183cd17
...@@ -827,7 +827,7 @@ static void IOCS_OnSize( IOCS* This, LPCRECT rect ) ...@@ -827,7 +827,7 @@ static void IOCS_OnSize( IOCS* This, LPCRECT rect )
{ {
SIZEL inPix, inHi; SIZEL inPix, inHi;
This->size.left = rect->left; This->size.right = rect->right; This->size.top = rect->top; This->size.bottom = rect->bottom; This->size = *rect;
if ( !This->control ) if ( !This->control )
return; return;
...@@ -890,9 +890,7 @@ static LRESULT IOCS_OnWndProc( IOCS *This, HWND hWnd, UINT uMsg, WPARAM wParam, ...@@ -890,9 +890,7 @@ static LRESULT IOCS_OnWndProc( IOCS *This, HWND hWnd, UINT uMsg, WPARAM wParam,
case WM_SIZE: case WM_SIZE:
{ {
RECT r; RECT r;
r.left = r.top = 0; SetRect(&r, 0, 0, LOWORD(lParam), HIWORD(lParam));
r.right = LOWORD( lParam );
r.bottom = HIWORD( lParam );
IOCS_OnSize( This, &r ); IOCS_OnSize( This, &r );
} }
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment