soui 5.0.0.1
 
Loading...
Searching...
No Matches
SOsrPanel Class Reference
Inheritance diagram for SOsrPanel:
TWindowProxy< IOsrPanel > SwndContainerImpl IOsrPanel SWindow ISwndContainer ITimelineHandler ICtrl TObjRefImpl< SObjectImpl< IWindow > > IAnimationListener ITimelineHandlersMgr IObjRef SObjectImpl< IWindow > IWindow IObject IObjRef TOsrPanelProxy< IItemPanel > SNcPanel TOsrPanelProxy< T > SItemPanel

Public Member Functions

void SetItemIndex (LPARAM lp) OVERRIDE
 
LPARAM GetItemIndex () SCONST OVERRIDE
 
void SetItemData (LPARAM dwData) OVERRIDE
 
LPARAM GetItemData () SCONST OVERRIDE
 
void PtToHost (POINT *pt) SCONST OVERRIDE
 
void OnFinalRelease () OVERRIDE
 
BOOL InitFromXml (IXmlNode *pNode) OVERRIDE
 
BOOL OnFireEvent (IEvtArgs *evt) OVERRIDE
 
void GetContainerRect (RECT *ret) const OVERRIDE
 
void UpdateRegion (IRegionS *rgn) OVERRIDE
 
void OnRedraw (LPCRECT rc, BOOL bClip) OVERRIDE
 
BOOL OnReleaseSwndCapture () OVERRIDE
 
SWND OnSetSwndCapture (SWND swnd) OVERRIDE
 
HWND GetHostHwnd () OVERRIDE
 
LPCWSTR GetTranslatorContext () const OVERRIDE
 
void FrameToHost (RECT *rc) const OVERRIDE
 
BOOL IsTranslucent () const OVERRIDE
 
BOOL IsSendWheel2Hover () const OVERRIDE
 
BOOL UpdateWindow (BOOL bForce) OVERRIDE
 
void UpdateTooltip () OVERRIDE
 
void SetToolTip (LPCRECT rc, UINT tipAlign, LPCTSTR pszTip) OVERRIDE
 
IMessageLoopGetMsgLoop () OVERRIDE
 
IScriptModuleGetScriptModule () OVERRIDE
 
int GetScale () const OVERRIDE
 
void EnableIME (BOOL bEnable) OVERRIDE
 
void OnUpdateCursor () OVERRIDE
 
void EnableHostPrivateUiDef (BOOL bEnable) OVERRIDE
 
BOOL PostTask (IRunnable *runable, BOOL bAsync DEF_VAL(TRUE)) OVERRIDE
 
int RemoveTasksForObject (void *pObj) OVERRIDE
 
virtual LRESULT DoFrameEvent (UINT uMsg, WPARAM wParam, LPARAM lParam)
 Processes frame events.
 
virtual void ModifyItemState (DWORD dwStateAdd, DWORD dwStateRemove)
 
virtual SWND SwndFromPoint (CPoint &pt, bool bIncludeMsgTransparent=false)
 
virtual void Draw (IRenderTarget *pRT, const CRect &rc)
 
virtual void BeforePaint (IRenderTarget *pRT, SPainter &painter)
 Prepare rendering environment.
 
virtual BOOL NeedRedrawWhenStateChange ()
 Determine if redraw is needed on state change.
 
virtual BOOL UpdateToolTip (CPoint pt, SwndToolTipInfo &tipInfo)
 Handle tooltip updates.
 
virtual void RequestRelayout (SWND hSource, BOOL bSourceResizable)
 Request layout update.
 
CRect GetItemRect () const
 
void SetItemCapture (BOOL bCapture)
 
- Public Member Functions inherited from TWindowProxy< IOsrPanel >
long AddRef () OVERRIDE
 
long Release () OVERRIDE
 
void OnFinalRelease () OVERRIDE
 
IWindowToIWindow () OVERRIDE
 
HRESULT QueryInterface (REFGUID id, IObjRef **ppRet) OVERRIDE
 
- Public Member Functions inherited from IOsrPanel
 DECLARE_CLASS_SIID (IID_IOsrPanel) long AddRef() PURE
 增加引用计数
 
long Release () PURE
 减少引用计数
 
void OnFinalRelease () PURE
 释放对象
 
IWindowToIWindow () PURE
 转换为IWindow*接口
 
void SetItemIndex (LPARAM index) PURE
 设置在列表中对应的索引
 
LPARAM GetItemIndex () SCONST PURE
 获取在列表中的索引
 
void SetItemData (LPARAM dwData) PURE
 设置列表项的用户数据
 
