mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 13:02:59 +00:00
[MSPAINT] Improve behaviour on memory shortage (#7780)
Improve UX on memory shortage. JIRA issue: CORE-20020 - Clear history on memory shortage. - Improve CCanvasWindow::OnPaint on memory shortage. - Add null check in CCanvasWindow::DoDraw. - Retire using of cache in CCanvasWindow.
This commit is contained in:
parent
c930c8c464
commit
9563c07146
5 changed files with 47 additions and 18 deletions
|
@ -57,12 +57,11 @@ public:
|
|||
protected:
|
||||
HITTEST m_hitCanvasSizeBox;
|
||||
POINT m_ptOrig; // The origin of drag start
|
||||
HBITMAP m_ahbmCached[2]; // The cached buffer bitmaps
|
||||
CRect m_rcResizing; // Resizing rectagle
|
||||
|
||||
HITTEST CanvasHitTest(POINT pt);
|
||||
RECT GetBaseRect();
|
||||
VOID DoDraw(HDC hDC, RECT& rcClient, RECT& rcPaint);
|
||||
BOOL DoDraw(HDC hDC, RECT& rcClient, RECT& rcPaint);
|
||||
VOID OnHVScroll(WPARAM wParam, INT fnBar);
|
||||
|
||||
LRESULT OnSize(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue