Describe. More...
Public Member Functions | |
STextHost (void) | |
构造函数 | |
~STextHost (void) | |
析构函数 | |
BOOL | Init (SRichEdit *pRichEdit) |
初始化函数 | |
ITextServices * | GetTextService () |
Describe. | |
Protected Member Functions | |
HRESULT | QueryInterface (REFGUID riid, void **ppvObject) OVERRIDE |
ULONG | AddRef () OVERRIDE |
ULONG | Release () OVERRIDE |
virtual HDC | TxGetDC () |
Get the DC for the host. | |
virtual INT | TxReleaseDC (HDC hdc) |
Release the DC gotten from the host. | |
virtual BOOL | TxShowScrollBar (INT fnBar, BOOL fShow) |
Show the scroll bar. | |
virtual BOOL | TxEnableScrollBar (INT fuSBFlags, INT fuArrowflags) |
Enable the scroll bar. | |
virtual BOOL | TxSetScrollRange (INT fnBar, LONG nMinPos, INT nMaxPos, BOOL fRedraw) |
Set the scroll range. | |
virtual BOOL | TxSetScrollPos (INT fnBar, INT nPos, BOOL fRedraw) |
Set the scroll position. | |
virtual void | TxInvalidateRect (LPCRECT prc, BOOL fMode) |
InvalidateRect. | |
virtual void | TxViewChange (BOOL fUpdate) |
Send a WM_PAINT to the window. | |
virtual BOOL | TxCreateCaret (HBITMAP hbmp, INT xWidth, INT yHeight) |
Create the caret. | |
virtual BOOL | TxShowCaret (BOOL fShow) |
Show the caret. | |
virtual BOOL | TxSetCaretPos (INT x, INT y) |
Set the caret position. | |
virtual BOOL | TxSetTimer (UINT idTimer, UINT uTimeout) |
Create a timer with the specified timeout. | |
virtual void | TxKillTimer (UINT idTimer) |
Destroy a timer. | |
virtual void | TxScrollWindowEx (INT dx, INT dy, LPCRECT lprcScroll, LPCRECT lprcClip, HRGN hrgnUpdate, LPRECT lprcUpdate, UINT fuScroll) |
Scroll the content of the specified window's client area. | |
virtual void | TxSetCapture (BOOL fCapture) |
Get mouse capture. | |
virtual void | TxSetFocus () |
Set the focus to the text window. | |
virtual void | TxSetCursor (HCURSOR hcur, BOOL fText) |
Establish a new cursor shape. | |
virtual BOOL | TxScreenToClient (LPPOINT lppt) |
Converts screen coordinates of a specified point to the client coordinates. | |
virtual BOOL | TxClientToScreen (LPPOINT lppt) |
Converts the client coordinates of a specified point to screen coordinates. | |
virtual HRESULT | TxActivate (LONG *plOldState) |
Request host to activate text services. | |
virtual HRESULT | TxDeactivate (LONG lNewState) |
Request host to deactivate text services. | |
virtual HRESULT | TxGetClientRect (LPRECT prc) |
Retrieves the coordinates of a window's client area. | |
virtual HRESULT | TxGetViewInset (LPRECT prc) |
Get the view rectangle relative to the inset. | |
virtual HRESULT | TxGetCharFormat (const CHARFORMATW **ppCF) |
Get the default character format for the text. | |
virtual HRESULT | TxGetParaFormat (const PARAFORMAT **ppPF) |
Get the default paragraph format for the text. | |
virtual COLORREF | TxGetSysColor (int nIndex) |
Get the background color for the window. | |
virtual HRESULT | TxGetBackStyle (TXTBACKSTYLE *pstyle) |
Get the background (either opaque or transparent) | |
virtual HRESULT | TxGetMaxLength (DWORD *plength) |
Get the maximum length for the text. | |
virtual HRESULT | TxGetScrollBars (DWORD *pdwScrollBar) |
Get the bits representing requested scroll bars for the window. | |
virtual HRESULT | TxGetPasswordChar (TCHAR *pch) |
Get the character to display for password input. | |
virtual HRESULT | TxGetAcceleratorPos (LONG *pcp) |
Get the accelerator character. | |
virtual HRESULT | TxGetExtent (LPSIZEL lpExtent) |
Get the native size. | |
virtual HRESULT | OnTxCharFormatChange (const CHARFORMATW *pcf) |
Notify host that default character format has changed. | |
virtual HRESULT | OnTxParaFormatChange (const PARAFORMAT *ppf) |
Notify host that default paragraph format has changed. | |
virtual HRESULT | TxGetPropertyBits (DWORD dwMask, DWORD *pdwBits) |
Bulk access to bit properties. | |
virtual HRESULT | TxNotify (DWORD iNotify, void *pv) |
Notify host of events. | |
virtual HIMC | TxImmGetContext () |
virtual void | TxImmReleaseContext (HIMC himc) |
virtual HRESULT | TxGetSelectionBarWidth (LONG *plSelBarWidth) |
Returns HIMETRIC size of the control bar. | |
Protected Attributes | |
BOOL | m_fUiActive |
ULONG | cRefs |
ITextServices * | pserv |
SRichEdit * | m_pRichEdit |
POINT | m_ptCaret |
Friends | |
class | SRichEdit |
Describe.
Definition at line 267 of file SRichEdit.cpp.
STextHost::STextHost | ( | void | ) |
STextHost::~STextHost | ( | void | ) |
|
protected |
Definition at line 750 of file SRichEdit.cpp.
|
inline |
BOOL STextHost::Init | ( | SRichEdit * | pRichEdit | ) |
初始化函数
SRichEdit* | pRichEdit – SRichEdit对象 |
Describe 初始化函数
Definition at line 1104 of file SRichEdit.cpp.
|
protectedvirtual |
Notify host that default character format has changed.
STextHost::OnTxCharFormatChange
const | CHARFORMATW * pcf – |
Describe Notify host that default character format has changed
Definition at line 1015 of file SRichEdit.cpp.
|
protectedvirtual |
Notify host that default paragraph format has changed.
STextHost::OnTxParaFormatChange
const | PARAFORMAT * ppf – |
Describe Notify host that default paragraph format has changed
Definition at line 1020 of file SRichEdit.cpp.
|
protected |
Definition at line 735 of file SRichEdit.cpp.
|
protected |
Definition at line 755 of file SRichEdit.cpp.
|
protectedvirtual |
Request host to activate text services.
LONG | * plOldState – |
Describe Request host to activate text services
Definition at line 799 of file SRichEdit.cpp.
|
protectedvirtual |
Converts the client coordinates of a specified point to screen coordinates.
LPPOINT | lppt – |
Describe Converts the client coordinates of a specified point to screen coordinates
Definition at line 806 of file SRichEdit.cpp.
|
protectedvirtual |
Create the caret.
HBITMAP | hbmp – caret bitmap |
INT | xWidth – caret width |
INT | yHeight – caret height |
Describe Create the caret
Definition at line 872 of file SRichEdit.cpp.
|
protectedvirtual |
Request host to deactivate text services.
LONG | lNewState – |
Describe Request host to deactivate text services
Definition at line 793 of file SRichEdit.cpp.
|
protectedvirtual |
Enable the scroll bar.
INT | fuSBFlags – |
INT | fuArrowflags – |
Describe Enable the scroll bar
Definition at line 905 of file SRichEdit.cpp.
|
protectedvirtual |
Get the accelerator character.
STextHost::TxGetAcceleratorPos
LONG | *pcp – |
Describe Get the accelerator character
Definition at line 1003 of file SRichEdit.cpp.
|
protectedvirtual |
Get the background (either opaque or transparent)
TXTBACKSTYLE | *pstyle – |
Describe Get the background (either opaque or transparent)
Definition at line 978 of file SRichEdit.cpp.
|
protectedvirtual |
Get the default character format for the text.
const | CHARFORMATW **ppCF – |
Describe Get the default character format for the text
Definition at line 775 of file SRichEdit.cpp.
|
protectedvirtual |
Retrieves the coordinates of a window's client area.
LPRECT | prc – |
Describe Retrieves the coordinates of a window's client area
Definition at line 787 of file SRichEdit.cpp.
|
protectedvirtual |
Get the DC for the host.
Describe Get the DC for the host
Definition at line 877 of file SRichEdit.cpp.
|
protectedvirtual |
Get the native size.
LPSIZEL | lpExtent – |
Describe Get the native size
Definition at line 1009 of file SRichEdit.cpp.
|
protectedvirtual |
Get the maximum length for the text.
DWORD | *plength – |
Describe Get the maximum length for the text
Definition at line 984 of file SRichEdit.cpp.
|
protectedvirtual |
Get the default paragraph format for the text.
const | PARAFORMAT **ppPF – |
Describe Get the default character format for the text
Definition at line 781 of file SRichEdit.cpp.
|
protectedvirtual |
Get the character to display for password input.
TCHAR | *pch – |
Describe Get the character to display for password input
Definition at line 997 of file SRichEdit.cpp.
|
protectedvirtual |
Bulk access to bit properties.
DWORD | dwMask – |
DWORD | *pdwBits – |
Describe Bulk access to bit properties
Definition at line 1025 of file SRichEdit.cpp.
|
protectedvirtual |
Get the bits representing requested scroll bars for the window.
DWORD | *pdwScrollBar – |
Describe Get the bits representing requested scroll bars for the window
Definition at line 990 of file SRichEdit.cpp.
|
protectedvirtual |
Returns HIMETRIC size of the control bar.
STextHost::TxGetSelectionBarWidth
LONG | *plSelBarWidth – |
Describe Returns HIMETRIC size of the control bar
Definition at line 1098 of file SRichEdit.cpp.
|
protectedvirtual |
Get the background color for the window.
int | nIndex – |
Describe Get the background color for the window
Definition at line 973 of file SRichEdit.cpp.
|
protectedvirtual |
Get the view rectangle relative to the inset.
LPRECT | prc – |
Describe Get the view rectangle relative to the inset
Definition at line 769 of file SRichEdit.cpp.
|
protectedvirtual |
|
protectedvirtual |
STextHost::TxImmReleaseContext
HIMC | himc – |
Describe
Definition at line 1093 of file SRichEdit.cpp.
|
protectedvirtual |
InvalidateRect.
LPCRECT | prc – |
BOOL | fMode – |
Describe Set the scroll position
Definition at line 953 of file SRichEdit.cpp.
|
protectedvirtual |
Destroy a timer.
UINT | idTimer – timer id |
Describe Destroy a timer
Definition at line 847 of file SRichEdit.cpp.
|
protectedvirtual |
Notify host of events.
DWORD | iNotify – |
void | *pv – |
Describe Bulk access to bit properties
Definition at line 1083 of file SRichEdit.cpp.
|
protectedvirtual |
Release the DC gotten from the host.
Describe Release the DC gotten from the host
Definition at line 882 of file SRichEdit.cpp.
|
protectedvirtual |
Converts screen coordinates of a specified point to the client coordinates.
LPPOINT | lppt – |
Describe Converts screen coordinates of a specified point to the client coordinates
Definition at line 815 of file SRichEdit.cpp.
|
protectedvirtual |
Scroll the content of the specified window's client area.
INT | dx – |
INT | dy – |
LPCRECT | lprcScroll – |
LPCRECT | lprcClip – |
HRGN | hrgnUpdate – |
LPRECT | lprcUpdate – |
UINT | fuScroll – |
Describe Scroll the content of the specified window's client area
Definition at line 842 of file SRichEdit.cpp.
|
protectedvirtual |
Get mouse capture.
BOOL | fCapture – |
Describe Get mouse capture
Definition at line 834 of file SRichEdit.cpp.
|
protectedvirtual |
Set the caret position.
INT | x – caret position:x |
INT | y – caret position:y |
Describe Set the caret position
Definition at line 857 of file SRichEdit.cpp.
|
protectedvirtual |
Establish a new cursor shape.
HCURSOR | hcur – |
BOOL | fText – |
Describe Establish a new cursor shape
Definition at line 824 of file SRichEdit.cpp.
|
protectedvirtual |
Set the focus to the text window.
Describe Set the focus to the text window
Definition at line 829 of file SRichEdit.cpp.
|
protectedvirtual |
Set the scroll position.
INT | fnBar – |
INT | nPos – |
BOOL | fRedraw – |
Describe Set the scroll position
Definition at line 948 of file SRichEdit.cpp.
|
protectedvirtual |
Set the scroll range.
INT | fnBar – |
LONG | nMinPos – |
INT | nMaxPos – |
BOOL | fRedraw – |
Describe Set the scroll range
Definition at line 923 of file SRichEdit.cpp.
|
protectedvirtual |
Create a timer with the specified timeout.
UINT | idTimer – timer ID |
UINT | uTimeout – time interval |
Describe Create a timer with the specified timeout
Definition at line 852 of file SRichEdit.cpp.
|
protectedvirtual |
Show the caret.
BOOL | fShow – true to show the caret |
Describe Show the caret
Definition at line 864 of file SRichEdit.cpp.
|
protectedvirtual |
Show the scroll bar.
INT | fnBar – |
BOOL | fShow – |
Describe Show the scroll bar
Definition at line 887 of file SRichEdit.cpp.
|
protectedvirtual |
Send a WM_PAINT to the window.
BOOL | fUpdate – |
Describe Send a WM_PAINT to the window
Definition at line 965 of file SRichEdit.cpp.
|
friend |
Definition at line 268 of file SRichEdit.cpp.
|
protected |
Reference Count
Definition at line 713 of file SRichEdit.cpp.
|
protected |
Whether control is inplace active
Definition at line 711 of file SRichEdit.cpp.
|
protected |
swindow for text host
Definition at line 715 of file SRichEdit.cpp.
|
protected |
Definition at line 716 of file SRichEdit.cpp.
|
protected |
pointer to Text Services object
Definition at line 714 of file SRichEdit.cpp.