soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
SEdit Class Reference

Simple Edit Control. More...

#include <SEdit.h>

Inheritance diagram for SEdit:
SComboEdit

Public Member Functions

 SEdit ()
 Constructor.
 
void GetCueText (IStringT *pStr) SCONST
 Get the cue text.
 
COLORREF GetCueColor () SCONST
 Get the cue text color.
 
SStringT GetCueText (BOOL bRawText=FALSE) const
 Get the cue text.
 
virtual HRESULT SetAttribute (const SNS::SStringW &amp;amp;amp;amp;strAttribName, const SNS::SStringW &amp;amp;amp;amp;strValue, BOOL bLoading=FALSE)
 

Protected Member Functions

virtual HRESULT OnLanguageChanged ()
 Handle language change event.
 
void OnPaint (IRenderTarget *pRT)
 Paint the control.
 
void OnSetFocus (SWND wndOld)
 Handle set focus event.
 
UINT GetCueTextAlign ()
 Get the alignment of the cue text.
 
void OnKillFocus (SWND wndFocus)
 Handle kill focus event.
 

Protected Attributes

COLORREF m_crCue
 
STrText m_strCue
 

Detailed Description

Simple Edit Control.

A simple edit control that supports cue text and color customization.

Definition at line 13 of file SEdit.h.

Constructor & Destructor Documentation

◆ SEdit()

SNSBEGIN SEdit::SEdit ( )

Constructor.

Definition at line 6 of file SEdit.cpp.

Member Function Documentation

◆ GetCueColor()

COLORREF SEdit::GetCueColor ( )
inline

Get the cue text color.

Returns
Cue text color

Definition at line 37 of file SEdit.h.

◆ GetCueText() [1/2]

SStringT SEdit::GetCueText ( BOOL bRawText = FALSE) const

Get the cue text.

Parameters
bRawTextWhether to get raw text
Returns
Cue text

Definition at line 60 of file SEdit.cpp.

◆ GetCueText() [2/2]

void SEdit::GetCueText ( IStringT * pStr)
inline

Get the cue text.

Parameters
pStrOutput string for the cue text

Definition at line 27 of file SEdit.h.

◆ GetCueTextAlign()

UINT SEdit::GetCueTextAlign ( )
protected

Get the alignment of the cue text.

Returns
Alignment of the cue text

Definition at line 28 of file SEdit.cpp.

◆ OnKillFocus()

void SEdit::OnKillFocus ( SWND wndFocus)
protected

Handle kill focus event.

Parameters
wndFocusNew focus window handle

This function is a message handler.

Definition at line 14 of file SEdit.cpp.

◆ OnLanguageChanged()

HRESULT SEdit::OnLanguageChanged ( )
protectedvirtual

Handle language change event.

Returns
HRESULT

Definition at line 65 of file SEdit.cpp.

◆ OnPaint()

void SEdit::OnPaint ( IRenderTarget * pRT)
protected

Paint the control.

Parameters
pRTRendering target handle

This function is a message handler.

Definition at line 39 of file SEdit.cpp.

◆ OnSetFocus()

void SEdit::OnSetFocus ( SWND wndOld)
protected

Handle set focus event.

Parameters
wndOldPrevious focus window handle

This function is a message handler.

Definition at line 21 of file SEdit.cpp.

◆ SetAttribute()

virtual HRESULT SEdit::SetAttribute ( const SNS::SStringW &amp;amp;amp;amp; strAttribName,
const SNS::SStringW &amp;amp;amp;amp; strValue,
BOOL bLoading = FALSE )
inlinevirtual

Definition at line 50 of file SEdit.h.

Member Data Documentation

◆ m_crCue

COLORREF SEdit::m_crCue
protected

Cue text color

Definition at line 96 of file SEdit.h.

◆ m_strCue

STrText SEdit::m_strCue
protected

Cue text

Definition at line 97 of file SEdit.h.


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