1 /* 2 * PROJECT: PAINT for ReactOS 3 * LICENSE: LGPL 4 * FILE: base/applications/mspaint/fullscreen.h 5 * PURPOSE: Window for fullscreen view 6 * PROGRAMMERS: Benedikt Freisen 7 */ 8 9 #pragma once 10 11 class CFullscreenWindow : public CWindowImpl<CFullscreenWindow> 12 { 13 public: 14 DECLARE_WND_CLASS_EX(_T("FullscreenWindow"), CS_DBLCLKS, 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_SIZE, OnSize) 23 MESSAGE_HANDLER(WM_SETCURSOR, OnSetCursor) 24 MESSAGE_HANDLER(WM_GETTEXT, OnGetText) 25 END_MSG_MAP() 26 27 LRESULT OnCreate(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 28 LRESULT OnCloseOrKeyDownOrLButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 29 LRESULT OnPaint(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 30 LRESULT OnSize(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 31 LRESULT OnSetCursor(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 32 LRESULT OnGetText(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 33 }; 34