diff options
author | George Hazan <george.hazan@gmail.com> | 2023-10-30 15:22:28 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-10-30 15:22:28 +0300 |
commit | ee2337c6bc391d0ab1d58123899920c6df0d2ef0 (patch) | |
tree | 976d43891e839e11702387f121c505792f284aea /libs/mTextControl/src/FormattedTextDraw.h | |
parent | 16143e784b1697c4b5349bc888c97f7160cf4534 (diff) |
fixes #3616 (NewStory: не работают настройки цвета своего имени и имени собеседника)
Diffstat (limited to 'libs/mTextControl/src/FormattedTextDraw.h')
-rw-r--r-- | libs/mTextControl/src/FormattedTextDraw.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/libs/mTextControl/src/FormattedTextDraw.h b/libs/mTextControl/src/FormattedTextDraw.h index f9ff25f2b6..edfcac0d2f 100644 --- a/libs/mTextControl/src/FormattedTextDraw.h +++ b/libs/mTextControl/src/FormattedTextDraw.h @@ -17,17 +17,18 @@ class CFormattedTextDraw : public ITextHost, public MZeroedObject { HWND m_hwndParent; - RECT m_rcClient; // Client Rect - RECT m_rcViewInset; // view rect inset - SIZEL m_sizelExtent; // Extent array + RECT m_rcClient; // Client Rect + RECT m_rcViewInset; // view rect inset + SIZEL m_sizelExtent; // Extent array - int nPixelsPerInchX; // Pixels per logical inch along width - int nPixelsPerInchY; // Pixels per logical inch along height + int nPixelsPerInchX; // Pixels per logical inch along width + int nPixelsPerInchY; // Pixels per logical inch along height CHARFORMAT2W m_CF; PARAFORMAT2 m_PF; - uint32_t m_dwPropertyBits; // Property bits + uint32_t m_dwPropertyBits; // Property bits + bool m_bNative = false; // Doesn't generate RTF itself, uses external plain RTF ITextServices *m_spTextServices; ITextDocument *m_spTextDocument; @@ -45,6 +46,7 @@ public: __forceinline ITextServices *getTextService() { return m_spTextServices; }; __forceinline ITextDocument *getTextDocument() { return m_spTextDocument; }; + __forceinline bool isNative() const { return m_bNative; } __forceinline void setParentWnd(HWND hwnd, RECT rect) { m_hwndParent = hwnd; m_rcClient = rect; } // IUnknown |