mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-06 18:31:57 +08:00
optimize the refresh of scrolled
This commit is contained in:
@@ -172,6 +172,10 @@ BOOL scrolled_set_cont_pos (HWND hWnd, PSCRDATA pscrdata, int cont_x, int cont_y
|
||||
SetScrollPos (hWnd, SB_VERT, cont_y);
|
||||
bChange = TRUE;
|
||||
}
|
||||
|
||||
if (bChange)
|
||||
UpdateInvalidClient(hWnd, FALSE);
|
||||
|
||||
return bChange;
|
||||
}
|
||||
|
||||
|
||||
@@ -250,8 +250,6 @@ static inline void scrolled_refresh_view (PSCRDATA pscrdata)
|
||||
rcMargin.right = rcClient.right;
|
||||
InvalidateRect (pscrdata->hSV, &rcMargin, TRUE);
|
||||
}
|
||||
|
||||
UpdateInvalidClient(pscrdata->hSV, TRUE);
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user