LPARAM GetItemData () SCONST PURE
 获取在列表中的用户数据
 
void PtToHost (POINT *pt) SCONST PURE
 将panel的坐标转换为host坐标
 
- 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 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.
 
virtual CRect GetClientRect () const
 Retrieves the client 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 BOOL CreateChildren (SXmlNode xmlNode)
 Create child windows from XML node.
 
virtual SWindowCreateChildByName (LPCWSTR pszName)
 
virtual SStringW tr (const SStringW &strSrc) const
 
virtual SWND SwndFromPoint (CPoint &pt, BOOL bIncludeMsgTransparent=false) const
 
virtual BOOL OnNcHitTest (CPoint pt)
 
virtual void OnUpdateFloatPosition (const CRect &rcParent)
 Update floating window position.
 
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 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
 设置属性处理回调方法
 
- Public Member Functions inherited from SwndContainerImpl
 SwndContainerImpl ()
 Constructor.
 
IDropTarget * GetDropTarget ()
 Retrieves the drop target.
 
SFocusManagerGetFocusManager ()
 Retrieves the focus manager.
 
void SetRoot (SWindow *pRoot)
 Sets the root window of the container.
 
void OnNextFrame () OVERRIDE
 Called when the next frame is ready.
 
- Public Member Functions inherited from ISwndContainer
BOOL RegisterTimelineHandler (ITimelineHandler *pHandler) PURE
 注册动画帧处理接口
 
BOOL UnregisterTimelineHandler (ITimelineHandler *pHandler) PURE
 注销动画帧处理接口
 
BOOL RegisterDragDrop (SWND swnd, IDropTarget *pDropTarget) PURE
 向Swnd注册IDropTarget
 
BOOL UnregisterDragDrop (SWND swnd) PURE
 从Swnd注销IDropTarget
 
BOOL OnFireEvent (IEvtArgs *evt) PURE
 响应事件
 
IMessageLoopGetMsgLoop () PURE
 获取当前的Message Loop
 
IScriptModuleGetScriptModule () PURE
 获取脚本模块
 
HWND GetHostHwnd () PURE
 获取宿主窗口HWND
 
BOOL IsTranslucent () SCONST PURE
 获取宿主窗口半透明标志
 
BOOL IsSendWheel2Hover () SCONST PURE
 获取将mouseWheel消息分发到hover窗口的标志
 
int GetScale () SCONST PURE
 获取当前dpi放大倍数
 
LPCWSTR GetTranslatorContext () SCONST PURE
 获取翻译上下文
 
void GetContainerRect (RECT *ret) SCONST PURE
 获取容器显示位置
 
void UpdateRegion (IRegionS *rgn) PURE
 刷新指定区域的内存位图
 
void OnRedraw (LPCRECT rc, BOOL bClip) PURE
 请求重绘
 
SWND OnGetSwndCapture () SCONST PURE
 获取捕获鼠标的Swnd对象
 
SWND OnSetSwndCapture (SWND swnd) PURE
 设置捕获鼠标的Swnd对象
 
BOOL OnReleaseSwndCapture () PURE
 释放捕获鼠标的Swnd
 
SWND GetHover () SCONST PURE
 获取Hover的Swnd
 
SWND GetFocus () SCONST PURE
 获取焦点的Swnd
 
void OnSetSwndFocus (SWND swnd) PURE
 设置窗口焦点
 
BOOL UpdateWindow (BOOL bForce DEF_VAL(TRUE)) PURE
 请求立即更新窗口
 
void UpdateTooltip () PURE
 请求更新tooltip
 
void SetToolTip (LPCRECT rc, UINT tipAlign, LPCTSTR pszTip) PURE
 在指定位置显示tooltip
 
void FrameToHost (RECT *rc) SCONST PURE
 将当前Frame的矩形坐标转换成最终Host的坐标
 
IAcceleratorMgrGetAcceleratorMgr () PURE
 获取加速键管理器
 
BOOL RegisterTrackMouseEvent (SWND swnd) PURE
 将Swnd注册为TrackMouseEvent窗口
 
BOOL UnregisterTrackMouseEvent (SWND swnd) PURE
 将Swnd注销TrackMouseEvent窗口
 
void MarkWndTreeZorderDirty () PURE
 标记窗口树的zorder失效
 
void BuildWndTreeZorder () PURE
 重建窗口树的zorder
 
void EnableIME (BOOL bEnable) PURE
 启用/关闭输入法
 
void OnUpdateCursor () PURE
 更新Cursor
 
BOOL RegisterVideoCanvas (SWND swnd) PURE
 注册VideoCanvas窗口
 
