2015-08-17 12:03:39 +00:00
|
|
|
/*
|
2023-06-23 11:04:32 +00:00
|
|
|
* PROJECT: PAINT for ReactOS
|
|
|
|
* LICENSE: LGPL-2.0-or-later (https://spdx.org/licenses/LGPL-2.0-or-later)
|
|
|
|
* PURPOSE: Window for fullscreen view
|
2023-06-27 18:22:21 +00:00
|
|
|
* COPYRIGHT: Copyright 2015 Benedikt Freisen <b.freisen@gmx.net>
|
2015-08-17 12:03:39 +00:00
|
|
|
*/
|
|
|
|
|
2017-12-09 12:36:45 +00:00
|
|
|
#pragma once
|
|
|
|
|
2015-08-17 12:03:39 +00:00
|
|
|
class CFullscreenWindow : public CWindowImpl<CFullscreenWindow>
|
|
|
|
{
|
|
|
|
public:
|
2023-11-04 10:25:45 +00:00
|
|
|
DECLARE_WND_CLASS_EX(L"FullscreenWindow", CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW,
|
2023-06-14 08:42:21 +00:00
|
|
|
COLOR_BACKGROUND)
|
2015-08-17 12:03:39 +00:00
|
|
|
|
|
|
|
BEGIN_MSG_MAP(CFullscreenWindow)
|
|
|
|
MESSAGE_HANDLER(WM_CREATE, OnCreate)
|
|
|
|
MESSAGE_HANDLER(WM_CLOSE, OnCloseOrKeyDownOrLButtonDown)
|
|
|
|
MESSAGE_HANDLER(WM_KEYDOWN, OnCloseOrKeyDownOrLButtonDown)
|
|
|
|
MESSAGE_HANDLER(WM_LBUTTONDOWN, OnCloseOrKeyDownOrLButtonDown)
|
|
|
|
MESSAGE_HANDLER(WM_PAINT, OnPaint)
|
|
|
|
MESSAGE_HANDLER(WM_GETTEXT, OnGetText)
|
|
|
|
END_MSG_MAP()
|
|
|
|
|
2023-03-28 13:31:26 +00:00
|
|
|
HWND DoCreate();
|
|
|
|
|
|
|
|
private:
|
2015-08-17 12:03:39 +00:00
|
|
|
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);
|
|
|
|
};
|