|
int | FindString (LPCTSTR pszFind, int nAfter=-1, BOOL bPartMatch=TRUE) OVERRIDE |
| Find string in the list box.
|
|
int | FindStringA (LPCSTR pszFind, int nAfter=-1, BOOL bPartMatch=TRUE) OVERRIDE |
| Find string in the list box (ANSI version)
|
|
void | DropDown () OVERRIDE |
| Drop down the list box.
|
|
void | CloseUp () OVERRIDE |
| Close the dropped list box.
|
|
BOOL | IsDropdown () SCONST OVERRIDE |
| Check if the list box is dropped down.
|
|
void | SetDropdown (BOOL bDropdown) OVERRIDE |
| Set the dropdown state.
|
|
void | SetWindowText (LPCTSTR pszText) OVERRIDE |
| Set the window text.
|
|
void | GetDesiredSize (SIZE *psz, int nParentWid, int nParentHei) OVERRIDE |
| Get the desired size of the control.
|
|
void | SetFocus () OVERRIDE |
| Set focus to the control.
|
|
BOOL | FireEvent (IEvtArgs *evt) OVERRIDE |
| Notify event.
|
|
UINT | OnGetDlgCode () SCONST OVERRIDE |
| Get dialog code.
|
|
BOOL | IsFocusable () SCONST OVERRIDE |
| Check if the control is focusable.
|
|
void | UpdateChildrenPosition () OVERRIDE |
| Update the position of child controls.
|
|
SStringT | GetWindowText (BOOL bRawText=FALSE) OVERRIDE |
| Get the window text.
|
|
SStringT | GetLBText (int iItem, BOOL bRawText=FALSE) |
| Get the text of a list box item.
|
|
long | AddRef () OVERRIDE |
|
long | Release () OVERRIDE |
|
void | OnFinalRelease () OVERRIDE |
|
IWindow * | ToIWindow () OVERRIDE |
|
HRESULT | QueryInterface (REFGUID id, IObjRef **ppRet) OVERRIDE |
|
| DECLARE_CLASS_SIID (IID_IComboBase) long AddRef() PURE |
| 增加引用计数
|
|
long | Release () PURE |
| 减少引用计数
|
|
void | OnFinalRelease () PURE |
| 释放对象
|
|
IWindow * | ToIWindow () PURE |
| 转换为IWindow*接口
|
|
int | GetCurSel () SCONST PURE |
| 获取选中值索引
|
|
int | GetCount () SCONST PURE |
| 获取下拉项个数
|
|
BOOL | SetCurSel (int iSel) PURE |
| 设置当前选中
|
|
BOOL | GetItemText (int iItem, BOOL bRawText, IStringT *str) SCONST PURE |
| 获取指定项文本数据
|
|
BOOL | GetItemTextA (int iItem, BOOL bRawText, IStringA *str) SCONST PURE |
|
int | FindString (LPCTSTR pszFind, int nAfter DEF_VAL(-1), BOOL bPartMatch DEF_VAL(TRUE)) PURE |
| 查找字符串位置
|
|
int | FindStringA (LPCSTR pszFind, int nAfter DEF_VAL(-1), BOOL bPartMatch DEF_VAL(TRUE)) PURE |
|
void | DropDown () PURE |
| 下拉事件
|
|
void | CloseUp () PURE |
| 下拉关闭
|
|
BOOL | IsDropdown () SCONST PURE |
| 查询DropDown状态标志
|
|
void | SetDropdown (BOOL bDropdown) PURE |
| 设置下拉状态标志
|
|
| DECLARE_CLASS_SIID (IID_ICtrl) long AddRef() PURE |
| 增加引用计数
|
|
long | Release () PURE |
| 减少引用计数
|
|
void | OnFinalRelease () PURE |
| 释放对象
|
|
IWindow * | ToIWindow () PURE |
| 转换为IWindow*接口
|
|
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.
|
|
| 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 |
|
ILayout * | GetLayout () OVERRIDE |
|
ILayoutParam * | GetLayoutParam () 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 |
|
IRegionS * | GetWindowRgn () SCONST OVERRIDE |
|
void | SetWindowPath (IPathS *pPath, BOOL bRedraw DEF_VAL(TRUE)) OVERRIDE |
|
IPathS * | GetWindowPath () 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 |
|
IAnimation * | GetAnimation () 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 |
|
IWindow * | GetNextLayoutIChild (const IWindow *pCurChild) SCONST OVERRIDE |
|
void | UpdateChildrenPosition () OVERRIDE |
|
IWindow * | GetIWindow (int uCode) SCONST OVERRIDE |
|
IWindow * | GetIChild (int iChild) SCONST OVERRIDE |
|
IWindow * | GetIParent () SCONST OVERRIDE |
|
IWindow * | GetIRoot () 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 |
|
IWindow * | FindIChildByID (int nId) OVERRIDE |
|
IWindow * | FindIChildByName (LPCWSTR pszName) OVERRIDE |
|
IWindow * | FindIChildByNameA (LPCSTR pszName) OVERRIDE |
|
ISwndContainer * | GetContainer () 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.
|
|
IWindow * | GetIOwner () 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.
|
|
IWindow * | GetISelectedSiblingInGroup () OVERRIDE |
| Retrieves the selected sibling window in a group.
|
|
IWindow * | GetISelectedChildInGroup () 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.
|
|
ITimelineHandlersMgr * | GetTimelineHandlersMgr () 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 ISwndContainer * | GetContainer () const |
| Retrieves the container associated with this window.
|
|
SWindow * | GetWindow (int uCode) const |
| Retrieves a window based on a given code.
|
|
SWindow * | GetChild (int iChild) const |
| Retrieves a child window by index.
|
|
SWindow * | GetParent () const |
| Retrieves the parent window.
|
|
SWindow * | GetRoot () const |
| Retrieves the root window in the hierarchy.
|
|
SWindow * | GetNextLayoutChild (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 | GetToolTipText () |
| Retrieves the tooltip text of the window.
|
|
SEventSet * | GetEventSet () |
| Retrieves the event set associated with the window.
|
|
const SwndStyle & | GetStyle () const |
| Retrieves the style of the window.
|
|
SwndStyle & | GetStyle () |
|
void | SetOwner (SWindow *pOwner) |
| Sets the owner of the window.
|
|
SWindow * | GetOwner () 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.
|
|
SWindow * | FindChildByID (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.
|
|
SWindow * | FindChildByName (LPCWSTR strName, int nDeep=-1) |
| Finds a child window by its name.
|
|
SWindow * | FindChildByName (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 BOOL | UpdateToolTip (CPoint pt, SwndToolTipInfo &tipInfo) |
| Handle tooltip updates.
|
|
virtual SWindow * | GetSelectedSiblingInGroup () |
| Get selected sibling in group.
|
|
virtual SWindow * | GetSelectedChildInGroup () |
| Get selected child in group.
|
|
virtual SWindow * | CreateChildByName (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 BOOL | OnNcHitTest (CPoint pt) |
|
virtual void | OnUpdateFloatPosition (const CRect &rcParent) |
| Update floating window position.
|
|
virtual BOOL | NeedRedrawWhenStateChange () |
| Determine if redraw is needed on state change.
|
|
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.
|
|
IRenderTarget * | GetRenderTarget (LPCRECT pRc=NULL, GrtFlag gdcFlags=GRT_NODRAW, BOOL bClientRT=TRUE) |
| Retrieves a memory DC compatible with the SWND window.
|
|
IRenderTarget * | GetRenderTarget (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.
|
|
long | AddRef () override |
|
long | Release () override |
| 释放引用
|
|
void | OnFinalRelease () override |
| 释放对象
|
|
| 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.
|
|
| 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 |
| 查询控件接口
|
|
ISwndContainer * | GetContainer () PURE |
| 获取控件容器接口
|
|
void | SetContainer (ISwndContainer *pContainer) PURE |
| 设置控件容器接口
|
|
SWND | GetSwnd () SCONST PURE |
| 获取SOUI容器句柄
|
|
ILayout * | GetLayout () PURE |
| 获取布局对象
|
|
ILayoutParam * | GetLayoutParam () 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 |
| 设置窗口显示区域
|
|
IRegionS * | GetWindowRgn () SCONST PURE |
| 获取窗口显示区域
|
|
void | SetWindowPath (IPathS *pPath, BOOL bRedraw) PURE |
| 设置窗口显示区域
|
|
IPathS * | GetWindowPath () 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 |
| 立即启动一个动画对象
|
|
IAnimation * | GetAnimation () 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 |
| 获取窗口响应键盘的标志位
|
|
IWindow * | GetIRoot () SCONST PURE |
| 获取根窗口
|
|
IWindow * | GetIParent () SCONST PURE |
| 获取父窗口
|
|
IWindow * | GetIWindow (int uCode) SCONST PURE |
| 根据uCode获取与当前窗口在dom树上关联的窗口
|
|
IWindow * | GetIChild (int iChild) SCONST PURE |
| 获取子窗口
|
|
UINT | GetChildrenCount () SCONST PURE |
| 获取子窗口数量
|
|
BOOL | IsDescendant (const IWindow *pTest) SCONST PURE |
| 判断一个窗口是不是当前窗口的子孙窗口
|
|
void | SetIOwner (IWindow *pOwner) PURE |
| 设置窗口的Owner
|
|
IWindow * | GetIOwner () 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资源创建子窗口
|
|
IWindow * | FindIChildByID (int nId) PURE |
| 根据ID查找子窗口
|
|
IWindow * | FindIChildByName (LPCWSTR pszName) PURE |
| 根据Name查找子窗口
|
|
IWindow * | FindIChildByNameA (LPCSTR pszName) PURE |
| 根据Name查找子窗口
|
|
BOOL | DestroyIChild (IWindow *pChild) PURE |
| 销毁一个子窗口
|
|
void | DestroyAllChildren () PURE |
| 销毁所有子窗口
|
|
BOOL | Destroy () PURE |
| 销毁窗口
|
|
IWindow * | GetNextLayoutIChild (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 |
| 修改窗口状态
|
|
IWindow * | GetISelectedSiblingInGroup () PURE |
| 获得在一个group中选中状态的窗口
|
|
IWindow * | GetISelectedChildInGroup () 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
|
|
ITimelineHandlersMgr * | GetTimelineHandlersMgr () PURE |
| 获取ITimelineHandlersMgr
|
|
BOOL | IsVideoCanvas () SCONST PURE |
| 查询窗口是否为视频窗口
|
|
BOOL | RegisterDragDrop (IDropTarget *pDragTarget) PURE |
|
BOOL | UnregisterDragDrop () PURE |
|
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 |
| 设置属性处理回调方法
|
|
|
virtual SWindow * | GetDropDownOwner () |
| Get the owner window.
|
|
virtual void | OnCreateDropDown (SDropDownWnd *pDropDown) |
| Handle creation of the dropdown window.
|
|
virtual void | OnDestroyDropDown (SDropDownWnd *pDropDown) |
| Handle destruction of the dropdown window.
|
|
virtual void | OnSelChanged () |
| Handle selection change in the dropdown window.
|
|
void | UpdateDropdown (const SStringT &strInput) |
| Update the dropdown list based on input.
|
|
BOOL | CalcPopupRect (int nHeight, CRect &rcPopup) |
| Calculate the popup rectangle.
|
|
virtual BOOL | CreateListBox (SXmlNode xmlNode)=0 |
| Create the list box.
|
|
virtual int | GetListBoxHeight ()=0 |
| Get the height of the list box.
|
|
void | GetDropBtnRect (LPRECT prc) |
| Get the rectangle of the dropdown button.
|
|
virtual BOOL | CreateChildren (SXmlNode xmlNode) |
| Create child controls.
|
|
virtual void | GetTextRect (LPRECT pRect) |
| Get the rectangle of the text.
|
|
virtual void | OnColorize (COLORREF cr) |
| Handle colorization event.
|
|
virtual HRESULT | OnLanguageChanged () |
| Handle language change event.
|
|
virtual void | OnScaleChanged (int nScale) |
| Handle scale change event.
|
|
void | OnPaint (IRenderTarget *pRT) |
| Paint the control.
|
|
void | OnLButtonDown (UINT nFlags, CPoint pt) |
| Handle left mouse button down event.
|
|
void | OnMouseMove (UINT nFlags, CPoint pt) |
| Handle mouse move event.
|
|
void | OnMouseLeave () |
| Handle mouse leave event.
|
|
void | OnKeyDown (TCHAR nChar, UINT nRepCnt, UINT nFlags) |
| Handle key down event.
|
|
BOOL | OnMouseWheel (UINT nFlags, short zDelta, CPoint pt) |
| Handle mouse wheel event.
|
|
void | OnChar (UINT nChar, UINT nRepCnt, UINT nFlags) |
| Handle character input event.
|
|
void | OnDestroy () |
| Handle destroy event.
|
|
int | OnCreate (LPVOID) |
| Handle create event.
|
|
void | OnKillFocus (SWND wndFocus) |
| Handle kill focus event.
|
|
SStringT | GetCueText (BOOL bRawText=FALSE) const |
| Get the cue text.
|
|
HRESULT | OnAttrDropDown (const SStringW &strValue, BOOL bLoading) |
| Handle custom attribute "dropDown".
|
|
| SOUI_ATTRS_BEGIN () ATTR_CUSTOM(L"dropDown" |
|
OnAttrDropDown | ATTR_LAYOUTSIZE (L"dropHeight", m_nDropHeight, TRUE) ATTR_INT(L"curSel" |
|
OnAttrDropDown FALSE | ATTR_SKIN (L"btnSkin", m_pSkinBtn, TRUE) ATTR_INT(L"animateTime" |
|
OnAttrDropDown FALSE FALSE | ATTR_INT (L"autoFitDropBtn", m_bAutoFitDropBtn, TRUE) ATTR_COLOR(L"cueColor" |
|
OnAttrDropDown FALSE FALSE TRUE | ATTR_I18NSTRT (L"cueText", m_strCue, TRUE) ATTR_BOOL(L"autoMatch" |
|
IScriptModule * | GetScriptModule () |
|
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 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 |
|
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.
|
|
void | OnAnimationStart (IAnimation *animation) PURE |
| 通知动画开始
|
|
void | OnAnimationStop (IAnimation *animation) PURE |
| 通知动画结束。对于重复次数设置为INFINITE的动画,不会调用此回调。
|
|
void | OnAnimationRepeat (IAnimation *animation) PURE |
| 通知动画重复
|
|
void | OnAnimationPauseChange (IAnimation *animation, BOOL bPaused) PURE |
| 通知动画暂停状态变化
|
|