ReactOS 0.4.15-dev-6054-gbddd8b0
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#include "precomp.h"
11
13
14/* FUNCTIONS ********************************************************/
15
17{
18 if (m_hWnd)
19 return m_hWnd;
20
21 RECT rc =
22 {
26 };
27
28 TCHAR strTitle[100];
30
32 return Create(hwndParent, rc, strTitle, style, WS_EX_PALETTEWINDOW);
33}
34
36{
39 return 0;
40}
41
43{
44 RECT rc;
45 GetClientRect(&rc);
46
47 PAINTSTRUCT ps;
48 HDC hDC = BeginPaint(&ps);
49 StretchBlt(hDC, 0, 0, rc.right, rc.bottom,
51 SRCCOPY);
52 EndPaint(&ps);
53 return 0;
54}
static HDC hDC
Definition: 3dtext.c:33
Arabic default style
Definition: afstyles.h:94
#define IDS_MINIATURETITLE
Definition: resource.h:187
@ Create
Definition: registry.c:563
LRESULT OnClose(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: miniature.cpp:35
LRESULT OnPaint(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: miniature.cpp:42
HWND DoCreate(HWND hwndParent)
Definition: miniature.cpp:16
int GetWidth() const
Definition: history.cpp:215
int GetHeight() const
Definition: history.cpp:220
HDC GetDC()
Definition: history.cpp:239
DWORD ThumbXPos
Definition: registry.h:27
DWORD ThumbYPos
Definition: registry.h:28
DWORD ThumbWidth
Definition: registry.h:26
DWORD ShowThumbnail
Definition: registry.h:23
DWORD ThumbHeight
Definition: registry.h:25
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
static HWND hwndParent
Definition: cryptui.c:300
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
ImageModel imageModel
Definition: history.cpp:11
RegistrySettings registrySettings
Definition: registry.cpp:15
HINSTANCE hProgInstance
Definition: main.cpp:15
CMiniatureWindow miniature
Definition: miniature.cpp:12
static HDC
Definition: imagelist.c:92
unsigned int UINT
Definition: ndis.h:50
#define WS_CAPTION
Definition: pedump.c:624
#define WS_OVERLAPPED
Definition: pedump.c:615
#define WS_SYSMENU
Definition: pedump.c:629
long LONG
Definition: pedump.c:60
#define WS_THICKFRAME
Definition: pedump.c:630
#define _countof(array)
Definition: sndvol32.h:68
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 SW_HIDE
Definition: winuser.h:762
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
#define WS_EX_PALETTEWINDOW
Definition: winuser.h:399
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
#define LoadString
Definition: winuser.h:5809
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
char TCHAR
Definition: xmlstorage.h:189