soui 5.0.0.1
 
Loading...
Searching...
No Matches
SListView Class Reference
Inheritance diagram for SListView:
TPanelProxy< IListView > SHostProxy IItemContainer IListView SPanel IHostProxy IPanel TWindowProxy< IPanel > IScrollBarHost ICtrl IPanel SWindow IObjRef ICtrl TObjRefImpl< SObjectImpl< IWindow > > IAnimationListener IObjRef SObjectImpl< IWindow > IWindow IObject IObjRef

Classes

struct  ItemInfo
 

Public Member Functions

 SListView ()
 Constructor.
 
 ~SListView ()
 Destructor.
 
BOOL SetAdapter (ILvAdapter *adapter) OVERRIDE
 Set the adapter for the list view.
 
ILvAdapterGetAdapter () SCONST OVERRIDE
 Get the adapter for the list view.
 
IListViewItemLocatorGetItemLocator () SCONST OVERRIDE
 Get the item locator for the list view.
 
void SetItemLocator (IListViewItemLocator *pItemLocator) OVERRIDE
 Set the item locator for the list view.
 
void EnsureVisible (int iItem) OVERRIDE
 Ensure an item is visible.
 
void SetSel (int iItem, BOOL bNotify=FALSE) OVERRIDE
 Set the selected item.
 
int GetSel () SCONST OVERRIDE
 Get the selected item.
 
IItemPanelHitTest (const POINT *pt) SCONST OVERRIDE
 Hit test to determine the item under the mouse.
 
SItemPanelHitTest (CPoint &pt) const
 Hit test to determine the item under the mouse.
 
void GetDesiredSize (SIZE *psz, int nParentWid, int nParentHei) OVERRIDE
 Get the desired size of the control.
 
- Public Member Functions inherited from TPanelProxy< IListView >
long AddRef () OVERRIDE
 
long Release () OVERRIDE
 
void OnFinalRelease () OVERRIDE
 
IWindowToIWindow () OVERRIDE
 
BOOL ShowScrollBar (int wBar, BOOL bShow) OVERRIDE
 
BOOL EnableScrollBar (int wBar, BOOL bEnable) OVERRIDE
 
BOOL IsScrollBarEnable (BOOL bVertical) SCONST OVERRIDE
 
void SetScrollInfo (SCROLLINFO si, BOOL bVertical) OVERRIDE
 
BOOL SetScrollPos (BOOL bVertical, int nNewPos, BOOL bRedraw) OVERRIDE
 
int GetScrollPos (BOOL bVertical) SCONST OVERRIDE
 
BOOL SetScrollRange (BOOL bVertical, int nMinPos, int nMaxPos, BOOL bRedraw) OVERRIDE
 
BOOL GetScrollRange (BOOL bVertical, LPINT lpMinPos, LPINT lpMaxPos) SCONST OVERRIDE
 
BOOL HasScrollBar (BOOL bVertical) SCONST OVERRIDE
 
HRESULT QueryInterface (REFGUID id, IObjRef **ppRet) OVERRIDE
 
- Public Member Functions inherited from IListView
 DECLARE_CLASS_SIID (IID_IListView) long AddRef() PURE
 增加引用计数
 
long Release () PURE
 减少引用计数
 
void OnFinalRelease () PURE
 释放对象
 
IWindowToIWindow () PURE
 转换为IWindow*接口
 
BOOL ShowScrollBar (int wBar, BOOL bShow) PURE
 显示/隐藏滚动条
 
BOOL EnableScrollBar (int wBar, BOOL bEnable) PURE
 Enable/Disable滚动条
 
BOOL IsScrollBarEnable (BOOL bVertical) SCONST PURE
 获取滚动条Enable状态
 
void SetScrollInfo (SCROLLINFO si, BOOL bVertical) PURE
 设置滚动条数据
 
BOOL SetScrollPos (BOOL bVertical, int nNewPos, BOOL bRedraw) PURE
 设置滚动条位置
 
int GetScrollPos (BOOL bVertical) SCONST PURE
 获取滚动条位置
 
BOOL SetScrollRange (BOOL bVertical, int nMinPos, int nMaxPos, BOOL bRedraw) PURE
 设置滚动条范围
 
BOOL GetScrollRange (BOOL bVertical, LPINT lpMinPos, LPINT lpMaxPos) SCONST PURE
 获取滚动条范围
 
BOOL HasScrollBar (BOOL bVertical) SCONST PURE
 查询滚动条启用状态
 
BOOL SetAdapter (ILvAdapter *adapter) PURE
 设置列表的Adapter
 
ILvAdapterGetAdapter () SCONST PURE
 获取控件的Adapter对象
 
void SetItemLocator (IListViewItemLocator *pItemLocator) PURE
 设置列表项位置定位器
 
IListViewItemLocatorGetItemLocator () SCONST PURE
 获取位置定位器
 
void EnsureVisible (int iItem) PURE
 使指定行滚动到视图可见区
 
void SetSel (int iItem, BOOL bNotify DEF_VAL(FALSE)) PURE
 选中指定行
 
int GetSel () SCONST PURE
 获取当前选中行
 
IItemPanelHitTest (const POINT *pt) SCONST PURE
 热点测试
 
- Public Member Functions inherited from IPanel
 DECLARE_CLASS_SIID (IID_IPanel) long AddRef() PURE
 增加引用计数
 
long Release () PURE
 减少引用计数
 
void OnFinalRelease () PURE
 释放对象
 
IWindowToIWindow () PURE
 转换为IWindow*接口
 
BOOL ShowScrollBar (int wBar, BOOL bShow) PURE
 显示/隐藏滚动条
 
BOOL EnableScrollBar (int wBar, BOOL bEnable) PURE
 Enable/Disable滚动条
 
BOOL IsScrollBarEnable (BOOL bVertical) SCONST PURE
 获取滚动条Enable状态
 
void SetScrollInfo (SCROLLINFO si, BOOL bVertical) PURE
 设置滚动条数据
 
BOOL SetScrollPos (BOOL bVertical, int nNewPos, BOOL bRedraw) PURE
 设置滚动条位置
 
int GetScrollPos (BOOL bVertical) SCONST PURE
 获取滚动条位置
 
BOOL SetScrollRange (BOOL bVertical, int nMinPos, int nMaxPos, BOOL bRedraw) PURE
 设置滚动条范围
 
BOOL GetScrollRange (BOOL bVertical, LPINT lpMinPos, LPINT lpMaxPos) SCONST PURE
 获取滚动条范围
 
BOOL HasScrollBar (BOOL bVertical) SCONST PURE
 查询滚动条启用状态
 
- Public Member Functions inherited from ICtrl
 DECLARE_CLASS_SIID (IID_ICtrl) long AddRef() PURE
 增加引用计数
 
long Release () PURE
 减少引用计数
 
void OnFinalRelease () PURE
 释放对象
 
IWindowToIWindow () PURE
 转换为IWindow*接口
 
- Public Member Functions inherited from IObjRef
long AddRef () PURE
 Increases the reference count.
 
long Release () PURE
 Decreases the reference count.
 
void OnFinalRelease () PURE
 Called when the reference count reaches zero and the object is about to be released.
 
- Public Member Functions inherited from SPanel
BOOL ShowScrollBar (int wBar, BOOL bShow) OVERRIDE
 Shows or hides a scrollbar.
 
BOOL EnableScrollBar (int wBar, BOOL bEnable) OVERRIDE
 Enables or disables a scrollbar.
 
BOOL IsScrollBarEnable (BOOL bVertical) SCONST OVERRIDE
 Checks if a scrollbar is enabled.
 
void SetScrollInfo (SCROLLINFO si, BOOL bVertical) OVERRIDE
 Sets the scroll information for a scrollbar.
 
BOOL SetScrollPos (BOOL bVertical, int nNewPos, BOOL bRedraw) OVERRIDE
 Sets the scroll position for a scrollbar.
 
int GetScrollPos (BOOL bVertical) SCONST OVERRIDE
 Gets the scroll position for a scrollbar.
 
BOOL SetScrollRange (BOOL bVertical, int nMinPos, int nMaxPos, BOOL bRedraw) OVERRIDE
 Sets the scroll range for a scrollbar.
 
BOOL GetScrollRange (BOOL bVertical, LPINT lpMinPos, LPINT lpMaxPos) SCONST OVERRIDE
 Gets the scroll range for a scrollbar.
 
BOOL HasScrollBar (BOOL bVertical) SCONST OVERRIDE
 Checks if a scrollbar is present.
 
virtual void WINAPI GetClientRect (LPRECT pRect) const
 Gets the client rectangle.
 
virtual CRect GetClientRect () const
 Gets the client rectangle.
 
- Public Member Functions inherited from TWindowProxy< IPanel >
long AddRef () OVERRIDE
 
long Release () OVERRIDE
 
void OnFinalRelease () OVERRIDE
 
IWindowToIWindow () OVERRIDE
 
HRESULT QueryInterface (REFGUID id, IObjRef **ppRet) OVERRIDE
 
- Public Member Functions inherited from SWindow
 SWindow ()
 Constructor.
 
virtual ~SWindow ()
 Destructor.
 
BOOL IsMsgHandled () const
 Checks if the message is handled.
 
void SetMsgHandled (BOOL bHandled)
 Sets the message handled flag.
 
void OnFinalRelease ()
 
SWND GetSwnd () SCONST OVERRIDE
 
ILayoutGetLayout () OVERRIDE
 
ILayoutParamGetLayoutParam () SCONST OVERRIDE
 
BOOL SetLayoutParam (ILayoutParam *pLayoutParam) OVERRIDE
 
BOOL IsFloat () SCONST OVERRIDE
 
BOOL IsDisplay () SCONST OVERRIDE
 
void SetWindowText (LPCTSTR lpszText) OVERRIDE
 
void SetWindowTextU8 (LPCSTR lpszText) OVERRIDE
 
void SetToolTipText (LPCTSTR pszText) OVERRIDE
 
void SetToolTipTextU8 (LPCSTR pszText) OVERRIDE
 
BOOL IsChecked () SCONST OVERRIDE
 
void SetCheck (BOOL bCheck) OVERRIDE
 
BOOL IsDisabled (BOOL bCheckParent DEF_VAL(FALSE)) SCONST OVERRIDE
 
void EnableWindow (BOOL bEnable, BOOL bUpdate DEF_VAL(FALSE)) OVERRIDE
 
BOOL IsVisible (BOOL bCheckParent DEF_VAL(FALSE)) SCONST OVERRIDE
 
void SetVisible (BOOL bVisible, BOOL bUpdate DEF_VAL(FALSE)) OVERRIDE
 
BOOL IsMsgTransparent () SCONST OVERRIDE
 
ULONG_PTR GetUserData () SCONST OVERRIDE
 
ULONG_PTR SetUserData (ULONG_PTR uData) OVERRIDE
 
void GetWindowRect (LPRECT prect) SCONST OVERRIDE
 
BOOL IsVideoCanvas () SCONST OVERRIDE
 
void GetVisibleRect (LPRECT prect) SCONST OVERRIDE
 
void GetClientRect (LPRECT prect) SCONST OVERRIDE
 
BOOL IsContainPoint (POINT pt, BOOL bClientOnly) SCONST OVERRIDE
 
void DoColorize (COLORREF cr) OVERRIDE
 
COLORREF GetColorizeColor () SCONST OVERRIDE
 
BOOL Destroy () OVERRIDE
 
