ReactOS 0.4.15-dev-5672-gf73ac17
miniature.cpp
Go to the documentation of this file.
1/*
2 * PROJECT: PAINT for ReactOS
3 * LICENSE: LGPL
4 * FILE: base/applications/mspaint/miniature.cpp
5 * PURPOSE: Window procedure of the main window and all children apart from
6 * hPalWin, hToolSettings and hSelection
7 * PROGRAMMERS: Benedikt Freisen
8 */
9
10/* INCLUDES *********************************************************/
11
12#include "precomp.h"
13
14/* FUNCTIONS ********************************************************/
15
17{
18 miniature.ShowWindow(SW_HIDE);
20 return 0;
21}
22
24{
26 RECT mclient;
27 HDC hdc;
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);
32 return 0;
33}
34
36{
38 bHandled = FALSE;
39 return 0;
40}
LRESULT OnSetCursor(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: miniature.cpp:35
LRESULT OnClose(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: miniature.cpp:16
LRESULT OnPaint(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: miniature.cpp:23
int GetWidth() const
Definition: history.cpp:215
int GetHeight() const
Definition: history.cpp:220
HDC GetDC()
Definition: history.cpp:239
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
CMiniatureWindow miniature
Definition: main.cpp:65
ImageModel imageModel
Definition: main.cpp:32
BOOL showMiniature
Definition: main.cpp:61
HDC hdc
Definition: main.c:9
static HDC
Definition: imagelist.c:92
unsigned int UINT
Definition: ndis.h:50
#define DefWindowProc
Definition: ros2win.h:31
LONG right
Definition: windef.h:308
LONG bottom
Definition: windef.h:309
LONG_PTR LPARAM
Definition: windef.h:208
LONG_PTR LRESULT
Definition: windef.h:209
UINT_PTR WPARAM
Definition: windef.h:207
BOOL WINAPI StretchBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_opt_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD)
#define SRCCOPY
Definition: wingdi.h:333
#define WM_PAINT
Definition: winuser.h:1610
#define SW_HIDE
Definition: winuser.h:762
#define IDC_ARROW
Definition: winuser.h:682
HCURSOR WINAPI SetCursor(_In_opt_ HCURSOR)
#define LoadCursor
Definition: winuser.h:5802