void wxWindowMSW::ScrollWindow(int dx, int dy, const wxRect *prect)
{
- RECT rect;
+ RECT rect, *pr;
if ( prect )
{
rect.left = prect->x;
rect.top = prect->y;
rect.right = prect->x + prect->width;
rect.bottom = prect->y + prect->height;
+
+ pr = ▭
+ }
+ else
+ {
+ pr = NULL;
}
- ::ScrollWindow(GetHwnd(), dx, dy, prect ? &rect : NULL, NULL);
+ ::ScrollWindow(GetHwnd(), dx, dy, pr, pr);
}
static bool ScrollVertically(HWND hwnd, int kind, int count)
// Check if we need to send a LEAVE event
if ( m_mouseInWindow )
{
- if ( !IsMouseInWindow() && HasCapture())
+ if ( !IsMouseInWindow() && !HasCapture())
{
// Generate a LEAVE event
m_mouseInWindow = FALSE;