1 /* 2 * PROJECT: PAINT for ReactOS 3 * LICENSE: LGPL 4 * FILE: base/applications/mspaint/textedit.h 5 * PURPOSE: Text editor and font chooser for the text tool 6 * PROGRAMMERS: Benedikt Freisen 7 */ 8 9 #pragma once 10 11 class CTextEditWindow : public CWindowImpl<CTextEditWindow> 12 { 13 public: 14 DECLARE_WND_CLASS_EX(_T("TextEdit"), CS_DBLCLKS, COLOR_BTNFACE) 15 16 BEGIN_MSG_MAP(CTextEditWindow) 17 MESSAGE_HANDLER(WM_CREATE, OnCreate) 18 MESSAGE_HANDLER(WM_SIZE, OnSize) 19 MESSAGE_HANDLER(WM_CLOSE, OnClose) 20 MESSAGE_HANDLER(WM_COMMAND, OnCommand) 21 MESSAGE_HANDLER(WM_TOOLSMODELTOOLCHANGED, OnToolsModelToolChanged) 22 END_MSG_MAP() 23 24 CWindow editControl; 25 26 LRESULT OnCreate(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 27 LRESULT OnSize(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 28 LRESULT OnClose(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 29 LRESULT OnCommand(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 30 LRESULT OnToolsModelToolChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 31 }; 32