void BringWindowToTop () OVERRIDE
 
UINT GetChildrenCount () SCONST OVERRIDE
 
LRESULT SSendMessage (UINT uMsg, WPARAM wParam=0, LPARAM lParam=0, BOOL *pbMsgHandled DEF_VAL(NULL)) OVERRIDE
 
void SDispatchMessage (UINT uMsg, WPARAM wParam=0, LPARAM lParam=0) OVERRIDE
 
void SetFocus () OVERRIDE
 
void KillFocus () OVERRIDE
 
BOOL IsFocused () SCONST OVERRIDE
 
void Invalidate () OVERRIDE
 
void InvalidateRect (LPCRECT lprect) OVERRIDE
 
void LockUpdate () OVERRIDE
 
void UnlockUpdate () OVERRIDE
 
BOOL IsUpdateLocked (BOOL bCheckParent DEF_VAL(FALSE)) SCONST OVERRIDE
 
void Update (BOOL bForce DEF_VAL(FALSE)) OVERRIDE
 
void Move (LPCRECT prect) OVERRIDE
 
void SetWindowRgn (IRegionS *pRgn, BOOL bRedraw DEF_VAL(TRUE)) OVERRIDE
 
IRegionSGetWindowRgn () SCONST OVERRIDE
 
void SetWindowPath (IPathS *pPath, BOOL bRedraw DEF_VAL(TRUE)) OVERRIDE
 
IPathSGetWindowPath () SCONST OVERRIDE
 
BOOL SetTimer (char id, UINT uElapse) OVERRIDE
 
BOOL KillTimer (char id) OVERRIDE
 
SWND GetCapture () SCONST OVERRIDE
 
SWND SetCapture () OVERRIDE
 
BOOL ReleaseCapture () OVERRIDE
 
void SetAnimation (IAnimation *animation) OVERRIDE
 
IAnimationGetAnimation () SCONST OVERRIDE
 
void StartAnimation (IAnimation *animation) OVERRIDE
 
void ClearAnimation () OVERRIDE
 
void SetAlpha (BYTE byAlpha) OVERRIDE
 
BYTE GetAlpha () SCONST OVERRIDE
 
void SetMatrix (const IMatrix *mtx) OVERRIDE
 
void GetMatrix (IMatrix *mtx) SCONST OVERRIDE
 
int GetScale () SCONST OVERRIDE
 
BOOL IsSiblingsAutoGroupped () SCONST OVERRIDE
 
void RequestRelayout () OVERRIDE
 
void UpdateLayout () OVERRIDE
 
UINT OnGetDlgCode () SCONST OVERRIDE
 
BOOL IsFocusable () SCONST OVERRIDE
 
BOOL IsClipClient () SCONST OVERRIDE
 
BOOL IsLayoutDirty () SCONST OVERRIDE
 
IWindowGetNextLayoutIChild (const IWindow *pCurChild) SCONST OVERRIDE
 
void UpdateChildrenPosition () OVERRIDE
 
IWindowGetIWindow (int uCode) SCONST OVERRIDE
 
IWindowGetIChild (int iChild) SCONST OVERRIDE
 
IWindowGetIParent () SCONST OVERRIDE
 
IWindowGetIRoot () SCONST OVERRIDE
 
BOOL IsDescendant (const IWindow *pWnd) SCONST OVERRIDE
 
BOOL AdjustIZOrder (IWindow *pInsertAfter) OVERRIDE
 
void InsertIChild (IWindow *pNewChild, IWindow *pInsertAfter=NULL) OVERRIDE
 
BOOL RemoveIChild (IWindow *pChild) OVERRIDE
 
BOOL DestroyIChild (IWindow *pChild) OVERRIDE
 
void DestroyAllChildren () OVERRIDE
 
IWindowFindIChildByID (int nId) OVERRIDE
 
IWindowFindIChildByName (LPCWSTR pszName) OVERRIDE
 
IWindowFindIChildByNameA (LPCSTR pszName) OVERRIDE
 
ISwndContainerGetContainer () OVERRIDE
 
void SetContainer (ISwndContainer *pContainer) OVERRIDE
 
void GetChildrenLayoutRect (RECT *prc) SCONST OVERRIDE
 
void GetDesiredSize (SIZE *psz, int nParentWid, int nParentHei) OVERRIDE
 
void Move2 (int x, int y, int cx DEF_VAL(-1), int cy DEF_VAL(-1)) OVERRIDE
 
int GetWindowText (TCHAR *pBuf, int nBufLen, BOOL bRawText) OVERRIDE
 Retrieves the window text.
 
int GetWindowTextU8 (IStringA *pStr, BOOL bRawText) OVERRIDE
 Retrieves the window text as a UTF-8 string.
 
void SetEventMute (BOOL bMute) OVERRIDE
 Sets the event mute state.
 
DWORD GetState () SCONST OVERRIDE
 Retrieves the current state of the window.
 
DWORD ModifyState (DWORD dwStateAdd, DWORD dwStateRemove, BOOL bUpdate DEF_VAL(FALSE)) OVERRIDE
 Modifies the state of the window.
 
void SetIOwner (IWindow *pOwner) OVERRIDE
 Sets the owner window.
 
IWindowGetIOwner () SCONST OVERRIDE
 Retrieves the owner window.
 
BOOL CreateChildrenFromXml (LPCWSTR pszXml) OVERRIDE
 Creates child windows from XML.
 
BOOL CreateChildrenFromResId (LPCTSTR pszResId) OVERRIDE
 Creates child windows from a resource ID.
 
BOOL InitFromXml (IXmlNode *pNode) OVERRIDE
 Initializes the window from an XML node.
 
BOOL GetAttribute (LPCWSTR pszName, IStringW *strValue) SCONST OVERRIDE
 Retrieves an attribute value from the window.
 
COLORREF GetBkgndColor () SCONST OVERRIDE
 Retrieves the background color of the window.
 
IWindowGetISelectedSiblingInGroup () OVERRIDE
 Retrieves the selected sibling window in a group.
 
IWindowGetISelectedChildInGroup () OVERRIDE
 Retrieves the selected child window in a group.
 
SWND SwndFromPoint (POINT *pt, BOOL bIncludeMsgTransparent DEF_VAL(FALSE)) SCONST OVERRIDE
 Retrieves the window handle at a specified point.
 
BOOL FireEvent (IEvtArgs *evt) OVERRIDE
 Fires an event.
 
BOOL FireCommand () OVERRIDE
 Fires a command event.
 
BOOL FireCtxMenu (POINT pt) OVERRIDE
 Fires a context menu event.
 
BOOL SubscribeEvent (DWORD evtId, const IEvtSlot *pSlot) OVERRIDE
 Subscribes to an event.
 
BOOL UnsubscribeEvent (DWORD evtId, const IEvtSlot *pSlot) OVERRIDE
 Unsubscribes from an event.
 
HRESULT QueryInterface (REFGUID id, IObjRef **ppRet) OVERRIDE
 Queries an interface.
 
BOOL AddEvent (DWORD dwEventID, LPCWSTR pszEventHandlerName) OVERRIDE
 Adds an event handler.
 
BOOL RemoveEvent (DWORD dwEventID) OVERRIDE
 Removes an event handler.
 
BOOL SwndProc (UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *lResult) OVERRIDE
 Processes a window message.
 
void SetSwndProc (FunSwndProc swndProc) OVERRIDE
 Sets the window procedure.
 
HWND GetHostHwnd () OVERRIDE
 Retrieves the host window handle.
 
ITimelineHandlersMgrGetTimelineHandlersMgr () OVERRIDE
 Retrieves the timeline handlers manager.
 
BOOL RegisterDragDrop (IDropTarget *pDragTarget) OVERRIDE
 Registers a drop target for the window.
 
BOOL UnregisterDragDrop () OVERRIDE
 Unregisters a drop target for the window.
 
BOOL CreateCaret (HBITMAP pBmp, int nWid, int nHeight) OVERRIDE
 Creates a caret.
 
void ShowCaret (BOOL bShow) OVERRIDE
 Shows or hides the caret.
 
void SetCaretPos (int x, int y) OVERRIDE
 Sets the caret position.
 
IAccProxy * GetAccProxy ()
 Retrieves the accessibility proxy for the window.
 
void accNotifyEvent (DWORD dwEvt)
 Notifies an accessibility event.
 
PSWNDMSG GetCurMsg (void) const
 Retrieves the current message being processed.
 
const ISwndContainerGetContainer () const
 Retrieves the container associated with this window.
 
SWindowGetWindow (int uCode) const
 Retrieves a window based on a given code.
 
SWindowGetChild (int iChild) const
 Retrieves a child window by index.
 
SWindowGetParent () const
 Retrieves the parent window.
 
SWindowGetRoot () const
 Retrieves the root window in the hierarchy.
 
SWindowGetNextLayoutChild (const SWindow *pCurChild) const
 Retrieves the next layout child after a specified child.
 
BOOL AdjustZOrder (SWindow *pInsertAfter)
 Adjusts the Z-order of the window.
 
void InsertChild (SWindow *pNewChild, SWindow *pInsertAfter=NULL)
 Inserts a child window into the window tree.
 
BOOL RemoveChild (SWindow *pChild)
 Removes a child window from the window tree.
 
BOOL DestroyChild (SWindow *pChild)
 Destroys a child window.
 
void SetMatrix (const SMatrix &mtx)
 Sets the transformation matrix for the window.
 
virtual SStringT GetWindowText (BOOL bRawText=FALSE)
 Retrieves the text of the window.
 
virtual SStringT GetToolTipText ()
 Retrieves the tooltip text of the window.
 
SEventSetGetEventSet ()
 Retrieves the event set associated with the window.
 
const SwndStyleGetStyle () const
 Retrieves the style of the window.
 
SwndStyleGetStyle ()
 
void SetOwner (SWindow *pOwner)
 Sets the owner of the window.
 
SWindowGetOwner () const
 Retrieves the current owner of the window.
 
UINT GetTextAlign () const
 Retrieves the text alignment of the window.
 
CRect GetWindowRect () const
 Retrieves the bounding rectangle of the window.
 
SWindowFindChildByID (int nID, int nDeep=-1)
 Finds a child window by its ID.
 
template<class T>
T * GetLayoutParamT ()
 Template method to cast layout parameters to a specific type.
 
template<class T>
T * FindChildByID2 (int nID, int nDeep=-1)
 Finds a child window by its ID and casts it to a specific type.
 
SWindowFindChildByName (LPCWSTR strName, int nDeep=-1)
 Finds a child window by its name.
 
SWindowFindChildByName (LPCSTR strName, int nDeep=-1)
 Overloaded method to find a child window by its name (ANSI version).
 
template<class T>
T * FindChildByName2 (LPCWSTR pszName, int nDeep=-1)
 Finds a child window by its name and casts it to a specific type.
 
template<class T>
T * FindChildByName2 (LPCSTR pszName, int nDeep=-1)
 Overloaded method to find a child window by its name and cast it to a specific type (ANSI version).
 
template<class T>
T * FindChildByClass (int nDeep=-1) const
 Recursively finds a child window by its class type.
 
virtual SIZE MeasureContent (int nParentWid, int nParentHei)
 
virtual SIZE MeasureChildren (int nParentWid, int nParentHei)
 
virtual SWindowGetSelectedSiblingInGroup ()
 Get selected sibling in group.
 
virtual SWindowGetSelectedChildInGroup ()
 Get selected child in group.
 
virtual SWindowCreateChildByName (LPCWSTR pszName)
 
virtual void RequestRelayout (SWND hSource, BOOL bSourceResizable)
 Request layout update.
 
virtual SStringW tr (const SStringW &strSrc) const
 
virtual SWND SwndFromPoint (CPoint &pt, BOOL bIncludeMsgTransparent=false) const
 
virtual void OnUpdateFloatPosition (const CRect &rcParent)
 Update floating window position.
 
virtual BOOL NeedRedrawWhenStateChange ()
 Determine if redraw is needed on state change.
 
virtual void GetTextRect (LPRECT pRect)
 Calculate text display rectangle.
 
virtual void DrawText (IRenderTarget *pRT, LPCTSTR pszBuf, int cchText, LPRECT pRect, UINT uFormat)
 Draw text content.
 
virtual void DrawFocus (IRenderTarget *pRT)
 Draw focus state.
 
virtual void BeforePaint (IRenderTarget *pRT, SPainter &painter)
 Prepare rendering environment.
 
virtual void AfterPaint (IRenderTarget *pRT, SPainter &painter)
 Restore rendering environment.
 
virtual LPCWSTR GetTrCtx () const
 Get translation context.
 
void RedrawRegion (IRenderTarget *pRT, IRegionS *pRgn)
 Renders the content of the window and its child windows onto the RenderTarget.
 
IRenderTargetGetRenderTarget (LPCRECT pRc=NULL, GrtFlag gdcFlags=GRT_NODRAW, BOOL bClientRT=TRUE)
 Retrieves a memory DC compatible with the SWND window.
 
IRenderTargetGetRenderTarget (GrtFlag gdcFlags, IRegionS *pRgn)
 Retrieves a memory DC compatible with the SWND window.
 
void ReleaseRenderTarget (IRenderTarget *pRT)
 Releases the RenderTarget obtained via GetRenderTarget.
 
void PaintBackground (IRenderTarget *pRT, LPRECT pRc)
 Draws the background content of the window.
 
void PaintForeground (IRenderTarget *pRT, LPRECT pRc, SWindow *pStartFrom=NULL)
 Draws the foreground content of the window.
 
void BeforePaintEx (IRenderTarget *pRT)
 Prepares the drawing environment for the current window's RenderTarget, starting from the top-level window.
 
void TransformPoint (CPoint &pt) const
 Transforms a point based on the current window's transformation matrix.
 
void TransformPointEx (CPoint &pt) const
 Extends the transformation of a point.
 
BOOL FireEvent (SEvtArgs &evt)
 Fires an event.
 
- Public Member Functions inherited from TObjRefImpl< SObjectImpl< IWindow > >
long AddRef () override
 
long Release () override
 释放引用
 
void OnFinalRelease () override
 释放对象
 
- Public Member Functions inherited from SObjectImpl< IWindow >
 SObjectImpl ()
 Constructor.
 
BOOL InitFromXml (IXmlNode *pXmlNode) OVERRIDE
 Initializes the object from an XML node.
 
LPCWSTR GetName () SCONST OVERRIDE
 Retrieves the object's name.
 
LPCSTR GetNameA () SCONST OVERRIDE
 Retrieves the object's name in ANSI format.
 
void SetName (LPCWSTR pszName) OVERRIDE
 Sets the object's name.
 
int GetID () SCONST OVERRIDE
 Retrieves the object's ID.
 
void SetID (int nID) OVERRIDE
 Sets the object's ID.
 
HRESULT AfterAttribute (LPCWSTR strAttribName, LPCWSTR strValue, BOOL bLoading, HRESULT hr) OVERRIDE
 Handles attribute processing after setting an attribute.
 
HRESULT SetAttributeA (LPCSTR pszAttr, LPCSTR pszValue, BOOL bLoading) OVERRIDE
 Sets an attribute using ANSI strings.
 
HRESULT SetAttribute (LPCWSTR pszAttr, LPCWSTR pszValue, BOOL bLoading) OVERRIDE
 Sets an attribute using wide strings.
 
virtual HRESULT SetAttribute (const SStringW &strAttr, const SStringW &strValue, BOOL bLoading)
 Sets an attribute using wide strings.
 
HRESULT ISetAttribute (const IStringW *strAttr, const IStringW *strValue, BOOL bLoading) OVERRIDE
 Sets an attribute using IStringW objects.
 
LPCWSTR GetObjectClass () SCONST OVERRIDE
 Retrieves the object's class name.
 
int GetObjectType () SCONST OVERRIDE
 Retrieves the object's type.
 
BOOL IsClass (LPCWSTR lpszName) SCONST OVERRIDE
 Checks if the object is of a specific class.
 
BOOL GetAttribute (LPCWSTR strAttr, IStringW *pValue) SCONST OVERRIDE
 Retrieves an attribute value.
 
void OnInitFinished (IXmlNode *xmlNode) OVERRIDE
 Handles initialization completion.
 
void SetAttrHandler (FunAttrHandler attrHandler) OVERRIDE
 Sets the attribute handler.
 
- Public Member Functions inherited from IWindow
 DEF_OBJ_BASE (IWindow, Window) long AddRef() PURE
 添加引用
 
long Release () PURE
 释放引用
 
void OnFinalRelease () PURE
 释放对象
 
BOOL IsClass (LPCWSTR lpszName) SCONST PURE
 判断this是不是属于指定的类型
 
LPCWSTR GetObjectClass () SCONST PURE
 获得类型名
 
int GetObjectType () SCONST PURE
 获得对象类型
 
int GetID () SCONST PURE
 获取对象ID
 
void SetID (int nID) PURE
 设置对象ID
 
LPCWSTR GetName () SCONST PURE
 获取对象Name
 
LPCSTR GetNameA () SCONST PURE
 
void SetName (LPCWSTR pszName) PURE
 设置对象Name
 
BOOL InitFromXml (IXmlNode *xmlNode) PURE
 从XML结节初始化SObject对象
 
void OnInitFinished (IXmlNode *xmlNode) PURE
 属性初始化完成处理接口
 
HRESULT ISetAttribute (const IStringW *strAttribName, const IStringW *strValue, BOOL bLoading) PURE
 设置一个对象属性
 
HRESULT SetAttributeA (LPCSTR pszAttr, LPCSTR pszValue, BOOL bLoading DEF_VAL(FALSE)) PURE
 设置一个对象属性
 
HRESULT SetAttribute (LPCWSTR pszAttr, LPCWSTR pszValue, BOOL bLoading DEF_VAL(FALSE)) PURE
 设置一个对象属性
 
BOOL GetAttribute (LPCWSTR strAttr, IStringW *pValue) SCONST PURE
 通过属性名查询属性值
 
HRESULT AfterAttribute (LPCWSTR pszAttr, LPCWSTR pszValue, BOOL bLoading, HRESULT hr) PURE
 属性处理后调用的方法
 
void SetAttrHandler (FunAttrHandler attrHandler) PURE
 设置属性处理回调方法
 
HRESULT QueryInterface (REFGUID id, IObjRef **ppRet) PURE
 查询控件接口
 
ISwndContainerGetContainer () PURE
 获取控件容器接口
 
void SetContainer (ISwndContainer *pContainer) PURE
 设置控件容器接口
 
SWND GetSwnd () SCONST PURE
 获取SOUI容器句柄
 
ILayoutGetLayout () PURE
 获取布局对象
 
ILayoutParamGetLayoutParam () SCONST PURE
 获取布局参数对象
 
BOOL SetLayoutParam (ILayoutParam *pLayoutParam) PURE
 设置布局参数对象
 
BOOL IsFloat () SCONST PURE
 获取当前窗口参与自动布局标志
 
BOOL IsDisplay () SCONST PURE
 获取隐藏占位标志
 
BOOL IsMsgTransparent () SCONST PURE
 获取窗口是否处理鼠标消息
 
BOOL IsClipClient () SCONST PURE
 获取窗口是否自动剪裁客户区
 
void SetToolTipText (LPCTSTR pszText) PURE
 设置tooltip
 
void SetToolTipTextU8 (LPCSTR pszText) PURE
 设置tooltip
 
BOOL IsChecked () SCONST PURE
 获取窗口的check状态标志
 
void SetCheck (BOOL bCheck) PURE
 设置窗口check状态
 
BOOL IsDisabled (BOOL bCheckParent) SCONST PURE
 获取窗口的禁用状态
 
void EnableWindow (BOOL bEnable, BOOL bUpdate) PURE
 设置窗口启用状态
 
BOOL IsVisible (BOOL bCheckParent) SCONST PURE
 获取窗口的可见标志
 
void SetVisible (BOOL bVisible, BOOL bUpdate) PURE
 设置窗口可见标志
 
ULONG_PTR GetUserData () SCONST PURE
 获取窗口的用户数据
 
ULONG_PTR SetUserData (ULONG_PTR uData) PURE
 设置窗口用户数据
 
void DoColorize (COLORREF cr) PURE
 执行调色
 
COLORREF GetColorizeColor () SCONST PURE
 获取当前调色的色调
 
LRESULT SSendMessage (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL *pbMsgHandled) PURE
 发送一个消息
 
void SDispatchMessage (UINT uMsg, WPARAM wParam DEF_VAL(0), LPARAM lParam DEF_VAL(0)) PURE
 分发一个消息到当前窗口及它所有子窗口
 
BOOL IsFocusable () SCONST PURE
 获取窗口是否允许设置为焦点
 
BOOL IsFocused () SCONST PURE
 判断是否为焦点窗口
 
void SetFocus () PURE
 将当前窗口设置为焦点窗口
 
void KillFocus () PURE
 取消焦点
 
void Invalidate () PURE
 刷新当前窗口客户区
 
void InvalidateRect (LPCRECT lprect) PURE
 刷新当前窗口指定位置
 
void LockUpdate () PURE
 锁住刷新,中断刷新调用
 
void UnlockUpdate () PURE
 解锁刷新,恢复刷新调用
 
BOOL IsUpdateLocked (BOOL bCheckParent DEF_VAL(FALSE)) SCONST PURE
 获取刷新加锁状态
 
void Update (BOOL bForce DEF_VAL(FALSE)) PURE
 请求立即更新窗口
 
void SetWindowRgn (IRegionS *pRgn, BOOL bRedraw) PURE
 设置窗口显示区域
 
IRegionSGetWindowRgn () SCONST PURE
 获取窗口显示区域
 
void SetWindowPath (IPathS *pPath, BOOL bRedraw) PURE
 设置窗口显示区域
 
IPathSGetWindowPath () SCONST PURE
 获取窗口显示区域
 
void Move2 (int x, int y, int cx DEF_VAL(-1), int cy DEF_VAL(-1)) PURE
 将窗口移动到指定位置
 
void Move (LPCRECT prect) PURE
 将窗口移动到指定位置
 
void GetWindowRect (LPRECT prect) SCONST PURE
 获取窗口的显示位置,包含窗口的非客户区
 
void GetClientRect (LPRECT prect) SCONST PURE
 获取窗口的显示位置,不包含窗口的非客户区
 
void GetVisibleRect (LPRECT prect) SCONST PURE
 获取窗口的经过父窗口剪裁后的显示位置
 
BOOL IsContainPoint (POINT pt, BOOL bClientOnly) SCONST PURE
 检测一个点是不是在窗口范围内
 
SWND SwndFromPoint (POINT *pt, BOOL bIncludeMsgTransparent DEF_VAL(FALSE)) SCONST PURE
 检查pt指向的窗口
 
BOOL SetTimer (char id, UINT uElapse) PURE
 设置容器定时器
 
BOOL KillTimer (char id) PURE
 删除SetTimer创建的定时器
 
SWND GetCapture () SCONST PURE
 获取鼠标捕获
 
SWND SetCapture () PURE
 设置容器为鼠标捕获
 
BOOL ReleaseCapture () PURE
 释放鼠标捕获
 
void SetAnimation (IAnimation *animation) PURE
 设置一个窗口动画
 
void StartAnimation (IAnimation *animation) PURE
 立即启动一个动画对象
 
IAnimationGetAnimation () SCONST PURE
 获取当前正在运行的动画对象
 
void ClearAnimation () PURE
 清除动画
 
void SetAlpha (BYTE byAlpha) PURE
 设置窗口透明度
 
BYTE GetAlpha () SCONST PURE
 获取窗口透明度
 
void SetMatrix (const IMatrix *mtx) PURE
 设置窗口变换矩阵
 
void GetMatrix (IMatrix *mtx) SCONST PURE
 获取窗口变换矩阵
 
int GetScale () SCONST PURE
 获取dpi放大倍数
 
void RequestRelayout () PURE
 请求重新布局
 
void UpdateLayout () PURE
 重新布局当前窗口的子窗口,只在窗口布局脏了才生效
 
void UpdateChildrenPosition () PURE
 强制重新布局子窗口
 
BOOL IsLayoutDirty () SCONST PURE
 获取布局脏标志
 
UINT OnGetDlgCode () SCONST PURE
 获取窗口响应键盘的标志位
 
IWindowGetIRoot () SCONST PURE
 获取根窗口
 
IWindowGetIParent () SCONST PURE
 获取父窗口
 
IWindowGetIWindow (int uCode) SCONST PURE
 根据uCode获取与当前窗口在dom树上关联的窗口
 
IWindowGetIChild (int iChild) SCONST PURE
 获取子窗口
 
UINT GetChildrenCount () SCONST PURE
 获取子窗口数量
 
BOOL IsDescendant (const IWindow *pTest) SCONST PURE
 判断一个窗口是不是当前窗口的子孙窗口
 
void SetIOwner (IWindow *pOwner) PURE
 设置窗口的Owner
 
IWindowGetIOwner () SCONST PURE
 获取Owner窗口
 
void BringWindowToTop () PURE
 将当前窗口移动到同级兄弟窗口的zorder最顶层
 
BOOL AdjustIZOrder (IWindow *pInsertAfter) PURE
 调整窗口Z序
 
void InsertIChild (IWindow *pNewChild, IWindow *pInsertAfter) PURE
 在窗口树中插入一个子窗口
 
BOOL RemoveIChild (IWindow *pChild) PURE
 从窗口树中移除一个子窗口对象
 
BOOL CreateChildrenFromXml (LPCWSTR pszXml) PURE
 从XML创建子窗口
 
BOOL CreateChildrenFromResId (LPCTSTR pszResId) PURE
 从XML资源创建子窗口
 
IWindowFindIChildByID (int nId) PURE
 根据ID查找子窗口
 
IWindowFindIChildByName (LPCWSTR pszName) PURE
 根据Name查找子窗口
 
IWindowFindIChildByNameA (LPCSTR pszName) PURE
 根据Name查找子窗口
 
BOOL DestroyIChild (IWindow *pChild) PURE
 销毁一个子窗口
 
void DestroyAllChildren () PURE
 销毁所有子窗口
 
BOOL Destroy () PURE
 销毁窗口
 
IWindowGetNextLayoutIChild (const IWindow *pCurChild) SCONST PURE
 获取指定窗口的下一个参与布局的窗口对象
 
void GetChildrenLayoutRect (RECT *prc) SCONST PURE
 获得子窗口的布局空间
 
void GetDesiredSize (SIZE *pSize, int nParentWid, int nParentHei) PURE
 当没有指定窗口大小时,通过如皮肤计算窗口的期望大小
 
COLORREF GetBkgndColor () SCONST PURE
 获取窗口背景色
 
void SetWindowText (LPCTSTR lpszText) PURE
 设计窗口显示文本
 
void SetWindowTextU8 (LPCSTR lpszText) PURE
 设计窗口显示文本
 
int GetWindowText (TCHAR *pBuf, int nBufLen, BOOL bRawText) PURE
 获取窗口显示文本
 
int GetWindowTextU8 (IStringA *pStr, BOOL bRawText) PURE
 
DWORD GetState () SCONST PURE
 获取窗口状态
 
DWORD ModifyState (DWORD dwStateAdd, DWORD dwStateRemove, BOOL bUpdate DEF_VAL(FALSE)) PURE
 修改窗口状态
 
IWindowGetISelectedSiblingInGroup () PURE
 获得在一个group中选中状态的窗口
 
IWindowGetISelectedChildInGroup () PURE
 获取有选择状态的子窗口
 
BOOL IsSiblingsAutoGroupped () SCONST PURE
 同类型兄弟窗口自动成组标志
 
BOOL CreateCaret (HBITMAP pBmp, int nWid, int nHeight) PURE
 创建光标
 
void ShowCaret (BOOL bShow) PURE
 控制光标显示/隐藏
 
void SetCaretPos (int x, int y) PURE
 设置光标显示位置
 
void SetEventMute (BOOL bMute) PURE
 设置当前控件是否允许发出事件
 
BOOL SubscribeEvent (DWORD evtId, const IEvtSlot *pSlot) PURE
 订阅窗口事件
 
BOOL UnsubscribeEvent (DWORD evtId, const IEvtSlot *pSlot) PURE
 取消窗口事件订阅
 
BOOL AddEvent (DWORD dwEventID, LPCWSTR pszEventHandlerName) PURE
 增加窗口事件
 
BOOL RemoveEvent (DWORD dwEventID) PURE
 删除窗口事件
 
BOOL FireEvent (IEvtArgs *evt) PURE
 发射一个事件到应用层
 
BOOL FireCommand () PURE
 激活窗口的EVT_CMD事件
 
BOOL FireCtxMenu (POINT pt) PURE
 激活快捷菜单事件
 
BOOL SwndProc (UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *lResult) PURE
 默认的消息处理函数
 
void SetSwndProc (FunSwndProc swndProc) PURE
 设置消息处理函数
 
HWND GetHostHwnd () PURE
 获取Host Hwnd
 
ITimelineHandlersMgrGetTimelineHandlersMgr () PURE
 获取ITimelineHandlersMgr
 
BOOL IsVideoCanvas () SCONST PURE
 查询窗口是否为视频窗口
 
BOOL RegisterDragDrop (IDropTarget *pDragTarget) PURE
 
BOOL UnregisterDragDrop () PURE
 
- Public Member Functions inherited from IObject
long AddRef () PURE
 添加引用
 
long Release () PURE
 释放引用
 
void OnFinalRelease () PURE
 释放对象
 
BOOL IsClass (LPCWSTR lpszName) SCONST PURE
 判断this是不是属于指定的类型
 
LPCWSTR GetObjectClass () SCONST PURE
 获得类型名
 
int GetObjectType () SCONST PURE
 获得对象类型
 
int GetID () SCONST PURE
 获取对象ID
 
void SetID (int nID) PURE
 设置对象ID
 
LPCWSTR GetName () SCONST PURE
 获取对象Name
 
LPCSTR GetNameA () SCONST PURE
 
void SetName (LPCWSTR pszName) PURE
 设置对象Name
 
BOOL InitFromXml (IXmlNode *xmlNode) PURE
 从XML结节初始化SObject对象
 
void OnInitFinished (IXmlNode *xmlNode) PURE
 属性初始化完成处理接口
 
HRESULT ISetAttribute (const IStringW *strAttribName, const IStringW *strValue, BOOL bLoading) PURE
 设置一个对象属性
 
HRESULT SetAttributeA (LPCSTR pszAttr, LPCSTR pszValue, BOOL bLoading DEF_VAL(FALSE)) PURE
 设置一个对象属性
 
HRESULT SetAttribute (LPCWSTR pszAttr, LPCWSTR pszValue, BOOL bLoading DEF_VAL(FALSE)) PURE
 设置一个对象属性
 
BOOL GetAttribute (LPCWSTR strAttr, IStringW *pValue) SCONST PURE
 通过属性名查询属性值
 
HRESULT AfterAttribute (LPCWSTR pszAttr, LPCWSTR pszValue, BOOL bLoading, HRESULT hr) PURE
 属性处理后调用的方法
 
void SetAttrHandler (FunAttrHandler attrHandler) PURE
 设置属性处理回调方法
 

Protected Member Functions

virtual void OnItemSetCapture (SOsrPanel *pItem, BOOL bCapture)
 Handle item capture.
 
virtual BOOL OnItemGetRect (const SOsrPanel *pItem, CRect &rcItem) const
 Get the rectangle of an item.
 
virtual BOOL IsItemRedrawDelay () const
 Check if item redraw is delayed.
 
void onDataSetChanged ()
 Handle data set changed event.
 
void onDataSetInvalidated ()
 Handle data set invalidated event.
 
void onItemDataChanged (int iItem)
 Handle item data changed event.
 
BOOL OnItemClick (IEvtArgs *pEvt)
 Handle item click event.
 
virtual BOOL OnScroll (BOOL bVertical, UINT uCode, int nPos)
 Handle scroll event.
 
virtual int GetScrollLineSize (BOOL bVertical)
 Get the scroll line size.
 
virtual BOOL CreateChildren (SXmlNode xmlNode)
 Create child items from XML configuration.
 
virtual BOOL UpdateToolTip (CPoint pt, SwndToolTipInfo &tipInfo)
 Update tooltip information.
 
virtual UINT WINAPI OnGetDlgCode () const
 Get the dialog code.
 
virtual BOOL OnSetCursor (const CPoint &pt)
 Handle set cursor event.
 
virtual void OnColorize (COLORREF cr)
 Handle colorization event.
 
virtual void OnScaleChanged (int nScale)
 Handle scale change event.
 
virtual HRESULT OnLanguageChanged ()
 Handle language change event.
 
virtual void OnRebuildFont ()
 Handle rebuild font event.
 
void DispatchMessage2Items (UINT uMsg, WPARAM wParam, LPARAM lParam)
 Dispatch messages to items.
 
void UpdateScrollBar ()
 Update the scroll bar.
 
void RedrawItem (SOsrPanel *pItem)
 Redraw a specific item.
 
SItemPanelGetItemPanel (int iItem)
 Get the item panel for a specific item.
 
void UpdateVisibleItems ()
 Update visible items.
 
void UpdateVisibleItem (int iItem)
 Update a specific visible item.
 
void OnPaint (IRenderTarget *pRT)
 Paint the control.
 
void OnSize (UINT nType, CSize size)
 Handle size change event.
 
void OnDestroy ()
 Handle destroy event.
 
LRESULT OnMouseEvent (UINT uMsg, WPARAM wParam, LPARAM lParam)
 Handle mouse event.
 
LRESULT OnKeyEvent (UINT uMsg, WPARAM wParam, LPARAM lParam)
 Handle key event.
 
void OnKeyDown (TCHAR nChar, UINT nRepCnt, UINT nFlags)
 Handle key down event.
 