BOOL UnregisterVideoCanvas (SWND swnd) PURE
 注销VideoCanvas窗口
 
void EnableHostPrivateUiDef (BOOL bEnable) PURE
 启用/禁用宿主私有UI定义
 
BOOL PostTask (IRunnable *runable, BOOL bAsync DEF_VAL(TRUE)) PURE
 提交任务
 
int RemoveTasksForObject (void *pObj) PURE
 移除对象的任务
 
- Public Member Functions inherited from ITimelineHandlersMgr
BOOL RegisterTimelineHandler (ITimelineHandler *pHandler) PURE
 注册动画帧处理接口
 
BOOL UnregisterTimelineHandler (ITimelineHandler *pHandler) PURE
 注销动画帧处理接口
 
- Public Member Functions inherited from ITimelineHandler
void OnNextFrame () PURE
 下一个动画帧处理接口
 

Protected Member Functions

void OnShowWindow (BOOL bShow, UINT nStatus)
 
void OnDestroy ()
 
- 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 OnColorize (COLORREF cr)
 Adjust window color tone.
 
virtual BOOL OnSetCursor (const CPoint &pt)
 
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
 
OnAttrLayout OnAttrID OnAttrSkin FALSE OnAttrVisible OnAttrDisplay OnAttrAlpha OnAttrTrackMouseEvent OnAttrTip FALSE FALSE FALSE HRET_FLAG_STYLE HRET_FLAG_LAYOUT_PARAM virtual SOUI_ATTRS_END() protected void OnScaleChanged (int scale)
 Called when the language of the window changes.
 
virtual void OnRebuildFont ()
 Called when the font of the window needs to be rebuilt.
 
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.
 
virtual void OnContainerChanged (ISwndContainer *pOldContainer, ISwndContainer *pNewContainer)
 Called when the container of the window changes.
 
- 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 SwndContainerImpl
BOOL RegisterDragDrop (SWND swnd, IDropTarget *pDropTarget) OVERRIDE
 Registers a drop target for a window.
 
BOOL UnregisterDragDrop (SWND swnd) OVERRIDE
 Unregisters a drop target for a window.
 
BOOL OnReleaseSwndCapture () OVERRIDE
 Releases the window capture.
 
SWND OnSetSwndCapture (SWND swnd) OVERRIDE
 Sets the window capture.
 
void OnSetSwndFocus (SWND swnd) OVERRIDE
 Sets the window focus.
 
void FrameToHost (RECT *rc) SCONST OVERRIDE
 Transforms a rectangle from frame coordinates to host coordinates.
 
SWND OnGetSwndCapture () SCONST OVERRIDE
 Retrieves the window handle that has capture.
 
SWND GetFocus () SCONST OVERRIDE
 Retrieves the window handle that has focus.
 
SWND GetHover () SCONST OVERRIDE
 Retrieves the window handle that is hovered.
 
IAcceleratorMgrGetAcceleratorMgr ()
 Retrieves the accelerator manager.
 
BOOL RegisterTimelineHandler (ITimelineHandler *pHandler) OVERRIDE
 Registers a timeline handler.
 
BOOL UnregisterTimelineHandler (ITimelineHandler *pHandler) OVERRIDE
 Unregisters a timeline handler.
 
BOOL RegisterTrackMouseEvent (SWND swnd) OVERRIDE
 Registers a window for tracking mouse events.
 
BOOL UnregisterTrackMouseEvent (SWND swnd) OVERRIDE
 Unregisters a window for tracking mouse events.
 
void MarkWndTreeZorderDirty () OVERRIDE
 Marks the window tree's z-order as dirty.
 
void BuildWndTreeZorder () OVERRIDE
 Rebuilds the window tree's z-order.
 
BOOL RegisterVideoCanvas (SWND swnd) OVERRIDE
 Registers a window as a video canvas.
 
BOOL UnregisterVideoCanvas (SWND swnd) OVERRIDE
 Unregisters a window as a video canvas.
 
void OnFrameMouseMove (UINT uFlag, CPoint pt)
 Handles mouse move events within the frame.
 
void OnFrameMouseLeave ()
 Handles mouse leave events within the frame.
 
BOOL OnFrameSetCursor (const CPoint &pt)
 Sets the cursor based on the mouse position.
 
void OnFrameMouseEvent (UINT uMsg, WPARAM wParam, LPARAM lParam)
 Handles mouse events within the frame.
 
void OnFrameMouseWheel (UINT uMsg, WPARAM wParam, LPARAM lParam)
 Handles mouse wheel events within the frame.
 
LRESULT OnFrameKeyEvent (UINT uMsg, WPARAM wParam, LPARAM lParam)
 Handles key events within the frame.
 
void OnFrameKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags)
 Handles key down events within the frame.
 
void OnActivate (UINT nState)
 Handles window activation events.
 
void OnActivateApp (BOOL bActive, DWORD dwThreadID)
 Handles application activation events.
 
void _BuildWndTreeZorder (IWindow *pWnd, UINT &iOrder)
 Recursively builds the z-order of the window tree.
 

Protected Attributes

SOUI_MSG_MAP_BEGIN() MSG_WM_DESTROY(OnDestroy) MSG_WM_SHOWWINDOW(OnShowWindow) SOUI_MSG_MAP_END() protected IItemContainerm_pItemContainer
 
LPARAM m_lpItemIndex
 
LPARAM m_dwData
 
- 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 SwndContainerImpl
SWindowm_pRoot
 
SWND m_hCapture
 
SWND m_hHover
 
BOOL m_bNcHover
 
SFocusManager m_focusMgr
 
SDropTargetDispatcher m_dropTarget
 
BOOL m_bZorderDirty
 
SList< SWND > m_lstTrackMouseEvtWnd
 
SList< SWND > m_lstVideoCanvas
 
SAutoRefPtr< ICaretm_caret
 
STimerlineHandlerMgr m_timelineHandlerMgr
 

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
 

Detailed Description

Definition at line 84 of file SItemPanel.h.

Member Function Documentation

◆ BeforePaint()

void SOsrPanel::BeforePaint ( IRenderTarget * pRT,
SPainter & painter )
virtual

Prepare rendering environment.

BeforePaint

Reimplemented from SWindow.

Definition at line 338 of file SItemPanel.cpp.

◆ DoFrameEvent()

LRESULT SOsrPanel::DoFrameEvent ( UINT uMsg,
WPARAM wParam,
LPARAM lParam )
virtual

Processes frame events.

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

Reimplemented from SwndContainerImpl.

Definition at line 50 of file SItemPanel.cpp.

◆ Draw()

void SOsrPanel::Draw ( IRenderTarget * pRT,
const CRect & rc )
virtual

Definition at line 252 of file SItemPanel.cpp.

◆ EnableHostPrivateUiDef()

void SOsrPanel::EnableHostPrivateUiDef ( BOOL bEnable)

Definition at line 381 of file SItemPanel.cpp.

◆ EnableIME()

void SOsrPanel::EnableIME ( BOOL bEnable)

Definition at line 371 of file SItemPanel.cpp.

◆ FrameToHost()

void SOsrPanel::FrameToHost ( RECT * rc) const

Definition at line 331 of file SItemPanel.cpp.

◆ GetContainerRect()

void SOsrPanel::GetContainerRect ( RECT * ret) const

Definition at line 140 of file SItemPanel.cpp.

◆ GetHostHwnd()

HWND SOsrPanel::GetHostHwnd ( )

Definition at line 195 of file SItemPanel.cpp.

◆ GetItemData()

LPARAM SOsrPanel::GetItemData ( )

Definition at line 410 of file SItemPanel.cpp.

◆ GetItemIndex()

LPARAM SOsrPanel::GetItemIndex ( )

Definition at line 395 of file SItemPanel.cpp.

◆ GetItemRect()

CRect SOsrPanel::GetItemRect ( ) const

Definition at line 282 of file SItemPanel.cpp.

◆ GetMsgLoop()

IMessageLoop * SOsrPanel::GetMsgLoop ( )

Definition at line 321 of file SItemPanel.cpp.

◆ GetScale()

int SOsrPanel::GetScale ( ) const

Definition at line 366 of file SItemPanel.cpp.

◆ GetScriptModule()

IScriptModule * SOsrPanel::GetScriptModule ( )

Definition at line 326 of file SItemPanel.cpp.

◆ GetTranslatorContext()

LPCWSTR SOsrPanel::GetTranslatorContext ( ) const

Definition at line 200 of file SItemPanel.cpp.

◆ InitFromXml()

BOOL SOsrPanel::InitFromXml ( IXmlNode * pNode)

Definition at line 40 of file SItemPanel.cpp.

◆ IsSendWheel2Hover()

BOOL SOsrPanel::IsSendWheel2Hover ( ) const

Definition at line 210 of file SItemPanel.cpp.

◆ IsTranslucent()

BOOL SOsrPanel::IsTranslucent ( ) const

Definition at line 205 of file SItemPanel.cpp.

◆ ModifyItemState()

void SOsrPanel::ModifyItemState ( DWORD dwStateAdd,
DWORD dwStateRemove )
virtual

