cddf4a5d5cd1b9a4142320636829bb3222ba9230
2 * PROJECT: PAINT for ReactOS
4 * FILE: base/applications/mspaint_new/miniature.cpp
5 * PURPOSE: Window procedure of the main window and all children apart from
6 * hPalWin, hToolSettings and hSelection
7 * PROGRAMMERS: Benedikt Freisen
10 /* INCLUDES *********************************************************/
14 /* FUNCTIONS ********************************************************/
16 LRESULT
CMiniatureWindow::OnClose(UINT nMsg
, WPARAM wParam
, LPARAM lParam
, BOOL
& bHandled
)
18 miniature
.ShowWindow(SW_HIDE
);
19 showMiniature
= FALSE
;
23 LRESULT
CMiniatureWindow::OnPaint(UINT nMsg
, WPARAM wParam
, LPARAM lParam
, BOOL
& bHandled
)
25 DefWindowProc(WM_PAINT
, wParam
, lParam
);
28 miniature
.GetClientRect(&mclient
);
29 hdc
= miniature
.GetDC();
30 StretchBlt(hdc
, 0, 0, mclient
.right
, mclient
.bottom
, imageModel
.GetDC(), 0, 0, imageModel
.GetWidth(), imageModel
.GetHeight(), SRCCOPY
);
31 miniature
.ReleaseDC(hdc
);
35 LRESULT
CMiniatureWindow::OnSetCursor(UINT nMsg
, WPARAM wParam
, LPARAM lParam
, BOOL
& bHandled
)
37 SetCursor(LoadCursor(NULL
, IDC_ARROW
));