1 /* 2 * PROJECT: PAINT for ReactOS 3 * LICENSE: LGPL-2.0-or-later (https://spdx.org/licenses/LGPL-2.0-or-later) 4 * PURPOSE: Window for fullscreen view 5 * COPYRIGHT: Copyright 2015 Benedikt Freisen <b.freisen@gmx.net> 6 */ 7 8 #pragma once 9 10 class CFullscreenWindow : public CWindowImpl<CFullscreenWindow> 11 { 12 public: 13 DECLARE_WND_CLASS_EX(L"FullscreenWindow", CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW, 14 COLOR_BACKGROUND) 15 16 BEGIN_MSG_MAP(CFullscreenWindow) 17 MESSAGE_HANDLER(WM_CREATE, OnCreate) 18 MESSAGE_HANDLER(WM_CLOSE, OnCloseOrKeyDownOrLButtonDown) 19 MESSAGE_HANDLER(WM_KEYDOWN, OnCloseOrKeyDownOrLButtonDown) 20 MESSAGE_HANDLER(WM_LBUTTONDOWN, OnCloseOrKeyDownOrLButtonDown) 21 MESSAGE_HANDLER(WM_PAINT, OnPaint) 22 MESSAGE_HANDLER(WM_GETTEXT, OnGetText) 23 END_MSG_MAP() 24 25 HWND DoCreate(); 26 27 private: 28 LRESULT OnCreate(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 29 LRESULT OnCloseOrKeyDownOrLButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 30 LRESULT OnPaint(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 31 LRESULT OnGetText(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 32 }; 33