ReactOS 0.4.15-dev-8135-g1bc6c90
CFullscreenWindow Class Reference

#include <fullscreen.h>

Inheritance diagram for CFullscreenWindow:
Collaboration diagram for CFullscreenWindow:

Public Member Functions

 DECLARE_WND_CLASS_EX (L"FullscreenWindow", CS_DBLCLKS|CS_HREDRAW|CS_VREDRAW, COLOR_BACKGROUND) HWND DoCreate()
 

Private Member Functions

LRESULT OnCreate (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnCloseOrKeyDownOrLButtonDown (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnPaint (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnGetText (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 

Detailed Description

Definition at line 10 of file fullscreen.h.

Member Function Documentation

◆ DECLARE_WND_CLASS_EX()

CFullscreenWindow::DECLARE_WND_CLASS_EX ( L"FullscreenWindow"  ,
CS_DBLCLKS|CS_HREDRAW CS_VREDRAW,
COLOR_BACKGROUND   
)

◆ OnCloseOrKeyDownOrLButtonDown()

LRESULT CFullscreenWindow::OnCloseOrKeyDownOrLButtonDown ( UINT  nMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)
private

Definition at line 30 of file fullscreen.cpp.

31{
34 return 0;
35}
CMainWindow mainWindow
Definition: main.cpp:25
BOOL ShowWindow(int nCmdShow)
Definition: atlwin.h:1333
#define SW_HIDE
Definition: winuser.h:768
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
#define SW_SHOW
Definition: winuser.h:775

◆ OnCreate()

LRESULT CFullscreenWindow::OnCreate ( UINT  nMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)
private

Definition at line 23 of file fullscreen.cpp.

24{
27 return 0;
28}
#define IDI_APPICON
Definition: resource.h:166
HINSTANCE g_hinstExe
Definition: main.cpp:17
#define ICON_BIG
Definition: tnclass.cpp:51
#define ICON_SMALL
Definition: tnclass.cpp:48
LONG_PTR LPARAM
Definition: windef.h:208
#define SendMessage
Definition: winuser.h:5843
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
HICON WINAPI LoadIconW(_In_opt_ HINSTANCE hInstance, _In_ LPCWSTR lpIconName)
Definition: cursoricon.c:2106

◆ OnGetText()

LRESULT CFullscreenWindow::OnGetText ( UINT  nMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)
private

Definition at line 52 of file fullscreen.cpp.

53{
54 // return caption of the main window, instead
55 return mainWindow.SendMessage(nMsg, wParam, lParam);
56}
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
Definition: atlwin.h:1116
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139

◆ OnPaint()

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

Definition at line 37 of file fullscreen.cpp.

38{
39 PAINTSTRUCT ps;
40 HDC hDC = BeginPaint(&ps);
41 RECT rcWnd;
42 GetWindowRect(&rcWnd);
43 INT cxDest = imageModel.GetWidth();
44 INT cyDest = imageModel.GetHeight();
45 INT xDest = (rcWnd.right - rcWnd.left - cxDest) / 2;
46 INT yDest = (rcWnd.bottom - rcWnd.top - cyDest) / 2;
47 ::BitBlt(hDC, xDest, yDest, cxDest, cyDest, imageModel.GetDC(), 0, 0, SRCCOPY);
48 EndPaint(&ps);
49 return 0;
50}
static HDC hDC
Definition: 3dtext.c:33
int GetWidth() const
Definition: history.cpp:253
int GetHeight() const
Definition: history.cpp:258
HDC GetDC()
Definition: history.cpp:271
static VOID BitBlt(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Width, _In_ ULONG Height, _In_reads_bytes_(Delta *Height) PUCHAR Buffer, _In_ ULONG BitsPerPixel, _In_ ULONG Delta)
Definition: common.c:57
ImageModel imageModel
Definition: history.cpp:11
static HDC
Definition: imagelist.c:92
LONG right
Definition: windef.h:308
LONG bottom
Definition: windef.h:309
LONG top
Definition: windef.h:307
LONG left
Definition: windef.h:306
int32_t INT
Definition: typedefs.h:58
#define SRCCOPY
Definition: wingdi.h:333
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)

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