else
{
WPARAM wpSizingHit = 0;
+ BOOL converted = FALSE;
if(!iconic && !DragFullWindows) draw_moving_frame( parent, hdc, &sizingRect, thickframe );
if (hittest == HTCAPTION) OffsetRect( &sizingRect, dx, dy );
else if (ON_BOTTOM_BORDER(hittest)) sizingRect.bottom += dy;
capturePoint = pt;
+ /* convert to screen coordinates */
+ if(parent)
+ {
+ POINT* p = (POINT*) &sizingRect;
+ ClientToScreen( parent, p );
+ ClientToScreen( parent, ++p );
+ converted = TRUE;
+ }
+
/* determine the hit location */
if (hittest >= HTLEFT && hittest <= HTBOTTOMRIGHT)
wpSizingHit = WMSZ_LEFT + (hittest - HTLEFT);
SendMessageW( hwnd, WM_SIZING, wpSizingHit, (LPARAM)&sizingRect );
+ /* convert back to client coordinates id needed */
+ if(converted)
+ MapWindowPoints( 0, parent, (POINT*)&sizingRect, 2 );
+
if (!iconic)
{
if(!DragFullWindows)