5 #ifndef __win32textedit__ 6 #define __win32textedit__ 8 #include "../iplatformtextedit.h" 15 #define WINDOWSPROC WNDPROC 17 #define WINDOWSPROC FARPROC 23 class Win32TextEdit :
public IPlatformTextEdit
26 Win32TextEdit (HWND parent, IPlatformTextEditCallback* textEdit);
27 ~Win32TextEdit () noexcept;
29 UTF8String getText () override;
30 bool setText (const UTF8String& text) override;
31 bool updateSize () override;
33 HWND getPlatformControl ()
const {
return platformControl; }
34 HBRUSH getPlatformBackColor ()
const {
return platformBackColor; }
35 IPlatformTextEditCallback* getTextEdit ()
const {
return textEdit; }
43 HBRUSH platformBackColor;
44 WINDOWSPROC oldWndProcEdit;
47 static LONG_PTR WINAPI procEdit (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
54 #endif // __win32textedit__ Definition: customcontrols.cpp:8