Definition at line 239 of file SItemPanel.cpp.

◆ NeedRedrawWhenStateChange()

BOOL SOsrPanel::NeedRedrawWhenStateChange ( )
virtual

Determine if redraw is needed on state change.

NeedRedrawWhenStateChange

Reimplemented from SWindow.

Definition at line 277 of file SItemPanel.cpp.

◆ OnDestroy()

void SOsrPanel::OnDestroy ( )
protected

Definition at line 360 of file SItemPanel.cpp.

◆ OnFinalRelease()

void SOsrPanel::OnFinalRelease ( )

Definition at line 32 of file SItemPanel.cpp.

◆ OnFireEvent()

BOOL SOsrPanel::OnFireEvent ( IEvtArgs * evt)

Definition at line 135 of file SItemPanel.cpp.

◆ OnRedraw()

void SOsrPanel::OnRedraw ( LPCRECT rc,
BOOL bClip )

Definition at line 154 of file SItemPanel.cpp.

◆ OnReleaseSwndCapture()

BOOL SOsrPanel::OnReleaseSwndCapture ( )

Definition at line 181 of file SItemPanel.cpp.

◆ OnSetSwndCapture()

SWND SOsrPanel::OnSetSwndCapture ( SWND swnd)

Definition at line 189 of file SItemPanel.cpp.

◆ OnShowWindow()

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

Definition at line 351 of file SItemPanel.cpp.

◆ OnUpdateCursor()

void SOsrPanel::OnUpdateCursor ( )

Definition at line 376 of file SItemPanel.cpp.

◆ PostTask()

BOOL SOsrPanel::PostTask ( IRunnable * runable,
BOOL bAsync DEF_VALTRUE )

Definition at line 431 of file SItemPanel.cpp.

◆ PtToHost()

void SOsrPanel::PtToHost ( POINT * pt)

Definition at line 415 of file SItemPanel.cpp.

◆ RemoveTasksForObject()

int SOsrPanel::RemoveTasksForObject ( void * pObj)

Definition at line 436 of file SItemPanel.cpp.

◆ RequestRelayout()

void SOsrPanel::RequestRelayout ( SWND hSource,
BOOL bSourceResizable )
virtual

Request layout update.

RequestRelayout

Reimplemented from SWindow.

Definition at line 422 of file SItemPanel.cpp.

◆ SetItemCapture()

void SOsrPanel::SetItemCapture ( BOOL bCapture)

Definition at line 288 of file SItemPanel.cpp.

◆ SetItemData()

void SOsrPanel::SetItemData ( LPARAM dwData)

Definition at line 405 of file SItemPanel.cpp.

◆ SetItemIndex()

void SOsrPanel::SetItemIndex ( LPARAM lp)

Definition at line 400 of file SItemPanel.cpp.

◆ SetToolTip()

void SOsrPanel::SetToolTip ( LPCRECT rc,
UINT tipAlign,
LPCTSTR pszTip )

Definition at line 224 of file SItemPanel.cpp.

◆ SwndFromPoint()

SWND SOsrPanel::SwndFromPoint ( CPoint & pt,
bool bIncludeMsgTransparent = false )
virtual

Definition at line 244 of file SItemPanel.cpp.

◆ UpdateRegion()

void SOsrPanel::UpdateRegion ( IRegionS * rgn)

Definition at line 147 of file SItemPanel.cpp.

◆ UpdateToolTip()

BOOL SOsrPanel::UpdateToolTip ( CPoint pt,
SwndToolTipInfo & tipInfo )
virtual

Handle tooltip updates.

OnUpdateToolTip

Reimplemented from SWindow.

Definition at line 293 of file SItemPanel.cpp.

◆ UpdateTooltip()

void SOsrPanel::UpdateTooltip ( )

Definition at line 220 of file SItemPanel.cpp.

◆ UpdateWindow()

BOOL SOsrPanel::UpdateWindow ( BOOL bForce)

Definition at line 215 of file SItemPanel.cpp.

Member Data Documentation

◆ m_dwData

LPARAM SOsrPanel::m_dwData
protected

Definition at line 173 of file SItemPanel.h.

◆ m_lpItemIndex

LPARAM SOsrPanel::m_lpItemIndex
protected

Definition at line 172 of file SItemPanel.h.

◆ m_pItemContainer

SOUI_MSG_MAP_BEGIN () MSG_WM_DESTROY(OnDestroy) MSG_WM_SHOWWINDOW(OnShowWindow) SOUI_MSG_MAP_END() protected IItemContainer* SOsrPanel::m_pItemContainer
protected

Definition at line 171 of file SItemPanel.h.


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