void OnMouseLeave ()
 Handle mouse leave event.
 
BOOL OnMouseWheel (UINT nFlags, short zDelta, CPoint pt)
 Handle mouse wheel event.
 
void OnKillFocus (SWND wndFocus)
 Handle kill focus event.
 
void OnSetFocus (SWND wndOld)
 Handle set focus event.
 
void OnShowWindow (BOOL bShow, UINT nStatus)
 Handle show window event.
 
 SOUI_MSG_MAP_BEGIN () MSG_WM_PAINT_EX(OnPaint) MSG_WM_SIZE(OnSize) MSG_WM_DESTROY(OnDestroy) MSG_WM_MOUSEWHEEL(OnMouseWheel) MSG_WM_MOUSELEAVE(OnMouseLeave) MSG_WM_KEYDOWN(OnKeyDown) MSG_WM_KILLFOCUS_EX(OnKillFocus) MSG_WM_SETFOCUS_EX(OnSetFocus) MSG_WM_SHOWWINDOW(OnShowWindow) MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST
 
OnMouseEvent MESSAGE_RANGE_HANDLER_EX (WM_KEYFIRST, WM_KEYLAST, OnKeyEvent) MESSAGE_RANGE_HANDLER_EX(WM_IME_STARTCOMPOSITION
 
OnMouseEvent OnKeyEvent MESSAGE_HANDLER_EX (WM_IME_CHAR, OnKeyEvent) MESSAGE_HANDLER_EX(WM_IME_REQUEST
 
OnMouseEvent OnKeyEvent OnKeyEvent SOUI_MSG_MAP_END () SOUI_ATTRS_BEGIN() ATTR_SKIN(L"dividerSkin"
 
OnMouseEvent OnKeyEvent OnKeyEvent TRUE ATTR_LAYOUTSIZE (L"dividerSize", m_nDividerSize, FALSE) ATTR_BOOL(L"wantTab"
 
- Protected Member Functions inherited from SPanel
CRect GetScrollBarRect (BOOL bVert) SCONST OVERRIDE
 Gets the rectangle of a scrollbar.
 
ISkinObjGetScrollBarSkin (BOOL bVert) SCONST OVERRIDE
 Gets the skin for a scrollbar.
 
const SCROLLINFO * GetScrollBarInfo (BOOL bVert) SCONST OVERRIDE
 Gets the scroll information for a scrollbar.
 
int GetScrollBarArrowSize (BOOL bVert) SCONST OVERRIDE
 Gets the arrow size for a scrollbar.
 
void OnScrollUpdatePart (BOOL bVert, int iPart) OVERRIDE
 Updates a part of the scrollbar.
 
void OnScrollUpdateThumbTrack (BOOL bVert, int nPos) OVERRIDE
 Updates the thumb track of the scrollbar.
 
ISwndContainerGetScrollBarContainer () OVERRIDE
 Gets the container for the scrollbar.
 
void OnScrollCommand (BOOL bVert, int iCmd, int nPos) OVERRIDE
 Handles scroll commands.
 
void OnScrollSetTimer (BOOL bVert, char id, UINT uElapse) OVERRIDE
 Sets a timer for the scrollbar.
 
void OnScrollKillTimer (BOOL bVert, char id) OVERRIDE
 Kills a timer for the scrollbar.
 
const IInterpolatorGetScrollInterpolator () SCONST OVERRIDE
 Gets the interpolator for the scrollbar.
 
int GetScrollFadeFrames () SCONST OVERRIDE
 Gets the number of fade frames for the scrollbar.
 
BYTE GetScrollThumbTrackMinAlpha () SCONST OVERRIDE
 Gets the minimum alpha value for the scrollbar thumb track.
 
virtual void OnContainerChanged (ISwndContainer *pOldContainer, ISwndContainer *pNewContainer)
 Handles container change events.
 
int GetSbWidth () const
 Gets the width of the scrollbar.
 
void ScrollUpdate ()
 Updates the scrollbar.
 
HRESULT OnAttrScrollbarSkin (SStringW strValue, BOOL bLoading)
 Handles the scrollbar skin attribute.
 
 SOUI_ATTRS_BEGIN () ATTR_CUSTOM(L"sbSkin"
 
OnAttrScrollbarSkin ATTR_LAYOUTSIZE (L"sbArrowSize", m_nSbArrowSize, FALSE) ATTR_LAYOUTSIZE(L"sbWid"
 
OnAttrScrollbarSkin TRUE ATTR_INT (L"sbEnable", m_wBarEnable, TRUE) ATTR_UINT(L"updateInterval"
 
OnAttrScrollbarSkin TRUE FALSE ATTR_UINT (L"scrollSpeed", m_nScrollSpeed, FALSE) ATTR_LAYOUTSIZE(L"sbLeft"
 
OnAttrScrollbarSkin TRUE FALSE TRUE ATTR_LAYOUTSIZE (L"sbRight", m_nSbRight, TRUE) ATTR_LAYOUTSIZE(L"sbTop"
 
OnAttrScrollbarSkin TRUE FALSE TRUE TRUE ATTR_LAYOUTSIZE (L"sbBottom", m_nSbBottom, TRUE) ATTR_INT(L"sbFadeFrames"
 
OnAttrScrollbarSkin TRUE FALSE TRUE TRUE FALSE ATTR_INT (L"sbTrumbTrackMinAlpha", m_bySbThumbTrackMinAlpha, FALSE) ATTR_INTERPOLATOR(L"sbFadeInterpolator"
 
OnAttrScrollbarSkin TRUE FALSE TRUE TRUE FALSE FALSE ATTR_CHAIN_PTR(m_fadeInterpolator, 0) SOUI_ATTRS_END() protected void OnDestroy ()
 Handles the WM_CREATE message.
 
void OnNcPaint (IRenderTarget *pRT)
 Handles the WM_NCPAINT message.
 
virtual BOOL OnNcHitTest (CPoint pt)
 Handles the WM_NCHITTEST message.
 
void OnNcLButtonDown (UINT nFlags, CPoint point)
 Handles the WM_NCLBUTTONDOWN message.
 
void OnNcLButtonUp (UINT nFlags, CPoint pt)
 Handles the WM_NCLBUTTONUP message.
 
void OnNcMouseMove (UINT nFlags, CPoint point)
 Handles the WM_NCMOUSEMOVE message.
 
void OnNcMouseLeave ()
 Handles the WM_NCMOUSELEAVE message.
 
LRESULT OnNcCalcSize (BOOL bCalcValidRects, LPARAM lParam)
 Handles the WM_NCCALCSIZE message.
 
BOOL OnMouseWheel (UINT nFlags, short zDelta, CPoint pt)
 Handles the WM_MOUSEWHEEL message.
 
void OnTimer (char cTimerID)
 Handles the WM_TIMER message.
 
void OnShowWindow (BOOL bShow, UINT nStatus)
 Handles the WM_SHOWWINDOW message.
 
void OnEnable (BOOL bEnable, UINT uStatus)
 Handles the WM_ENABLE message.
 
void OnVScroll (UINT nSBCode, UINT nPos, HWND hwnd)
 Handles the WM_VSCROLL message.
 
void OnHScroll (UINT nSBCode, UINT nPos, HWND hwnd)
 Handles the WM_HSCROLL message.
 
- Protected Member Functions inherited from SWindow
IScriptModuleGetScriptModule ()
 
void InvalidateRect (const CRect &rect, BOOL bFromThis=TRUE, BOOL bClip=FALSE)
 
STransformation GetTransformation () const
 
BOOL CreateChild (SXmlNode xmlChild)
 
void CreateChilds (SXmlNode xmlNode)
 
void OnAnimationStart (IAnimation *animation)
 
void OnAnimationStop (IAnimation *animation)
 
void OnAnimationRepeat (IAnimation *animation)
 
void OnAnimationPauseChange (IAnimation *animation, BOOL bPaused)
 
virtual void OnAnimationInvalidate (IAnimation *pAni, bool bErase)
 
virtual void OnContentChanged ()
 
virtual void OnStateChanging (DWORD dwOldState, DWORD dwNewState)
 
virtual void OnStateChanged (DWORD dwOldState, DWORD dwNewState)
 
virtual void OnCaptureChanged (BOOL bCaptured)
 
virtual BOOL OnRelayout (const CRect &rcWnd)
 Handle window position changes.
 
bool IsCacheDirty () const
 Checks if the cache is marked as dirty.
 
void MarkCacheDirty (bool bDirty)
 Marks the cache as dirty.
 
virtual bool IsDrawToCache () const
 Checks if the window content is being drawn to the cache.
 
virtual BOOL IsLayeredWindow () const
 Determines if the window requires a render layer.
 
virtual void DispatchPaint (IRenderTarget *pRT, IRegionS *pRgn, UINT iZorderBegin, UINT iZorderEnd)
 Handles paint dispatching for the window.
 
virtual void OnCommitSurface (IRenderTarget *pRtDest, LPCRECT pRcDest, IRenderTarget *pRtSrc, LPCRECT pRcSrc, BYTE alpha)
 Commits surface changes.
 
virtual SWindow_FindChildByID (int nID, int nDeep)
 Finds a child window by ID.
 
virtual SWindow_FindChildByName (const SStringW &strName, int nDeep)
 Finds a child window by name.
 
SWindow_GetCurrentLayeredWindow ()
 Retrieves the host window for the current render layer.
 
bool _ApplyMatrix (IRenderTarget *pRT, SMatrix &oriMtx)
 Applies a transformation matrix to the RenderTarget.
 
SMatrix _GetMatrixEx () const
 Retrieves the extended transformation matrix for the window.
 
bool _WndRectInRgn (const CRect &rc, const IRegionS *rgn) const
 Checks if the window rectangle lies within a specified region.
 
void _PaintClient (IRenderTarget *pRT)
 
void _PaintNonClient (IRenderTarget *pRT)
 
void _RedrawNonClient ()
 
void _PaintRegion (IRenderTarget *pRT, IRegionS *pRgn, UINT iZorderBegin, UINT iZorderEnd)
 
void _PaintChildren (IRenderTarget *pRT, IRegionS *pRgn, UINT iBeginZorder, UINT iEndZorder)
 
void DrawDefFocusRect (IRenderTarget *pRT, CRect rc)
 
void UpdateCacheMode ()
 
void TestMainThread ()
 
void GetScaleSkin (SAutoRefPtr< ISkinObj > &pSkin, int nScale)
 
int OnCreate (LPVOID)
 Handles the creation of the window.
 
void OnSize (UINT nType, CSize size)
 Handles the resizing of the window.
 
void OnDestroy ()
 Handles the destruction of the window.
 
BOOL OnEraseBkgnd (IRenderTarget *pRT)
 Handles the erasing of the background.
 
void OnPaint (IRenderTarget *pRT)
 Handles the painting of the window.
 
void OnNcPaint (IRenderTarget *pRT)
 Handles the painting of the non-client area.
 
void OnShowWindow (BOOL bShow, UINT nStatus)
 Handles showing or hiding the window.
 
void OnEnable (BOOL bEnable, UINT nStatus)
 Handles enabling or disabling the window.
 
void OnLButtonDown (UINT nFlags, CPoint pt)
 Handles the left mouse button down event.
 
void OnLButtonDbClick (UINT nFlags, CPoint point)
 Handles the left mouse button double-click event.
 
void OnLButtonUp (UINT nFlags, CPoint pt)
 Handles the left mouse button up event.
 
void OnRButtonDown (UINT nFlags, CPoint point)
 Handles the right mouse button down event.
 
void OnRButtonUp (UINT nFlags, CPoint point)
 Handles the right mouse button up event.
 
void OnMouseHover (UINT nFlags, CPoint ptPos)
 Handles the mouse hover event.
 
void OnMouseMove (UINT nFlags, CPoint pt)
 Handles the mouse move event.
 
void OnMouseLeave ()
 Handles the mouse leave event.
 
BOOL OnMouseWheel (UINT nFlags, short zDelta, CPoint pt)
 Handles the mouse wheel event.
 
LRESULT OnMouseClick (UINT uMsg, WPARAM wParam, LPARAM lParam)
 Handles general mouse click events.
 
void OnSetFocus (SWND wndOld)
 Handles gaining focus.
 
void OnKillFocus (SWND wndFocus)
 Handles losing focus.
 
LRESULT OnSetScale (UINT uMsg, WPARAM wParam, LPARAM lParam)
 Handles setting the scale of the window.
 
LRESULT OnSetLanguage (UINT uMsg, WPARAM wParam, LPARAM lParam)
 Handles setting the language of the window.
 
LRESULT OnSetColorize (UINT uMsg, WPARAM wParam, LPARAM lParam)
 Handles setting the colorization of the window.
 
LRESULT OnUpdateFont (UINT uMsg, WPARAM wParam, LPARAM lParam)
 Handles updating the font of the window.
 
 SOUI_MSG_MAP_BEGIN () MSG_WM_PAINT_EX(OnPaint) MSG_WM_ERASEBKGND_EX(OnEraseBkgnd) MSG_WM_NCPAINT_EX(OnNcPaint) MSG_WM_CREATE(OnCreate) MSG_WM_SIZE(OnSize) MSG_WM_DESTROY(OnDestroy) MSG_WM_SHOWWINDOW(OnShowWindow) MSG_WM_ENABLE_EX(OnEnable) MESSAGE_RANGE_HANDLER_EX(WM_LBUTTONDOWN
 
OnMouseClick MSG_WM_LBUTTONDOWN (OnLButtonDown) MSG_WM_LBUTTONUP(OnLButtonUp) MSG_WM_LBUTTONDBLCLK(OnLButtonDbClick) MSG_WM_RBUTTONDOWN(OnRButtonDown) MSG_WM_RBUTTONUP(OnRButtonUp) MSG_WM_MOUSEMOVE(OnMouseMove) MSG_WM_MOUSEHOVER(OnMouseHover) MSG_WM_MOUSELEAVE(OnMouseLeave) MSG_WM_MOUSEWHEEL(OnMouseWheel) MSG_WM_SETFOCUS_EX(OnSetFocus) MSG_WM_KILLFOCUS_EX(OnKillFocus) MESSAGE_HANDLER_EX(UM_SETLANGUAGE
 
OnMouseClick OnSetLanguage MESSAGE_HANDLER_EX (UM_SETSCALE, OnSetScale) MESSAGE_HANDLER_EX(UM_SETCOLORIZE
 
OnMouseClick OnSetLanguage OnSetColorize MESSAGE_HANDLER_EX(UM_UPDATEFONT, OnUpdateFont) SOUI_MSG_MAP_END_BASE() protected HRESULT OnAttrEnable (const SStringW &strValue, BOOL bLoading)
 Handles the 'visible' attribute.
 
HRESULT OnAttrDisplay (const SStringW &strValue, BOOL bLoading)
 Handles the 'display' attribute.
 
HRESULT OnAttrCache (const SStringW &strValue, BOOL bLoading)
 Handles the 'cache' attribute.
 
HRESULT OnAttrAlpha (const SStringW &strValue, BOOL bLoading)
 Handles the 'alpha' attribute.
 
HRESULT OnAttrSkin (const SStringW &strValue, BOOL bLoading)
 Handles the 'skin' attribute.
 
HRESULT OnAttrLayout (const SStringW &strValue, BOOL bLoading)
 Handles the 'layout' attribute.
 
HRESULT OnAttrClass (const SStringW &strValue, BOOL bLoading)
 Handles the 'class' attribute.
 
HRESULT OnAttrTrackMouseEvent (const SStringW &strValue, BOOL bLoading)
 Handles the 'trackMouseEvent' attribute.
 
HRESULT OnAttrVideoCanvas (const SStringW &strValue, BOOL bLoading)
 Handles the 'videoCanvas' attribute.
 
HRESULT OnAttrID (const SStringW &strValue, BOOL bLoading)
 Handles the 'id' attribute.
 
HRESULT OnAttrName (const SStringW &strValue, BOOL bLoading)
 Handles the 'name' attribute.
 
HRESULT OnAttrTip (const SStringW &strValue, BOOL bLoading)
 Handles the 'tip' attribute.
 
HRESULT OnAttrText (const SStringW &strValue, BOOL bLoading)
 Handles the 'text' attribute.
 
HRESULT DefAttributeProc (const SStringW &strAttribName, const SStringW &strValue, BOOL bLoading)
 Default attribute processing function.
 
virtual HRESULT AfterAttribute (const SStringW &strAttribName, const SStringW &strValue, BOOL bLoading, HRESULT hr)
 Called after an attribute is processed.
 
 SOUI_ATTRS_BEGIN () ATTR_CUSTOM(L"layout"
 
OnAttrLayout ATTR_CUSTOM (L"class", OnAttrClass) ATTR_CUSTOM(L"id"
 
OnAttrLayout OnAttrID ATTR_CUSTOM (L"name", OnAttrName) ATTR_CUSTOM(L"skin"
 
OnAttrLayout OnAttrID OnAttrSkin ATTR_SKIN (L"ncskin", m_pNcSkin, TRUE) ATTR_INT(L"data"
 
OnAttrLayout OnAttrID OnAttrSkin ATTR_CUSTOM (L"text", OnAttrText) ATTR_STRINGW(L"trCtx"
 
OnAttrLayout OnAttrID OnAttrSkin FALSE ATTR_CUSTOM (L"enable", OnAttrEnable) ATTR_CUSTOM(L"visible"
 
OnAttrLayout OnAttrID OnAttrSkin FALSE OnAttrVisible ATTR_CUSTOM (L"show", OnAttrVisible) ATTR_CUSTOM(L"display"
 
OnAttrLayout OnAttrID OnAttrSkin FALSE OnAttrVisible OnAttrDisplay ATTR_CUSTOM (L"cache", OnAttrCache) ATTR_CUSTOM(L"alpha"
 
OnAttrLayout OnAttrID OnAttrSkin FALSE OnAttrVisible OnAttrDisplay OnAttrAlpha ATTR_BOOL (L"layeredWindow", m_bLayeredWindow, TRUE) ATTR_CUSTOM(L"trackMouseEvent"
 
OnAttrLayout OnAttrID OnAttrSkin FALSE OnAttrVisible OnAttrDisplay OnAttrAlpha OnAttrTrackMouseEvent ATTR_CUSTOM (L"videoCanvas", OnAttrVideoCanvas) ATTR_CUSTOM(L"tip"
 
OnAttrLayout OnAttrID OnAttrSkin FALSE OnAttrVisible OnAttrDisplay OnAttrAlpha OnAttrTrackMouseEvent OnAttrTip ATTR_BOOL (L"msgTransparent", m_bMsgTransparent, FALSE) ATTR_LAYOUTSIZE(L"maxWidth"
 
OnAttrLayout OnAttrID OnAttrSkin FALSE OnAttrVisible OnAttrDisplay OnAttrAlpha OnAttrTrackMouseEvent OnAttrTip FALSE ATTR_BOOL (L"clipClient", m_bClipClient, FALSE) ATTR_BOOL(L"focusable"
 
OnAttrLayout OnAttrID OnAttrSkin FALSE OnAttrVisible OnAttrDisplay OnAttrAlpha OnAttrTrackMouseEvent OnAttrTip FALSE FALSE ATTR_BOOL (L"drawFocusRect", m_bDrawFocusRect, TRUE) ATTR_BOOL(L"hoverAware"
 
OnAttrLayout OnAttrID OnAttrSkin FALSE OnAttrVisible OnAttrDisplay OnAttrAlpha OnAttrTrackMouseEvent OnAttrTip FALSE FALSE FALSE ATTR_BOOL (L"float", m_bFloat, FALSE) ATTR_CHAIN(m_style
 
OnAttrLayout OnAttrID OnAttrSkin FALSE OnAttrVisible OnAttrDisplay OnAttrAlpha OnAttrTrackMouseEvent OnAttrTip FALSE FALSE FALSE HRET_FLAG_STYLE ATTR_CHAIN_PTR (m_pLayout, HRET_FLAG_LAYOUT) ATTR_CHAIN_PTR(m_pLayoutParam
 
virtual void OnBeforeInsertChild (SWindow *pChild)
 Called before a child window is inserted into this window.
 
virtual void OnAfterInsertChild (SWindow *pChild)
 Called after a child window has been inserted into this window.
 
virtual void OnBeforeRemoveChild (SWindow *pChild)
 Called before a child window is removed from this window.
 
virtual void OnAfterRemoveChild (SWindow *pChild)
 Called after a child window has been removed from this window.
 
- Protected Member Functions inherited from IAnimationListener
void OnAnimationStart (IAnimation *animation) PURE
 通知动画开始
 
void OnAnimationStop (IAnimation *animation) PURE
 通知动画结束。对于重复次数设置为INFINITE的动画,不会调用此回调。
 
void OnAnimationRepeat (IAnimation *animation) PURE
 通知动画重复
 
void OnAnimationPauseChange (IAnimation *animation, BOOL bPaused) PURE
 通知动画暂停状态变化
 
- Protected Member Functions inherited from IScrollBarHost
CRect GetScrollBarRect (BOOL bVert) SCONST PURE
 Gets the rectangle of the scrollbar.
 
ISkinObjGetScrollBarSkin (BOOL bVert) SCONST PURE
 Gets the skin for the scrollbar.
 
const SCROLLINFO * GetScrollBarInfo (BOOL bVert) SCONST PURE
 Gets the scroll information for the scrollbar.
 
int GetScrollBarArrowSize (BOOL bVert) SCONST PURE
 Gets the arrow size for the scrollbar.
 
void OnScrollUpdatePart (BOOL bVert, int iPart) PURE
 Updates a part of the scrollbar.
 
void OnScrollUpdateThumbTrack (BOOL bVert, int nPos) PURE
 Updates the thumb track of the scrollbar.
 
ISwndContainerGetScrollBarContainer () PURE
 Gets the container for the scrollbar.
 
BOOL IsScrollBarEnable (BOOL bVertical) SCONST PURE
 Checks if the scrollbar is enabled.
 
void OnScrollCommand (BOOL bVert, int iCmd, int nPos) PURE
 Handles scroll commands.
 
void OnScrollSetTimer (BOOL bVert, char id, UINT uElapse) PURE
 Sets a timer for the scrollbar.
 
void OnScrollKillTimer (BOOL bVert, char id) PURE
 Kills a timer for the scrollbar.
 
const IInterpolatorGetScrollInterpolator () SCONST PURE
 Gets the interpolator for the scrollbar.
 
int GetScrollFadeFrames () SCONST PURE
 Gets the number of fade frames for the scrollbar.
 
BYTE GetScrollThumbTrackMinAlpha () SCONST PURE
 Gets the minimum alpha value for the scrollbar thumb track.
 
- Protected Member Functions inherited from SHostProxy
 SHostProxy (SWindow *pHost)
 
virtual IObjectGetHost ()
 
virtual BOOL OnHostFireEvent (IEvtArgs *e)
 
virtual BOOL IsHostUpdateLocked () const
 
virtual BOOL IsHostVisible () const
 
virtual CRect GetHostRect () const
 
virtual void InvalidateHostRect (LPCRECT pRc, BOOL bClip)
 
virtual ISwndContainerGetHostContainer ()
 
virtual void OnLayoutDirty ()
 

Protected Attributes

 WM_MOUSELAST
 
OnMouseEvent WM_IME_KEYLAST
 
OnMouseEvent OnKeyEvent OnKeyEvent m_pSkinDivider
 
OnMouseEvent OnKeyEvent OnKeyEvent TRUE m_bWantTab
 
OnMouseEvent OnKeyEvent OnKeyEvent TRUE FALSE ATTR_BOOL(L"vertical", m_bVertical, FALSE) SOUI_ATTRS_END() protected SAutoRefPtr< ILvDataSetObserverm_observer
 
SAutoRefPtr< IListViewItemLocatorm_lvItemLocator
 
bool m_bPendingUpdate
 
int m_iPendingUpdateItem
 
int m_iPendingViewItem
 
int m_iFirstVisible
 
SList< ItemInfom_lstItems
 
SOsrPanelm_itemCapture
 
int m_iSelItem
 
SOsrPanelm_pHoverItem
 
BOOL m_bDataSetInvalidated
 
SArray< SList< SItemPanel * > * > m_itemRecycle
 
SXmlDoc m_xmlTemplate
 
SAutoRefPtr< ISkinObjm_pSkinDivider
 
SLayoutSize m_nDividerSize
 
BOOL m_bWantTab
 
BOOL m_bVertical
 
- Protected Attributes inherited from SPanel
SCROLLINFO m_siVer
 
SCROLLINFO m_siHoz
 
SAutoRefPtr< SSkinScrollbarm_pSkinSb
 
CRect m_rcClient
 
SLayoutSize m_nSbLeft
 
SLayoutSize m_nSbRight
 
SLayoutSize m_nSbTop
 
SLayoutSize m_nSbBottom
 
ScrollBarID m_dragSb
 
ScrollBarID m_hitSb
 
UINT m_wBarVisible
 
UINT m_wBarEnable
 
SScrollBarHandler m_sbVert
 
SScrollBarHandler m_sbHorz
 
DWORD m_dwUpdateTime
 
DWORD m_dwUpdateInterval
 
short m_zDelta
 
int m_nScrollSpeed
 
SAutoRefPtr< IInterpolatorm_fadeInterpolator
 
int m_fadeFrames
 
BYTE m_bySbThumbTrackMinAlpha
 
OnAttrScrollbarSkin m_nSbWid
 
OnAttrScrollbarSkin TRUE m_dwUpdateInterval
 
OnAttrScrollbarSkin TRUE FALSE m_nSbLeft
 
OnAttrScrollbarSkin TRUE FALSE TRUE m_nSbTop
 
OnAttrScrollbarSkin TRUE FALSE TRUE TRUE m_fadeFrames
 
OnAttrScrollbarSkin TRUE FALSE TRUE TRUE FALSE m_fadeInterpolator
 
- Protected Attributes inherited from SWindow
 WM_MBUTTONDBLCLK
 
OnAttrLayout OnAttrID OnAttrSkin m_uData
 
OnAttrLayout OnAttrID OnAttrSkin m_strTrCtx
 
OnAttrLayout OnAttrID OnAttrSkin FALSE OnAttrVisible OnAttrDisplay OnAttrAlpha OnAttrTrackMouseEvent OnAttrTip m_nMaxWidth
 
OnAttrLayout OnAttrID OnAttrSkin FALSE OnAttrVisible OnAttrDisplay OnAttrAlpha OnAttrTrackMouseEvent OnAttrTip FALSE m_bFocusable
 
OnAttrLayout OnAttrID OnAttrSkin FALSE OnAttrVisible OnAttrDisplay OnAttrAlpha OnAttrTrackMouseEvent OnAttrTip FALSE FALSE m_bHoverAware
 
SWND m_swnd
 Member variables representing various properties of the window.
 
BOOL m_bFloat
 
ISwndContainerm_pContainer
 
SEventSet m_evtSet
 
SAutoRefPtr< ILayoutm_pLayout
 
SAutoRefPtr< ILayoutParamm_pLayoutParam
 
SWindowm_pOwner
 
SWindowm_pParent
 
SWindowm_pFirstChild
 
SWindowm_pLastChild
 
SWindowm_pNextSibling
 
SWindowm_pPrevSibling
 
UINT m_nChildrenCount
 
SWNDMSGm_pCurMsg
 
SwndStyle m_style
 
STrText m_strText
 
STrText m_strToolTipText
 
SStringW m_strTrCtx
 
UINT m_uZorder
 
int m_nUpdateLockCnt
 
BOOL m_dwState
 
BOOL m_bVisible
 
BOOL m_bDisable
 
BOOL m_bDisplay
 
BOOL m_bClipClient
 
BOOL m_bMsgTransparent
 
BOOL m_bFocusable
 
BOOL m_bDrawFocusRect
 
BOOL m_bCacheDraw
 
BOOL m_bCacheDirty
 
BOOL m_bLayeredWindow
 
BOOL m_isLoading
 
BOOL m_bHoverAware
 
BOOL m_bMsgHandled
 
LayoutDirtyType m_layoutDirty
 
SAutoRefPtr< IRenderTargetm_cachedRT
 
SAutoRefPtr< IRegionSm_clipRgn
 
SAutoRefPtr< IPathSm_clipPath
 
SAutoRefPtr< ISkinObjm_pBgSkin
 
SAutoRefPtr< ISkinObjm_pNcSkin
 
ULONG_PTR m_uData
 
SLayoutSize m_nMaxWidth
 
COLORREF m_crColorize
 
SAutoRefPtr< IAnimationm_animation
 
SAnimationHandler m_animationHandler
 
STransformation m_transform
 
bool m_isAnimating
 
bool m_isDestroying
 
PGETRTDATA m_pGetRTData
 
SAutoRefPtr< IAttrStoragem_attrStorage
 
SAutoRefPtr< ICaretm_caret
 
FunSwndProc m_funSwndProc
 
- Protected Attributes inherited from TObjRefImpl< SObjectImpl< IWindow > >
LONG m_cRef
 
- Protected Attributes inherited from SObjectImpl< IWindow >
SStringW m_strName
 
int m_nID
 
FunAttrHandler m_attrHandler
 
- Protected Attributes inherited from SHostProxy
SWindowm_pHost
 

Additional Inherited Members

- Static Public Member Functions inherited from SWindow
static SStringW GetXmlText (const SXmlNode &xmlNode)
 Gets the XML text from a node.
 
- Static Public Member Functions inherited from SObjectImpl< IWindow >
static int GetClassType ()
 Retrieves the class type.
 
static LPCWSTR GetClassName ()
 Retrieves the class name.
 
static LPCWSTR GetClassAlias ()
 Retrieves the class alias.
 
static void MarkAttributeHandled (SXmlAttr xmlAttr, bool bHandled)
 Marks an attribute as handled.
 
static bool IsAttributeHandled (SXmlAttr xmlAttr)
 Checks if an attribute is handled.
 
- Protected Types inherited from SWindow
enum  LayoutDirtyType { dirty_clean = 0 , dirty_self = 1 , dirty_child = 2 }
 Enumerates the types of layout dirty states. More...
 
typedef struct SWindow::GETRTDATAPGETRTDATA
 
- Protected Types inherited from IScrollBarHost
enum  kSbConst { Timer_Wait = 100 , Timer_Go = 101 , kTime_Wait = 200 , kTime_Go = 100 }
 

Detailed Description

Definition at line 12 of file SListView.h.

Constructor & Destructor Documentation

◆ SListView()

SListView::SListView ( )

Constructor.

Definition at line 40 of file SListView.cpp.

◆ ~SListView()

SListView::~SListView ( )

Destructor.

Definition at line 61 of file SListView.cpp.

Member Function Documentation

◆ CreateChildren()

BOOL SListView::CreateChildren ( SXmlNode xmlNode)
protectedvirtual

Create child items from XML configuration.

Parameters
xmlNodeXML node for the child items
Returns
TRUE if successful, FALSE otherwise

Reimplemented from SWindow.

Definition at line 877 of file SListView.cpp.

◆ DispatchMessage2Items()

void SListView::DispatchMessage2Items ( UINT uMsg,
WPARAM wParam,
LPARAM lParam )
protected

Dispatch messages to items.

Parameters
uMsgMessage identifier
wParamAdditional message-specific information
lParamAdditional message-specific information

Definition at line 1062 of file SListView.cpp.

◆ EnsureVisible()

void SListView::EnsureVisible ( int iItem)

Ensure an item is visible.

Parameters
iItemIndex of the item to ensure visible

Definition at line 787 of file SListView.cpp.

◆ GetAdapter()

ILvAdapter * SListView::GetAdapter ( )

Get the adapter for the list view.

Returns
Pointer to the list view adapter

Definition at line 1110 of file SListView.cpp.

◆ GetDesiredSize()

void SListView::GetDesiredSize ( SIZE * psz,
int nParentWid,
int nParentHei )

Get the desired size of the control.

Parameters
pszOutput size
nParentWidParent container width
nParentHeiParent container height

Definition at line 1134 of file SListView.cpp.

◆ GetItemLocator()

IListViewItemLocator * SListView::GetItemLocator ( )

Get the item locator for the list view.

Returns
Pointer to the item locator

Definition at line 1115 of file SListView.cpp.

◆ GetItemPanel()

SItemPanel * SListView::GetItemPanel ( int iItem)
protected

Get the item panel for a specific item.

Parameters
iItemIndex of the item
Returns
Pointer to the item panel

Definition at line 863 of file SListView.cpp.

◆ GetScrollLineSize()

int SListView::GetScrollLineSize ( BOOL bVertical)
protectedvirtual

Get the scroll line size.

Parameters
bVerticalWhether the scroll is vertical
Returns
Scroll line size

Reimplemented from SPanel.

Definition at line 858 of file SListView.cpp.

◆ GetSel()

int SListView::GetSel ( )

Get the selected item.

Returns
Index of the selected item

Definition at line 1120 of file SListView.cpp.

◆ HitTest() [1/2]

IItemPanel * SListView::HitTest ( const POINT * pt)

Hit test to determine the item under the mouse.

Parameters
ptPointer to the mouse coordinates
Returns
Pointer to the item panel if found, NULL otherwise

◆ HitTest() [2/2]

SItemPanel * SListView::HitTest ( CPoint & pt) const

Hit test to determine the item under the mouse.

Parameters
ptMouse coordinates
Returns
Pointer to the item panel if found, NULL otherwise

Definition at line 616 of file SListView.cpp.

◆ IsItemRedrawDelay()

BOOL SListView::IsItemRedrawDelay ( ) const
protectedvirtual

Check if item redraw is delayed.

Returns
TRUE if redraw is delayed, FALSE otherwise

Implements IItemContainer.

Definition at line 570 of file SListView.cpp.

◆ OnColorize()

void SListView::OnColorize ( COLORREF cr)
protectedvirtual

Handle colorization event.

Parameters
crColor reference

Reimplemented from SPanel.

Definition at line 1040 of file SListView.cpp.

◆ onDataSetChanged()

void SListView::onDataSetChanged ( )
protected

Handle data set changed event.

Definition at line 202 of file SListView.cpp.

◆ onDataSetInvalidated()

void SListView::onDataSetInvalidated ( )
protected

Handle data set invalidated event.

Definition at line 220 of file SListView.cpp.

◆ OnDestroy()

void SListView::OnDestroy ( )
protected

Handle destroy event.

Definition at line 538 of file SListView.cpp.

◆ OnGetDlgCode()

UINT SListView::OnGetDlgCode ( ) const
protectedvirtual

Get the dialog code.

Returns
Dialog code

Definition at line 977 of file SListView.cpp.

◆ OnItemClick()

BOOL SListView::OnItemClick ( IEvtArgs * pEvt)
protected

Handle item click event.

Parameters
pEvtEvent arguments
Returns
TRUE if handled, FALSE otherwise

Definition at line 1028 of file SListView.cpp.

◆ onItemDataChanged()

void SListView::onItemDataChanged ( int iItem)
protected

Handle item data changed event.

Parameters
iItemIndex of the item

Definition at line 226 of file SListView.cpp.

◆ OnItemGetRect()

BOOL SListView::OnItemGetRect ( const SOsrPanel * pItem,
CRect & rcItem ) const
protectedvirtual

Get the rectangle of an item.

Parameters
pItemPointer to the item panel
rcItemOutput rectangle
Returns
TRUE if successful, FALSE otherwise

Implements IItemContainer.

Definition at line 575 of file SListView.cpp.

◆ OnItemSetCapture()

void SListView::OnItemSetCapture ( SOsrPanel * pItem,
BOOL bCapture )
protectedvirtual

Handle item capture.

Parameters
pItemPointer to the item panel
bCaptureCapture flag

Implements IItemContainer.

Definition at line 597 of file SListView.cpp.

◆ OnKeyDown()

void SListView::OnKeyDown ( TCHAR nChar,
UINT nRepCnt,
UINT nFlags )
protected

Handle key down event.

Parameters
nCharKey code
nRepCntRepeat count
nFlagsFlags

Definition at line 712 of file SListView.cpp.

◆ OnKeyEvent()

LRESULT SListView::OnKeyEvent ( UINT uMsg,
WPARAM wParam,
LPARAM lParam )
protected

Handle key event.

Parameters
uMsgMessage identifier
wParamAdditional message-specific information
lParamAdditional message-specific information
Returns
Result of the message processing

Definition at line 686 of file SListView.cpp.

◆ OnKillFocus()

void SListView::OnKillFocus ( SWND wndFocus)
protected

Handle kill focus event.

Parameters
wndFocusNew focus window handle

Definition at line 985 of file SListView.cpp.

◆ OnLanguageChanged()

HRESULT SListView::OnLanguageChanged ( )
protectedvirtual

Handle language change event.

Returns
HRESULT

Definition at line 1055 of file SListView.cpp.

◆ OnMouseEvent()

LRESULT SListView::OnMouseEvent ( UINT uMsg,
WPARAM wParam,
LPARAM lParam )
protected

Handle mouse event.

Parameters
uMsgMessage identifier
wParamAdditional message-specific information
lParamAdditional message-specific information
Returns
Result of the message processing

Definition at line 632 of file SListView.cpp.

◆ OnMouseLeave()

void SListView::OnMouseLeave ( )
protected

Handle mouse leave event.

Definition at line 702 of file SListView.cpp.

◆ OnMouseWheel()

BOOL SListView::OnMouseWheel ( UINT nFlags,
short zDelta,
CPoint pt )
protected

Handle mouse wheel event.

Parameters
nFlagsFlags
zDeltaDelta value
ptMouse coordinates
Returns
TRUE if handled, FALSE otherwise

Definition at line 845 of file SListView.cpp.

◆ OnPaint()

void SListView::OnPaint ( IRenderTarget * pRT)
protected

Paint the control.

Parameters
pRTRendering target handle

Definition at line 247 of file SListView.cpp.

◆ OnRebuildFont()

void SListView::OnRebuildFont ( )
protectedvirtual

Handle rebuild font event.

Reimplemented from SWindow.

Definition at line 1104 of file SListView.cpp.

◆ OnScaleChanged()

void SListView::OnScaleChanged ( int nScale)
protectedvirtual

Handle scale change event.

Parameters
nScaleScale factor

Reimplemented from SPanel.

Definition at line 1046 of file SListView.cpp.

◆ OnScroll()

BOOL SListView::OnScroll ( BOOL bVertical,
UINT uCode,
int nPos )
protectedvirtual

Handle scroll event.

Parameters
bVerticalWhether the scroll is vertical
uCodeScroll type
nPosScroll position
Returns
TRUE if handled, FALSE otherwise

Reimplemented from SPanel.

Definition at line 324 of file SListView.cpp.

◆ OnSetCursor()

BOOL SListView::OnSetCursor ( const CPoint & pt)
protectedvirtual

Handle set cursor event.

Parameters
ptMouse coordinates
Returns
TRUE if handled, FALSE otherwise

Reimplemented from SWindow.

Definition at line 1008 of file SListView.cpp.

◆ OnSetFocus()

void SListView::OnSetFocus ( SWND wndOld)
protected

Handle set focus event.

Parameters
wndOldPrevious focus window handle

Definition at line 997 of file SListView.cpp.

◆ OnShowWindow()

void SListView::OnShowWindow ( BOOL bShow,
UINT nStatus )
protected

Handle show window event.

Parameters
bShowShow flag
nStatusStatus code

Definition at line 1082 of file SListView.cpp.

◆ OnSize()

void SListView::OnSize ( UINT nType,
CSize size )
protected

Handle size change event.

Parameters
nTypeSize change type
sizeNew size

Definition at line 514 of file SListView.cpp.

◆ RedrawItem()

void SListView::RedrawItem ( SOsrPanel * pItem)
protected

Redraw a specific item.

Parameters
pItemPointer to the item panel

Definition at line 611 of file SListView.cpp.

◆ SetAdapter()

BOOL SListView::SetAdapter ( ILvAdapter * adapter)

Set the adapter for the list view.

Parameters
adapterPointer to the list view adapter
Returns
TRUE if successful, FALSE otherwise

Definition at line 67 of file SListView.cpp.

◆ SetItemLocator()

void SListView::SetItemLocator ( IListViewItemLocator * pItemLocator)

Set the item locator for the list view.

Parameters
pItemLocatorPointer to the item locator

Definition at line 902 of file SListView.cpp.

◆ SetSel()

void SListView::SetSel ( int iItem,
BOOL bNotify = FALSE )

Set the selected item.

Parameters
iItemIndex of the item to select
bNotifyWhether to notify of the change

Definition at line 920 of file SListView.cpp.

◆ UpdateScrollBar()

void SListView::UpdateScrollBar ( )
protected

Update the scroll bar.

Definition at line 134 of file SListView.cpp.

◆ UpdateToolTip()

BOOL SListView::UpdateToolTip ( CPoint pt,
SwndToolTipInfo & tipInfo )
protectedvirtual

Update tooltip information.

Parameters
ptMouse coordinates
tipInfoTooltip information
Returns
TRUE if handled, FALSE otherwise

Reimplemented from SWindow.

Definition at line 913 of file SListView.cpp.

◆ UpdateVisibleItem()

void SListView::UpdateVisibleItem ( int iItem)
protected

Update a specific visible item.

Parameters
iItemIndex of the item

Definition at line 503 of file SListView.cpp.

◆ UpdateVisibleItems()

void SListView::UpdateVisibleItems ( )
protected

Update visible items.

Definition at line 343 of file SListView.cpp.

Member Data Documentation

◆ m_bDataSetInvalidated

BOOL SListView::m_bDataSetInvalidated
protected

Flag indicating data set is invalidated

Definition at line 372 of file SListView.h.

◆ m_bPendingUpdate

bool SListView::m_bPendingUpdate
protected

Flag indicating pending update

Definition at line 362 of file SListView.h.

◆ m_bVertical

BOOL SListView::m_bVertical
protected

Flag indicating vertical orientation

Definition at line 380 of file SListView.h.

◆ m_bWantTab [1/2]

OnMouseEvent OnKeyEvent OnKeyEvent TRUE SListView::m_bWantTab
protected

Definition at line 347 of file SListView.h.

◆ m_bWantTab [2/2]

BOOL SListView::m_bWantTab
protected

Flag indicating whether to want tab

Definition at line 379 of file SListView.h.

◆ m_iFirstVisible

int SListView::m_iFirstVisible
protected

Index of the first visible item

Definition at line 366 of file SListView.h.

◆ m_iPendingUpdateItem

int SListView::m_iPendingUpdateItem
protected

Index of the item to update, -1 for all, -2 for nothing

Definition at line 363 of file SListView.h.

◆ m_iPendingViewItem

int SListView::m_iPendingViewItem
protected

Index of the item to view, -1 for init

Definition at line 364 of file SListView.h.

◆ m_iSelItem

int SListView::m_iSelItem
protected

Index of the selected item

Definition at line 370 of file SListView.h.

◆ m_itemCapture

SOsrPanel* SListView::m_itemCapture
protected

Item panel that has been set capture

Definition at line 368 of file SListView.h.

◆ m_itemRecycle

SArray<SList<SItemPanel *> *> SListView::m_itemRecycle
protected

Recycle bin for item panels

Definition at line 374 of file SListView.h.

◆ m_lstItems

SList<ItemInfo> SListView::m_lstItems
protected

List of currently visible items

Definition at line 367 of file SListView.h.

◆ m_lvItemLocator

SAutoRefPtr<IListViewItemLocator> SListView::m_lvItemLocator
protected

Pointer to the item locator

Definition at line 354 of file SListView.h.

◆ m_nDividerSize

SLayoutSize SListView::m_nDividerSize
protected

Size of dividers

Definition at line 378 of file SListView.h.

◆ m_observer

OnMouseEvent OnKeyEvent OnKeyEvent TRUE FALSE ATTR_BOOL (L"vertical", m_bVertical, FALSE) SOUI_ATTRS_END() protected SAutoRefPtr<ILvDataSetObserver> SListView::m_observer
protected

< Pointer to the list view adapter Pointer to the data set observer

Definition at line 353 of file SListView.h.

◆ m_pHoverItem

SOsrPanel* SListView::m_pHoverItem
protected

Item panel under the mouse

Definition at line 371 of file SListView.h.

◆ m_pSkinDivider [1/2]

OnMouseEvent OnKeyEvent OnKeyEvent SListView::m_pSkinDivider
protected

Definition at line 345 of file SListView.h.

◆ m_pSkinDivider [2/2]

SAutoRefPtr<ISkinObj> SListView::m_pSkinDivider
protected

Skin for dividers

Definition at line 377 of file SListView.h.

◆ m_xmlTemplate

SXmlDoc SListView::m_xmlTemplate
protected

XML template for items

Definition at line 376 of file SListView.h.

◆ WM_IME_KEYLAST

OnMouseEvent SListView::WM_IME_KEYLAST
protected

Definition at line 339 of file SListView.h.

◆ WM_MOUSELAST

SListView::WM_MOUSELAST
protected

Definition at line 337 of file SListView.h.


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