ReactOS  0.4.12-dev-75-g00dd17e
textedit.h
Go to the documentation of this file.
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:
15 
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 };
#define WM_TOOLSMODELTOOLCHANGED
Definition: definitions.h:241
LRESULT OnCommand(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: textedit.cpp:38
#define DECLARE_WND_CLASS_EX(WndClassName, style, bkgnd)
Definition: atlwin.h:1867
LRESULT OnCreate(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: textedit.cpp:14
WPARAM wParam
Definition: combotst.c:138
UINT_PTR WPARAM
Definition: windef.h:207
LONG_PTR LPARAM
Definition: windef.h:208
#define _T(x)
Definition: vfdio.h:22
unsigned int BOOL
Definition: ntddk_ex.h:94
LRESULT OnToolsModelToolChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: textedit.cpp:55
#define WM_SIZE
Definition: winuser.h:1593
#define END_MSG_MAP()
Definition: atlwin.h:1780
#define WM_CLOSE
Definition: winuser.h:1603
unsigned int UINT
Definition: ndis.h:50
CWindow editControl
Definition: textedit.h:24
LRESULT OnClose(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: textedit.cpp:32
#define COLOR_BTNFACE
Definition: winuser.h:918
#define CS_DBLCLKS
Definition: winuser.h:646
#define WM_COMMAND
Definition: winuser.h:1716
#define BEGIN_MSG_MAP(theClass)
Definition: atlwin.h:1761
#define MESSAGE_HANDLER(msg, func)
Definition: atlwin.h:1789
#define WM_CREATE
Definition: winuser.h:1590
LONG_PTR LRESULT
Definition: windef.h:209
LRESULT OnSize(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: textedit.cpp:24
LPARAM lParam
Definition: combotst.c:139