ReactOS 0.4.15-dev-7108-g1cf6ce6
CAppRichEdit Class Reference

#include <appview.h>

Inheritance diagram for CAppRichEdit:
Collaboration diagram for CAppRichEdit:

Public Member Functions

VOID LoadAndInsertText (UINT uStringID, const CStringW &szText, DWORD TextFlags)
VOID LoadAndInsertText (UINT uStringID, DWORD StringFlags)
VOID InsertTextWithString (UINT StringID, const CStringW &Text, DWORD TextFlags)
VOID SetWelcomeText ()
- Public Member Functions inherited from CUiWindow< CRichEdit >
virtual CUiBoxAsBox ()
HWND GetWindow ()
virtual VOID ComputeMinimalSize (SIZE *size)
virtual VOID ComputeContentBounds (RECT *rect)
virtual DWORD_PTR CountSizableChildren ()
virtual HDWP OnParentSize (RECT parentRect, HDWP hDwp)
virtual VOID AppendTabOrderWindow (int Direction, ATL::CSimpleArray< HWND > &TabOrderList)
virtual ~CUiWindow ()
VOID GetWindowTextW (CStringW &szText)
- Public Member Functions inherited from CUiPrimitive
virtual ~CUiPrimitive ()
virtual CUiBoxAsBox ()
virtual VOID ComputeMinimalSize (SIZE *size)
virtual VOID ComputeContentBounds (RECT *rect)
virtual DWORD_PTR CountSizableChildren ()
virtual HDWP OnParentSize (RECT parentRect, HDWP hDwp)
- Public Member Functions inherited from CRichEdit
 CRichEdit ()
VOID SetRangeFormatting (SIZE_T Start, SIZE_T End, DWORD dwEffects)
LONG GetTextLen ()
VOID InsertText (LPCWSTR lpszText, DWORD dwEffects)
VOID InsertText (const CStringW &szText, DWORD dwEffects)
VOID SetText (LPCWSTR lpszText, DWORD dwEffects)
VOID SetText (const CStringW &szText, DWORD dwEffects)
HWND Create (HWND hwndParent)
virtual VOID OnLink (ENLINK *Link)
 ~CRichEdit ()

Additional Inherited Members

- Public Attributes inherited from CUiBox
CUiMargin m_Margin
CUiAlignment m_HorizontalAlignment
CUiAlignment m_VerticalAlignment
- Protected Member Functions inherited from CUiBox
 CUiBox ()
virtual VOID ComputeRect (RECT parentRect, RECT currentRect, RECT *newRect)
- Protected Attributes inherited from CUiPrimitive

Detailed Description

Definition at line 83 of file appview.h.

Member Function Documentation

◆ InsertTextWithString()

VOID CAppRichEdit::InsertTextWithString ( UINT  StringID,
const CStringW Text,
DWORD  TextFlags 

Definition at line 260 of file appview.cpp.

262 if (!Text.IsEmpty())
263 {
264 LoadAndInsertText(StringID, Text, TextFlags);
265 }
VOID LoadAndInsertText(UINT uStringID, const CStringW &szText, DWORD TextFlags)
Definition: appview.cpp:236
char * Text
Definition: combotst.c:136

Referenced by CInstalledApplicationInfo::AddApplicationRegString(), and CInstalledApplicationInfo::ShowAppInfo().

◆ LoadAndInsertText() [1/2]

VOID CAppRichEdit::LoadAndInsertText ( UINT  uStringID,
const CStringW szText,
DWORD  TextFlags 

Definition at line 236 of file appview.cpp.

238 CStringW szLoadedText;
239 if (!szText.IsEmpty() && szLoadedText.LoadStringW(uStringID))
240 {
241 const DWORD StringFlags = CFE_BOLD;
242 InsertText(szLoadedText, StringFlags);
243 InsertText(szText, TextFlags);
244 }
bool IsEmpty() const noexcept
Definition: atlsimpstr.h:389
VOID InsertText(LPCWSTR lpszText, DWORD dwEffects)
Definition: crichedit.h:77
unsigned long DWORD
Definition: ntddk_ex.h:95
#define CFE_BOLD
Definition: richedit.h:406

Referenced by InsertTextWithString(), CAvailableApplicationInfo::InsertVersionInfo(), and CAvailableApplicationInfo::ShowAppInfo().

◆ LoadAndInsertText() [2/2]

VOID CAppRichEdit::LoadAndInsertText ( UINT  uStringID,
DWORD  StringFlags 

Definition at line 248 of file appview.cpp.

250 CStringW szLoadedText;
251 if (szLoadedText.LoadStringW(uStringID))
252 {
253 InsertText(L"\n", 0);
254 InsertText(szLoadedText, StringFlags);
255 InsertText(L"\n", 0);
256 }
#define L(x)
Definition: ntvdm.h:50

◆ SetWelcomeText()

VOID CAppRichEdit::SetWelcomeText ( )

Definition at line 269 of file appview.cpp.

271 CStringW szText;
273 szText.LoadStringW(IDS_WELCOME_TITLE);
274 SetText(szText, CFE_BOLD);
276 szText.LoadStringW(IDS_WELCOME_TEXT);
277 InsertText(szText, 0);
279 szText.LoadStringW(IDS_WELCOME_URL);
280 InsertText(szText, CFM_LINK);
Definition: resource.h:95
Definition: resource.h:96
Definition: resource.h:97
VOID SetText(LPCWSTR lpszText, DWORD dwEffects)
Definition: crichedit.h:91
#define CFM_LINK
Definition: richedit.h:337

Referenced by CAppInfoDisplay::SetWelcomeText().

The documentation for this class was generated from the following files: