ReactOS  0.4.14-dev-41-g31d7680
CMiniatureWindow Class Reference

#include <miniature.h>

Inheritance diagram for CMiniatureWindow:
Collaboration diagram for CMiniatureWindow:

Public Member Functions

LRESULT OnClose (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnPaint (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnSetCursor (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 

Detailed Description

Definition at line 12 of file miniature.h.

Member Function Documentation

◆ OnClose()

LRESULT CMiniatureWindow::OnClose ( UINT  nMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)

Definition at line 16 of file miniature.cpp.

17 {
18  miniature.ShowWindow(SW_HIDE);
20  return 0;
21 }
#define SW_HIDE
Definition: winuser.h:762
CMiniatureWindow miniature
Definition: main.cpp:64
BOOL showMiniature
Definition: main.cpp:60

◆ OnPaint()

LRESULT CMiniatureWindow::OnPaint ( UINT  nMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)

Definition at line 23 of file miniature.cpp.

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 }
static HDC
Definition: imagelist.c:92
LONG right
Definition: windef.h:293
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)
WPARAM wParam
Definition: combotst.c:138
HDC GetDC()
Definition: history.cpp:219
CMiniatureWindow miniature
Definition: main.cpp:64
#define DefWindowProc
Definition: ros2win.h:31
#define WM_PAINT
Definition: winuser.h:1602
int GetWidth()
Definition: history.cpp:195
int GetHeight()
Definition: history.cpp:200
HDC hdc
Definition: main.c:9
ImageModel imageModel
Definition: main.cpp:32
LONG bottom
Definition: windef.h:294
LPARAM lParam
Definition: combotst.c:139
#define SRCCOPY
Definition: wingdi.h:332

◆ OnSetCursor()

LRESULT CMiniatureWindow::OnSetCursor ( UINT  nMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)

Definition at line 35 of file miniature.cpp.

36 {
38  bHandled = FALSE;
39  return 0;
40 }
smooth NULL
Definition: ftsmooth.c:416
#define LoadCursor
Definition: winuser.h:5713
HCURSOR WINAPI SetCursor(_In_opt_ HCURSOR)
#define IDC_ARROW
Definition: winuser.h:682

The documentation for this class was generated from the following files: