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

Base class for SOUI DUI windows. More...

#include <SWnd.h>

Inheritance diagram for SWindow:
TObjRefImpl< SObjectImpl< IWindow > > SObjectImpl< IWindow > SActiveX SButton SCalendar SCaption SCheckBox SFrame SGroup SLine SLink SMenuBar SMenuExItem SRadioBox SRadioGroup SRootWindow SScrollBar SSplitPane SSplitWnd SStackPage SStatic SSwitch

Public Member Functions

 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 ()
 Called when the last reference to the object is released.
 
SWND GetSwnd () SCONST OVERRIDE
 Retrieves the window handle.
 
ILayout * GetLayout () OVERRIDE
 Retrieves the layout object associated with the window.
 
ILayoutParam * GetLayoutParam () SCONST OVERRIDE
 Retrieves the layout parameter object associated with the window.
 
BOOL SetLayoutParam (ILayoutParam *pLayoutParam) OVERRIDE
 Sets the layout parameter object for the window.
 
BOOL IsFloat () SCONST OVERRIDE
 Checks if the window is floating.
 
BOOL IsDisplay () SCONST OVERRIDE
 Checks if the window is displayed.
 
void SetWindowText (LPCTSTR lpszText) OVERRIDE
 Sets the window text.
 
void SetWindowTextU8 (LPCSTR lpszText) OVERRIDE
 Sets the window text using a UTF-8 string.
 
void SetToolTipText (LPCTSTR pszText) OVERRIDE
 Sets the tooltip text for the window.
 
void SetToolTipTextU8 (LPCSTR pszText) OVERRIDE
 Sets the tooltip text using a UTF-8 string.
 
BOOL IsChecked () SCONST OVERRIDE
 Checks if the window is checked.
 
void SetCheck (BOOL bCheck) OVERRIDE
 Sets the check state of the window.
 
BOOL IsDisabled (BOOL bCheckParent=FALSE) SCONST OVERRIDE
 Checks if the window is disabled.
 
void EnableWindow (BOOL bEnable, BOOL bUpdate=FALSE) OVERRIDE
 Enables or disables the window.
 
BOOL IsVisible (BOOL bCheckParent=FALSE) SCONST OVERRIDE
 Checks if the window is visible.
 
void SetVisible (BOOL bVisible, BOOL bUpdate=FALSE) OVERRIDE
 Sets the visibility of the window.
 
BOOL IsMsgTransparent () SCONST OVERRIDE
 Checks if the window is message transparent.
 
ULONG_PTR GetUserData () SCONST OVERRIDE
 Retrieves the user data associated with the window.
 
ULONG_PTR SetUserData (ULONG_PTR uData) OVERRIDE
 Sets the user data for the window.
 
void GetWindowRect (LPRECT prect) SCONST OVERRIDE
 Retrieves the bounding rectangle of the window.
 
BOOL IsVideoCanvas () SCONST OVERRIDE
 Checks if the window is a video canvas.
 
void GetVisibleRect (LPRECT prect) SCONST OVERRIDE
 Retrieves the visible rectangle of the window.
 
void GetClientRect (LPRECT prect) SCONST OVERRIDE
 Retrieves the client rectangle of the window.
 
BOOL IsContainPoint (POINT pt, BOOL bClientOnly) SCONST OVERRIDE
 Checks if the window contains a specified point.
 
void DoColorize (COLORREF cr) OVERRIDE
 Applies colorization to the window.
 
COLORREF GetColorizeColor () SCONST OVERRIDE
 Retrieves the colorization color of the window.
 
BOOL Destroy () OVERRIDE
 Destroys the window.
 
void BringWindowToTop () OVERRIDE
 Brings the window to the top of the Z-order.
 
UINT GetChildrenCount () SCONST OVERRIDE
 Retrieves the number of child windows.
 
LRESULT SSendMessage (UINT uMsg, WPARAM wParam=0, LPARAM lParam=0, BOOL *pbMsgHandled=NULL) OVERRIDE
 Sends a message to the window.
 
void SDispatchMessage (UINT uMsg, WPARAM wParam=0, LPARAM lParam=0) OVERRIDE
 Dispatches a message to the window.
 
void SetFocus () OVERRIDE
 Sets the focus to the window.
 
void KillFocus () OVERRIDE
 Kills the focus from the window.
 
BOOL IsFocused () SCONST OVERRIDE
 Checks if the window has focus.
 
void Invalidate () OVERRIDE
 Invalidates the entire window.
 
void InvalidateRect (LPCRECT lprect) OVERRIDE
 Invalidates a specific rectangle area of the window.
 
void LockUpdate () OVERRIDE
 Locks updates to the window.
 
void UnlockUpdate () OVERRIDE
 Unlocks updates to the window.
 
BOOL IsUpdateLocked (BOOL bCheckParent=FALSE) SCONST OVERRIDE
 Checks if updates to the window are locked.
 
void Update (BOOL bForce=FALSE) OVERRIDE
 Updates the window.
 
void Move (LPCRECT prect) OVERRIDE
 Moves the window to a new position and size.
 
void SetWindowRgn (IRegionS *pRgn, BOOL bRedraw=TRUE) OVERRIDE
 Sets the window region.
 
IRegionSGetWindowRgn () SCONST OVERRIDE
 Retrieves the window region.
 
void SetWindowPath (IPathS *pPath, BOOL bRedraw=TRUE) OVERRIDE
 Sets the window path.
 
IPathS * GetWindowPath () SCONST OVERRIDE
 Retrieves the window path.
 
BOOL SetTimer (char id, UINT uElapse) OVERRIDE
 Sets a timer for the window.
 
BOOL KillTimer (char id) OVERRIDE
 Kills a timer for the window.
 
SWND GetCapture () SCONST OVERRIDE
 Retrieves the window that has captured the mouse.
 
SWND SetCapture () OVERRIDE
 Sets the window to capture the mouse.
 
BOOL ReleaseCapture () OVERRIDE
 Releases the mouse capture from the window.
 
void SetAnimation (IAnimation *animation) OVERRIDE
 Sets an animation for the window.
 
IAnimation * GetAnimation () SCONST OVERRIDE
 Retrieves the animation object associated with the window.
 
void StartAnimation (IAnimation *animation) OVERRIDE
 Starts an animation for the window.
 
void ClearAnimation () OVERRIDE
 Clears the animation for the window.
 
void SetAlpha (BYTE byAlpha) OVERRIDE
 Sets the alpha value for the window.
 
BYTE GetAlpha () SCONST OVERRIDE
 Retrieves the alpha value of the window.
 
void SetMatrix (const IMatrix *mtx) OVERRIDE
 Sets the transformation matrix for the window.
 
void GetMatrix (IMatrix *mtx) SCONST OVERRIDE
 Retrieves the transformation matrix of the window.
 
int GetScale () SCONST OVERRIDE
 Retrieves the scale factor of the window.
 
BOOL IsSiblingsAutoGroupped () SCONST OVERRIDE
 Checks if siblings are auto-grouped.
 
void RequestRelayout () OVERRIDE
 Requests a relayout of the window.
 
void UpdateLayout () OVERRIDE
 Updates the layout of the window.
 
UINT OnGetDlgCode () SCONST OVERRIDE
 Retrieves the dialog code for the window.
 
BOOL IsFocusable () SCONST OVERRIDE
 Checks if the window is focusable.
 
BOOL IsClipClient () SCONST OVERRIDE
 Checks if client area clipping is enabled.
 
BOOL IsLayoutDirty () SCONST OVERRIDE
 Checks if the layout is dirty.
 
IWindow * GetNextLayoutIChild (const IWindow *pCurChild) SCONST OVERRIDE
 Retrieves the next layout child window.
 
void UpdateChildrenPosition () OVERRIDE
 Updates the position of child windows.
 
IWindow * GetIWindow (int uCode) SCONST OVERRIDE
 Retrieves a window based on a given code.
 
IWindow * GetIChild (int iChild) SCONST OVERRIDE
 Retrieves a child window by index.
 
IWindow * GetIParent () SCONST OVERRIDE
 Retrieves the parent window.
 
IWindow * GetIRoot () SCONST OVERRIDE
 Retrieves the root window in the hierarchy.
 
BOOL IsDescendant (const IWindow *pWnd) SCONST OVERRIDE
 Checks if a window is a descendant of this window.
 
BOOL AdjustIZOrder (IWindow *pInsertAfter) OVERRIDE
 Adjusts the Z-order of the window.
 
void InsertIChild (IWindow *pNewChild, IWindow *pInsertAfter=NULL) OVERRIDE
 Inserts a child window into the window tree.
 
BOOL RemoveIChild (IWindow *pChild) OVERRIDE
 Removes a child window from the window tree.
 
BOOL DestroyIChild (IWindow *pChild) OVERRIDE
 Destroys a child window.
 
void DestroyAllChildren () OVERRIDE
 Destroys all child windows.
 
IWindow * FindIChildByID (int nId) OVERRIDE
 Finds a child window by its ID.
 
IWindow * FindIChildByName (LPCWSTR pszName) OVERRIDE
 Finds a child window by its name.
 
IWindow * FindIChildByNameA (LPCSTR pszName) OVERRIDE
 Finds a child window by its name (ANSI version).
 
ISwndContainerGetContainer () OVERRIDE
 Retrieves the container associated with this window.
 
void SetContainer (ISwndContainer *pContainer) OVERRIDE
 Sets the container for the window.
 
void GetChildrenLayoutRect (RECT *prc) SCONST OVERRIDE
 Retrieves the layout rectangle of the children.
 
void GetDesiredSize (SIZE *psz, int nParentWid, int nParentHei) OVERRIDE
 Retrieves the desired size of the window.
 
void Move2 (int x, int y, int cx=-1, int cy=-1) OVERRIDE
 Moves the window to a new position and optionally resizes it.
 
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=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=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 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)
 Measures the size of the content within the window.
 
virtual SIZE MeasureChildren (int nParentWid, int nParentHei)
 Measures the size of all child windows.
 
virtual BOOL UpdateToolTip (CPoint pt, SwndToolTipInfo &tipInfo)
 Handle tooltip updates.
 
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)
 Create child window by name.
 
virtual void RequestRelayout (SWND hSource, BOOL bSourceResizable)
 Request layout update.
 
virtual SStringW tr (const SStringW &strSrc) const
 Translation function.
 
virtual SWND SwndFromPoint (CPoint &pt, BOOL bIncludeMsgTransparent=false) const
 Get window from point.
 
virtual BOOL OnNcHitTest (CPoint pt)
 Non-client area hit test.
 
virtual void OnUpdateFloatPosition (const CRect &rcParent)
 Update floating window position.
 
virtual BOOL NeedRedrawWhenStateChange ()
 Determine if redraw is needed on state change.
 
virtual void GetTextRect (LPRECT pRect)
 Calculate text display rectangle.
 
virtual void DrawText (IRenderTarget *pRT, LPCTSTR pszBuf, int cchText, LPRECT pRect, UINT uFormat)
 Draw text content.
 
virtual void DrawFocus (IRenderTarget *pRT)
 Draw focus state.
 
virtual void BeforePaint (IRenderTarget *pRT, SPainter &painter)
 Prepare rendering environment.
 
virtual void AfterPaint (IRenderTarget *pRT, SPainter &painter)
 Restore rendering environment.
 
virtual LPCWSTR GetTrCtx () const
 Get translation context.
 
void RedrawRegion (IRenderTarget *pRT, IRegionS *pRgn)
 Renders the content of the window and its child windows onto the RenderTarget.
 
IRenderTargetGetRenderTarget (LPCRECT pRc=NULL, GrtFlag gdcFlags=GRT_NODRAW, BOOL bClientRT=TRUE)
 Retrieves a memory DC compatible with the SWND window.
 
IRenderTargetGetRenderTarget (GrtFlag gdcFlags, IRegionS *pRgn)
 Retrieves a memory DC compatible with the SWND window.
 
void ReleaseRenderTarget (IRenderTarget *pRT)
 Releases the RenderTarget obtained via GetRenderTarget.
 
void PaintBackground (IRenderTarget *pRT, LPRECT pRc)
 Draws the background content of the window.
 
void PaintForeground (IRenderTarget *pRT, LPRECT pRc, SWindow *pStartFrom=NULL)
 Draws the foreground content of the window.
 
void BeforePaintEx (IRenderTarget *pRT)
 Prepares the drawing environment for the current window's RenderTarget, starting from the top-level window.
 
void TransformPoint (CPoint &pt) const
 Transforms a point based on the current window's transformation matrix.
 
void TransformPointEx (CPoint &pt) const
 Extends the transformation of a point.
 
BOOL FireEvent (SEvtArgs &evt)
 Fires an event.
 
- Public Member Functions inherited from TObjRefImpl< SObjectImpl< IWindow > >
 TObjRefImpl ()
 Constructor that initializes the reference count to 1.
 
virtual ~TObjRefImpl ()
 Virtual destructor.
 
long AddRef () override
 Increments the reference count.
 
long Release () override
 Decrements the reference count and deletes the object if the count reaches zero.
 
void OnFinalRelease () override
 Deletes the object.
 
- 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.
 

Static Public Member Functions

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

enum  LayoutDirtyType { dirty_clean = 0 , dirty_self = 1 , dirty_child = 2 }
 Enumerates the types of layout dirty states. More...
 
typedef struct SWindow::GETRTDATA * PGETRTDATA
 

Protected Member Functions

IScriptModule * GetScriptModule ()
 Retrieves the script module interface.
 
void InvalidateRect (const CRect &rect, BOOL bFromThis=TRUE, BOOL bClip=FALSE)
 Invalidates a specific rectangle area of the window.
 
STransformation GetTransformation () const
 Retrieves the current transformation matrix of the window.
 
BOOL CreateChild (SXmlNode xmlChild)
 Creates a child window from an XML node.
 
void CreateChilds (SXmlNode xmlNode)
 Creates multiple child windows from XML nodes.
 
void OnAnimationStart (IAnimation *animation)
 Called when an animation starts.
 
void OnAnimationStop (IAnimation *animation)
 Called when an animation stops.
 
void OnAnimationRepeat (IAnimation *animation)
 Called when an animation repeats.
 
void OnAnimationPauseChange (IAnimation *animation, BOOL bPaused)
 Called when the pause state of an animation changes.
 
virtual void OnAnimationInvalidate (IAnimation *pAni, bool bErase)
 Called when an animation requires a redraw.
 
virtual void OnContentChanged ()
 Called when the content of the window changes.
 
virtual void OnColorize (COLORREF cr)
 Adjusts the color tone of the window.
 
virtual BOOL OnSetCursor (const CPoint &pt)
 Sets the cursor when the mouse hovers over the window.
 
virtual void OnStateChanging (DWORD dwOldState, DWORD dwNewState)
 Called before the state of the window changes.
 
virtual void OnStateChanged (DWORD dwOldState, DWORD dwNewState)
 Called after the state of the window changes.
 
virtual void OnCaptureChanged (BOOL bCaptured)
 Called when the capture state of the window changes.
 
virtual BOOL OnRelayout (const CRect &rcWnd)
 Handles window position changes during layout updates.
 
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)
 Renders the client area of the window onto the RenderTarget.
 
void _PaintNonClient (IRenderTarget *pRT)
 Renders the non-client area of the window onto the RenderTarget.
 
void _RedrawNonClient ()
 Redraws the non-client area of the window.
 
void _PaintRegion (IRenderTarget *pRT, IRegionS *pRgn, UINT iZorderBegin, UINT iZorderEnd)
 Renders a specific region of the window onto the RenderTarget.
 
void _PaintChildren (IRenderTarget *pRT, IRegionS *pRgn, UINT iBeginZorder, UINT iEndZorder)
 Renders child windows within a specific Z-order range.
 
void DrawDefFocusRect (IRenderTarget *pRT, CRect rc)
 Draws the default focus rectangle.
 
void UpdateCacheMode ()
 Updates the cache mode for the window.
 
void TestMainThread ()
 Tests if the current thread is the main UI thread.
 
void GetScaleSkin (SAutoRefPtr< ISkinObj > &pSkin, int nScale)
 Retrieves a scaled skin object based on the current scale factor.
 
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.
 
HRESULT OnAttrVisible (const SStringW &strValue, BOOL bLoading)
 Handles the 'visible' attribute.
 
HRESULT OnAttrEnable (const SStringW &strValue, BOOL bLoading)
 Handles the 'enable' 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.
 
virtual HRESULT SetAttribute (const SNS::SStringW &amp;amp;amp;amp;strAttribName, const SNS::SStringW &amp;amp;amp;amp;strValue, BOOL bLoading=FALSE)
 
virtual HRESULT OnLanguageChanged ()
 Called when the language of the window changes.
 
virtual void OnScaleChanged (int scale)
 Called when the scale 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 Attributes

SWND m_swnd
 Member variables representing various properties of the window.
 
BOOL m_bFloat
 
ISwndContainerm_pContainer
 
SEventSet m_evtSet
 
SAutoRefPtr< ILayout > m_pLayout
 
SAutoRefPtr< ILayoutParam > m_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< IPathS > m_clipPath
 
SAutoRefPtr< ISkinObjm_pBgSkin
 
SAutoRefPtr< ISkinObjm_pNcSkin
 
ULONG_PTR m_uData
 
SLayoutSize m_nMaxWidth
 
COLORREF m_crColorize
 
SAutoRefPtr< IAnimation > m_animation
 
SAnimationHandler m_animationHandler
 
STransformation m_transform
 
bool m_isAnimating
 
bool m_isDestroying
 
PGETRTDATA m_pGetRTData
 
SAutoRefPtr< IAttrStorage > m_attrStorage
 
SAutoRefPtr< ICaret > m_caret
 
FunSwndProc m_funSwndProc
 
- Protected Attributes inherited from TObjRefImpl< SObjectImpl< IWindow > >
LONG m_cRef
 Reference count.
 
- Protected Attributes inherited from SObjectImpl< IWindow >
SStringW m_strName
 
int m_nID
 
FunAttrHandler m_attrHandler
 

Friends

class SwndLayoutBuilder
 
class SWindowRepos
 
class SHostWnd
 
class SwndContainerImpl
 
class FocusSearch
 
class SGridLayout
 
class SLinearLayout
 
class SouiLayout
 
class SHostProxy
 

Detailed Description

Base class for SOUI DUI windows.

This class provides the basic functionality for SOUI DUI windows, including layout, event handling, and rendering.

Definition at line 284 of file SWnd.h.

Member Enumeration Documentation

◆ LayoutDirtyType

enum SWindow::LayoutDirtyType
protected

Enumerates the types of layout dirty states.

Definition at line 2567 of file SWnd.h.

Constructor & Destructor Documentation

◆ SWindow()

SWindow::SWindow ( )

Constructor.

Definition at line 104 of file Swnd.cpp.

◆ ~SWindow()

SWindow::~SWindow ( )
virtual

Destructor.

Definition at line 183 of file Swnd.cpp.

Member Function Documentation

◆ _ApplyMatrix()

bool SWindow::_ApplyMatrix ( IRenderTarget * pRT,
SMatrix & oriMtx )
protected

Applies a transformation matrix to the RenderTarget.

_ApplyMatrix

Parameters
IRenderTarget* pRT – Target RenderTarget.
SMatrix&oriMtx – Original transformation matrix.
Returns
bool – True if the matrix was applied successfully.

Describe Modifies the RenderTarget's transformation to account for the window's matrix.

Definition at line 2435 of file Swnd.cpp.

◆ _FindChildByID()

SWindow * SWindow::_FindChildByID ( int nID,
int nDeep )
protectedvirtual

Finds a child window by ID.

_FindChildByID

Parameters
intnID – Child window ID.
intnDeep – Search depth; -1 for unlimited.
Returns
SWindow * – Found child window.

Describe Searches for a child window by its unique identifier.

Definition at line 726 of file Swnd.cpp.

◆ _FindChildByName()

SWindow * SWindow::_FindChildByName ( const SStringW & strName,
int nDeep )
protectedvirtual

Finds a child window by name.

_FindChildByName

Parameters
constSStringW &strName – Child window name.
intnDeep – Search depth; -1 for unlimited.
Returns
SWindow * – Found child window.

Describe Searches for a child window by its name attribute.

Definition at line 753 of file Swnd.cpp.

◆ _GetCurrentLayeredWindow()

SWindow * SWindow::_GetCurrentLayeredWindow ( )
protected

Retrieves the host window for the current render layer.

_GetCurrentRenderContainer

Returns
SWindow * – Host window for the render layer.

Describe Identifies the container responsible for rendering the current window.

Definition at line 2305 of file Swnd.cpp.

◆ _GetMatrixEx()

SMatrix SWindow::_GetMatrixEx ( ) const
protected

Retrieves the extended transformation matrix for the window.

_GetMatrixEx

Returns
SMatrix – Extended transformation matrix.

Describe Provides the complete transformation matrix for the window.

Definition at line 2450 of file Swnd.cpp.

◆ _PaintChildren()

void SWindow::_PaintChildren ( IRenderTarget * pRT,
IRegionS * pRgn,
UINT iBeginZorder,
UINT iEndZorder )
protected

Renders child windows within a specific Z-order range.

Parameters
pRTPointer to the RenderTarget.
pRgnPointer to the region to render.
iBeginZorderBeginning Z-order for rendering.
iEndZorderEnding Z-order for rendering.

Definition at line 1233 of file Swnd.cpp.

◆ _PaintClient()

void SWindow::_PaintClient ( IRenderTarget * pRT)
protected

Renders the client area of the window onto the RenderTarget.

Parameters
pRTPointer to the RenderTarget.

Definition at line 1096 of file Swnd.cpp.

◆ _PaintNonClient()

void SWindow::_PaintNonClient ( IRenderTarget * pRT)
protected

Renders the non-client area of the window onto the RenderTarget.

Parameters
pRTPointer to the RenderTarget.

Definition at line 1139 of file Swnd.cpp.

◆ _PaintRegion()

void SWindow::_PaintRegion ( IRenderTarget * pRT,
IRegionS * pRgn,
UINT iZorderBegin,
UINT iZorderEnd )
protected

Renders a specific region of the window onto the RenderTarget.

Parameters
pRTPointer to the RenderTarget.
pRgnPointer to the region to render.
iZorderBeginBeginning Z-order for rendering.
iZorderEndEnding Z-order for rendering.

Definition at line 1413 of file Swnd.cpp.

◆ _RedrawNonClient()

void SWindow::_RedrawNonClient ( )
protected

Redraws the non-client area of the window.

Definition at line 1168 of file Swnd.cpp.

◆ _WndRectInRgn()

bool SWindow::_WndRectInRgn ( const CRect & rc,
const IRegionS * rgn ) const
protected

Checks if the window rectangle lies within a specified region.

_WndRectInRgn

Parameters
constCRect &rc – Window rectangle.
constIRegionS *rgn – Target region.
Returns
bool – True if the rectangle is within the region.

Describe Verifies whether the window's rectangle intersects with the given region.

Definition at line 1221 of file Swnd.cpp.

◆ accNotifyEvent()

void SWindow::accNotifyEvent ( DWORD dwEvt)

Notifies an accessibility event.

Parameters
dwEvtEvent ID.

Definition at line 3334 of file Swnd.cpp.

◆ AddEvent()

BOOL SWindow::AddEvent ( DWORD dwEventID,
LPCWSTR pszEventHandlerName )

Adds an event handler.

Parameters
dwEventIDEvent ID.
pszEventHandlerNameEvent handler name.
Returns
TRUE if successful, FALSE otherwise.

Definition at line 3626 of file Swnd.cpp.

◆ AdjustIZOrder()

BOOL SWindow::AdjustIZOrder ( IWindow * pInsertAfter)

Adjusts the Z-order of the window.

Parameters
pInsertAfterPointer to the window after which this window should be inserted.
Returns
TRUE if successful, FALSE otherwise.

Definition at line 3532 of file Swnd.cpp.

◆ AdjustZOrder()

BOOL SWindow::AdjustZOrder ( SWindow * pInsertAfter)

Adjusts the Z-order of the window.

Parameters
pInsertAfterPointer to the window after which this window should be inserted.
Returns
BOOL TRUE if successful; otherwise, FALSE.

If pInsertAfter is not a sibling of this window, the function will fail.

Definition at line 1518 of file Swnd.cpp.

◆ AfterAttribute()

HRESULT SWindow::AfterAttribute ( const SStringW & strAttribName,
const SStringW & strValue,
BOOL bLoading,
HRESULT hr )
protectedvirtual

Called after an attribute is processed.

AfterAttribute

Parameters
constSStringW &strAttribName – Attribute name.
constSStringW &strValue – Attribute value.
BOOLbLoading – TRUE during loading, FALSE otherwise.
HRESULThr – Result of attribute processing.
Returns
HRESULT – Result of post-processing.

Describe This method performs additional processing after an attribute is set.

Definition at line 3188 of file Swnd.cpp.

◆ AfterPaint()

void SWindow::AfterPaint ( IRenderTarget * pRT,
SPainter & painter )
virtual

Restore rendering environment.

AfterPaint

Reimplemented in SRootWindow.

Definition at line 1776 of file Swnd.cpp.

◆ BeforePaint()

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

Prepare rendering environment.

BeforePaint

Reimplemented in SRootWindow, and STabCtrl.

Definition at line 1755 of file Swnd.cpp.

◆ BeforePaintEx()

void SWindow::BeforePaintEx ( IRenderTarget * pRT)

Prepares the drawing environment for the current window's RenderTarget, starting from the top-level window.

BeforePaintEx

Parameters
IRenderTarget* pRT – Target RenderTarget.
Returns
void

Describe Typically used in conjunction with CreateRenderTarget.

Definition at line 1767 of file Swnd.cpp.

◆ BringWindowToTop()

void SWindow::BringWindowToTop ( )

Brings the window to the top of the Z-order.

Definition at line 1513 of file Swnd.cpp.

◆ ClearAnimation()

void SWindow::ClearAnimation ( )

Clears the animation for the window.

Cancels any animations for this view.

Definition at line 2559 of file Swnd.cpp.

◆ CreateCaret()

BOOL SWindow::CreateCaret ( HBITMAP pBmp,
int nWid,
int nHeight )

Creates a caret.

Parameters
pBmpBitmap for the caret.
nWidWidth of the caret.
nHeightHeight of the caret.
Returns
TRUE if successful, FALSE otherwise.

Definition at line 3038 of file Swnd.cpp.

◆ CreateChild()

BOOL SWindow::CreateChild ( SXmlNode xmlChild)
protected

Creates a child window from an XML node.

Parameters
xmlChildThe XML node containing the child window definition.
Returns
BOOL TRUE if the child window was successfully created; otherwise, FALSE.

Definition at line 915 of file Swnd.cpp.

◆ CreateChildByName()

SWindow * SWindow::CreateChildByName ( LPCWSTR pszName)
virtual

Create child window by name.

CreateChildByName

Parameters
pszNameName of the child window
Returns
SWindow* Pointer to the created child window; otherwise, NULL

Reimplemented in SMenuExItem.

Definition at line 935 of file Swnd.cpp.

◆ CreateChildren()

BOOL SWindow::CreateChildren ( SXmlNode xmlNode)
virtual

Create child windows from XML node.

CreateChildren

Parameters
xmlNodeXML node containing child windows
Returns
BOOL TRUE if child windows were created successfully; otherwise, FALSE

Reimplemented in SDateTimePicker, SHeaderCtrl, SListBox, SListCtrl, SMCListView, SMenuBar, SMenuExItem, SSplitWnd, SStackView, STabCtrl, STileView, STreeCtrl, and STreeView.

Definition at line 823 of file Swnd.cpp.

◆ CreateChildrenFromResId()

BOOL SWindow::CreateChildrenFromResId ( LPCTSTR pszResId)

Creates child windows from a resource ID.

Parameters
pszResIdResource ID of the XML string containing child window definitions.
Returns
TRUE if successful, FALSE otherwise.

Definition at line 1032 of file Swnd.cpp.

◆ CreateChildrenFromXml()

BOOL SWindow::CreateChildrenFromXml ( LPCWSTR pszXml)

Creates child windows from XML.

Parameters
pszXmlXML string containing child window definitions.
Returns
TRUE if successful, FALSE otherwise.

Definition at line 1024 of file Swnd.cpp.

◆ CreateChilds()

void SWindow::CreateChilds ( SXmlNode xmlNode)
protected

Creates multiple child windows from XML nodes.

Parameters
xmlNodeThe XML node containing definitions for multiple child windows.

Definition at line 927 of file Swnd.cpp.

◆ DefAttributeProc()

HRESULT SWindow::DefAttributeProc ( const SStringW & strAttribName,
const SStringW & strValue,
BOOL bLoading )
protectedvirtual

Default attribute processing function.

DefAttributeProc

Parameters
constSStringW &strAttribName – Attribute name.
constSStringW &strValue – Attribute value.
BOOLbLoading – TRUE during loading, FALSE otherwise.
Returns
HRESULT – Result of attribute processing.

Describe This method processes attributes not explicitly handled.

Reimplemented from SObjectImpl< IWindow >.

Definition at line 3017 of file Swnd.cpp.

◆ Destroy()

BOOL SWindow::Destroy ( )

Destroys the window.

Returns
TRUE if successful, FALSE otherwise.

Definition at line 504 of file Swnd.cpp.

◆ DestroyAllChildren()

void SWindow::DestroyAllChildren ( )

Destroys all child windows.

Definition at line 1685 of file Swnd.cpp.

◆ DestroyChild()

BOOL SWindow::DestroyChild ( SWindow * pChild)

Destroys a child window.

Parameters
pChildPointer to the child window to destroy.
Returns
BOOL TRUE if successful; otherwise, FALSE.

Calls RemoveChild and then releases the child window.

Definition at line 519 of file Swnd.cpp.

◆ DestroyIChild()

BOOL SWindow::DestroyIChild ( IWindow * pChild)

Destroys a child window.

Parameters
pChildPointer to the child window to destroy.
Returns
TRUE if successful, FALSE otherwise.

Definition at line 3547 of file Swnd.cpp.

◆ DispatchPaint()

void SWindow::DispatchPaint ( IRenderTarget * pRT,
IRegionS * pRgn,
UINT iZorderBegin,
UINT iZorderEnd )
protectedvirtual

Handles paint dispatching for the window.

DispatchPaint

Parameters
IRenderTarget* pRT – Target RenderTarget.
IRegion*pRgn – Paint region.
UINTiBeginZorder – Beginning Z-order.
UINTiEndZorder – Ending Z-order.
Returns
void

Describe Manages the painting process for the specified Z-order range.

Definition at line 1271 of file Swnd.cpp.

◆ DoColorize()

void SWindow::DoColorize ( COLORREF cr)

Applies colorization to the window.

Parameters
crColor reference for colorization.

Definition at line 3143 of file Swnd.cpp.

◆ DrawDefFocusRect()

void SWindow::DrawDefFocusRect ( IRenderTarget * pRT,
CRect rc )
protected

Draws the default focus rectangle.

Parameters
pRTPointer to the RenderTarget.
rcRectangle defining the focus area.

Definition at line 1981 of file Swnd.cpp.

◆ DrawFocus()

void SWindow::DrawFocus ( IRenderTarget * pRT)
virtual

Draw focus state.

DrawFocus

Reimplemented in SCheckBox, and SRadioBox.

Definition at line 1973 of file Swnd.cpp.

◆ DrawText()

void SWindow::DrawText ( IRenderTarget * pRT,
LPCTSTR pszBuf,
int cchText,
LPRECT pRect,
UINT uFormat )
virtual

Draw text content.

DrawText

Reimplemented in SLink, and SStatic.

Definition at line 1968 of file Swnd.cpp.

◆ EnableWindow()

void SWindow::EnableWindow ( BOOL bEnable,
BOOL bUpdate = FALSE )

Enables or disables the window.

Parameters
bEnableTRUE to enable the window, FALSE to disable.
bUpdateFlag to update the window state.

Definition at line 664 of file Swnd.cpp.

◆ FindChildByClass()

template<class T>
T * SWindow::FindChildByClass ( int nDeep = -1) const
inline

Recursively finds a child window by its class type.

Template Parameters
TType of the child window.
Parameters
nDeepDepth of the search (-1 for unlimited depth).
Returns
T* Pointer to the found child window casted to type T.

Definition at line 1427 of file SWnd.h.

◆ FindChildByID()

SWindow * SWindow::FindChildByID ( int nID,
int nDeep = -1 )

Finds a child window by its ID.

Parameters
nIDID of the child window to find.
nDeepDepth of the search (-1 for unlimited depth).
Returns
SWindow* Pointer to the found child window.

Definition at line 781 of file Swnd.cpp.

◆ FindChildByID2()

template<class T>
T * SWindow::FindChildByID2 ( int nID,
int nDeep = -1 )
inline

Finds a child window by its ID and casts it to a specific type.

Template Parameters
TType of the child window.
Parameters
nIDID of the child window to find.
nDeepDepth of the search (-1 for unlimited depth).
Returns
T* Pointer to the found child window casted to type T.

Definition at line 1360 of file SWnd.h.

◆ FindChildByName() [1/2]

SWindow * SWindow::FindChildByName ( LPCSTR strName,
int nDeep = -1 )

Overloaded method to find a child window by its name (ANSI version).

Parameters
strNameName of the child window to find.
nDeepDepth of the search (-1 for unlimited depth).
Returns
SWindow* Pointer to the found child window.

Definition at line 813 of file Swnd.cpp.

◆ FindChildByName() [2/2]

SWindow * SWindow::FindChildByName ( LPCWSTR strName,
int nDeep = -1 )

Finds a child window by its name.

Parameters
strNameName of the child window to find.
nDeepDepth of the search (-1 for unlimited depth).
Returns
SWindow* Pointer to the found child window.

Definition at line 795 of file Swnd.cpp.

◆ FindChildByName2() [1/2]

template<class T>
T * SWindow::FindChildByName2 ( LPCSTR pszName,
int nDeep = -1 )
inline

Overloaded method to find a child window by its name and cast it to a specific type (ANSI version).

Template Parameters
TType of the child window.
Parameters
pszNameName of the child window to find.
nDeepDepth of the search (-1 for unlimited depth).
Returns
T* Pointer to the found child window casted to type T.

Definition at line 1415 of file SWnd.h.

◆ FindChildByName2() [2/2]

template<class T>
T * SWindow::FindChildByName2 ( LPCWSTR pszName,
int nDeep = -1 )
inline

Finds a child window by its name and casts it to a specific type.

Template Parameters
TType of the child window.
Parameters
pszNameName of the child window to find.
nDeepDepth of the search (-1 for unlimited depth).
Returns
T* Pointer to the found child window casted to type T.

Definition at line 1396 of file SWnd.h.

◆ FindIChildByID()

IWindow * SWindow::FindIChildByID ( int nId)

Finds a child window by its ID.

Parameters
nIdID of the child window to find.
Returns
Pointer to the found child window.

Definition at line 1670 of file Swnd.cpp.

◆ FindIChildByName()

IWindow * SWindow::FindIChildByName ( LPCWSTR pszName)

Finds a child window by its name.

Parameters
pszNameName of the child window to find.
Returns
Pointer to the found child window.

Definition at line 1675 of file Swnd.cpp.

◆ FindIChildByNameA()

IWindow * SWindow::FindIChildByNameA ( LPCSTR pszName)

Finds a child window by its name (ANSI version).

Parameters
pszNameName of the child window to find.
Returns
Pointer to the found child window.

Definition at line 1680 of file Swnd.cpp.

◆ FireCommand()

BOOL SWindow::FireCommand ( )

Fires a command event.

Returns
TRUE if the command was handled, FALSE otherwise.

Definition at line 2713 of file Swnd.cpp.

◆ FireCtxMenu()

BOOL SWindow::FireCtxMenu ( POINT pt)

Fires a context menu event.

Parameters
ptPoint where the context menu should be displayed.
Returns
TRUE if the context menu was handled, FALSE otherwise.

Definition at line 2719 of file Swnd.cpp.

◆ FireEvent() [1/2]

BOOL SWindow::FireEvent ( IEvtArgs * evt)

Fires an event.

Parameters
evtEvent arguments.
Returns
TRUE if the event was handled, FALSE otherwise.

Definition at line 1540 of file Swnd.cpp.

◆ FireEvent() [2/2]

BOOL SWindow::FireEvent ( SEvtArgs & evt)
inline

Fires an event.

FireEvent

Parameters
SEvtArgs&evt – Event arguments.
Returns
BOOL – Result of firing the event.

Describe Simplifies the process of firing events by wrapping the pointer-based method.

Definition at line 1811 of file SWnd.h.

◆ GetAccProxy()

IAccProxy * SWindow::GetAccProxy ( )

Retrieves the accessibility proxy for the window.

Returns
Pointer to the accessibility proxy.

Definition at line 3321 of file Swnd.cpp.

◆ GetAlpha()

BYTE SWindow::GetAlpha ( )

Retrieves the alpha value of the window.

Returns
Alpha value.

Definition at line 2602 of file Swnd.cpp.

◆ GetAnimation()

IAnimation * SWindow::GetAnimation ( )

Retrieves the animation object associated with the window.

Returns
Pointer to the animation object.

Get the animation currently associated with this view.

Returns
The animation that is currently playing or scheduled to play for this view.

Definition at line 2538 of file Swnd.cpp.

◆ GetAttribute()

BOOL SWindow::GetAttribute ( LPCWSTR pszName,
IStringW * strValue )

Retrieves an attribute value from the window.

Parameters
pszNameName of the attribute.
strValueString object to receive the attribute value.
Returns
TRUE if successful, FALSE otherwise.

Definition at line 3216 of file Swnd.cpp.

◆ GetBkgndColor()

COLORREF SWindow::GetBkgndColor ( )

Retrieves the background color of the window.

Returns
Background color.

Definition at line 3386 of file Swnd.cpp.

◆ GetCapture()

SWND SWindow::GetCapture ( )

Retrieves the window that has captured the mouse.

Returns
Window handle of the captured window.

Definition at line 2470 of file Swnd.cpp.

◆ GetChild()

SWindow * SWindow::GetChild ( int iChild) const

Retrieves a child window by index.

Parameters
iChildIndex of the child window.
Returns
SWindow* Pointer to the child window.

Definition at line 3483 of file Swnd.cpp.

◆ GetChildrenCount()

UINT SWindow::GetChildrenCount ( )

Retrieves the number of child windows.

Returns
Number of child windows.

Definition at line 533 of file Swnd.cpp.

◆ GetChildrenLayoutRect()

void SWindow::GetChildrenLayoutRect ( RECT * prc)

Retrieves the layout rectangle of the children.

Parameters
prcPointer to the rectangle to receive the layout area.

Definition at line 2181 of file Swnd.cpp.

◆ GetClientRect() [1/2]

CRect SWindow::GetClientRect ( ) const
virtual

Retrieves the client rectangle of the window.

Returns
CRect Client rectangle of the window.

Reimplemented in SPanel.

Definition at line 243 of file Swnd.cpp.

◆ GetClientRect() [2/2]

void SWindow::GetClientRect ( LPRECT prect)

Retrieves the client rectangle of the window.

Parameters
prectPointer to the rectangle to receive the client area.

◆ GetColorizeColor()

COLORREF SWindow::GetColorizeColor ( )

Retrieves the colorization color of the window.

Returns
Color reference for colorization.

Definition at line 3166 of file Swnd.cpp.

◆ GetContainer() [1/2]

const ISwndContainer * SWindow::GetContainer ( ) const

Retrieves the container associated with this window.

Returns
const ISwndContainer* Pointer to the container object.

Definition at line 684 of file Swnd.cpp.

◆ GetContainer() [2/2]

ISwndContainer * SWindow::GetContainer ( )

Retrieves the container associated with this window.

Returns
Pointer to the container object.

Definition at line 679 of file Swnd.cpp.

◆ GetCurMsg()

PSWNDMSG SWindow::GetCurMsg ( void ) const
inline

Retrieves the current message being processed.

Returns
PSWNDMSG Pointer to the current message structure.

Definition at line 1190 of file SWnd.h.

◆ GetDesiredSize()

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

Retrieves the desired size of the window.

Parameters
pszPointer to the size structure to receive the desired size.
nParentWidWidth of the parent window.
nParentHeiHeight of the parent window.

Definition at line 1839 of file Swnd.cpp.

◆ GetEventSet()

SEventSet * SWindow::GetEventSet ( )
inline

Retrieves the event set associated with the window.

Returns
SEventSet* Pointer to the event set object.

Definition at line 1290 of file SWnd.h.

◆ GetHostHwnd()

HWND SWindow::GetHostHwnd ( )

Retrieves the host window handle.

Returns
Host window handle.

Definition at line 3616 of file Swnd.cpp.

◆ GetIChild()

IWindow * SWindow::GetIChild ( int iChild)

Retrieves a child window by index.

Parameters
iChildIndex of the child window.
Returns
Pointer to the child window.

Definition at line 2658 of file Swnd.cpp.

◆ GetIOwner()

IWindow * SWindow::GetIOwner ( )

Retrieves the owner window.

Returns
Pointer to the owner window.

Definition at line 3557 of file Swnd.cpp.

◆ GetIParent()

IWindow * SWindow::GetIParent ( )

Retrieves the parent window.

Returns
Pointer to the parent window.

Definition at line 494 of file Swnd.cpp.

◆ GetIRoot()

IWindow * SWindow::GetIRoot ( )

Retrieves the root window in the hierarchy.

Returns
Pointer to the root window.

Definition at line 499 of file Swnd.cpp.

◆ GetISelectedChildInGroup()

IWindow * SWindow::GetISelectedChildInGroup ( )

Retrieves the selected child window in a group.

Returns
Pointer to the selected child window, or NULL if not in a group.

Definition at line 3587 of file Swnd.cpp.

◆ GetISelectedSiblingInGroup()

IWindow * SWindow::GetISelectedSiblingInGroup ( )

Retrieves the selected sibling window in a group.

Returns
Pointer to the selected sibling window, or NULL if not in a group.

Definition at line 3582 of file Swnd.cpp.

◆ GetIWindow()

IWindow * SWindow::GetIWindow ( int uCode)

Retrieves a window based on a given code.

Parameters
uCodeCode specifying the type of window to retrieve (e.g., first child, last child).
Returns
Pointer to the requested window.

Definition at line 2653 of file Swnd.cpp.

◆ GetLayout()

ILayout * SWindow::GetLayout ( )
inline

Retrieves the layout object associated with the window.

Returns
Pointer to the layout object.

Definition at line 396 of file SWnd.h.

◆ GetLayoutParam()

ILayoutParam * SWindow::GetLayoutParam ( )
inline

Retrieves the layout parameter object associated with the window.

Returns
Pointer to the layout parameter object.

Definition at line 405 of file SWnd.h.

◆ GetLayoutParamT()

template<class T>
T * SWindow::GetLayoutParamT ( )
inline

Template method to cast layout parameters to a specific type.

Template Parameters
TType of the layout parameter.
Returns
T* Pointer to the casted layout parameter.

Definition at line 1347 of file SWnd.h.

◆ GetMatrix()

void SWindow::GetMatrix ( IMatrix * mtx)

Retrieves the transformation matrix of the window.

Parameters
mtxPointer to the matrix object to receive the transformation matrix.

Definition at line 2613 of file Swnd.cpp.

◆ GetNextLayoutChild()

SWindow * SWindow::GetNextLayoutChild ( const SWindow * pCurChild) const

Retrieves the next layout child after a specified child.

Parameters
pCurChildPointer to the current child window.
Returns
SWindow* Pointer to the next layout child.

Definition at line 3501 of file Swnd.cpp.

◆ GetNextLayoutIChild()

IWindow * SWindow::GetNextLayoutIChild ( const IWindow * pCurChild)

Retrieves the next layout child window.

Parameters
pCurChildPointer to the current child window.
Returns
Pointer to the next layout child window.

Definition at line 2260 of file Swnd.cpp.

◆ GetOwner()

SWindow * SWindow::GetOwner ( ) const

Retrieves the current owner of the window.

Returns
SWindow* Pointer to the owner window.

Definition at line 706 of file Swnd.cpp.

◆ GetParent()

SWindow * SWindow::GetParent ( ) const

Retrieves the parent window.

Returns
SWindow* Pointer to the parent window.

Definition at line 3488 of file Swnd.cpp.

◆ GetRenderTarget() [1/2]

IRenderTarget * SWindow::GetRenderTarget ( GrtFlag gdcFlags,
IRegionS * pRgn )

Retrieves a memory DC compatible with the SWND window.

GetRenderTarget

Parameters
DWORDgdcFlags – Flags similar to OLEDCFLAGS.
IRegion*pRgn – Target region for the RenderTarget.
Returns
IRenderTarget *

Describe The returned RenderTarget must be released using ReleaseRenderTarget.

Definition at line 2341 of file Swnd.cpp.

◆ GetRenderTarget() [2/2]

IRenderTarget * SWindow::GetRenderTarget ( LPCRECT pRc = NULL,
GrtFlag gdcFlags = GRT_NODRAW,
BOOL bClientRT = TRUE )

Retrieves a memory DC compatible with the SWND window.

GetRenderTarget

Parameters
LPCRECTpRc – Target rectangle for the RenderTarget.
DWORDgdcFlags – Flags similar to OLEDCFLAGS.
BOOLbClientRT – Indicates whether the client area should be used.
Returns
IRenderTarget *

Describe The returned RenderTarget must be released using ReleaseRenderTarget.

Definition at line 2320 of file Swnd.cpp.

◆ GetRoot()

SWindow * SWindow::GetRoot ( ) const

Retrieves the root window in the hierarchy.

Returns
SWindow* Pointer to the root window.

Definition at line 3493 of file Swnd.cpp.

◆ GetScale()

int SWindow::GetScale ( )

Retrieves the scale factor of the window.

Returns
Scale factor.

Definition at line 3266 of file Swnd.cpp.

◆ GetScaleSkin()

void SWindow::GetScaleSkin ( SAutoRefPtr< ISkinObj > & pSkin,
int nScale )
protected

Retrieves a scaled skin object based on the current scale factor.

Parameters
pSkinReference to the SAutoRefPtr<ISkinObj> to store the scaled skin object.
nScaleThe scale factor.

Definition at line 3290 of file Swnd.cpp.

◆ GetScriptModule()

IScriptModule * SWindow::GetScriptModule ( )
protected

Retrieves the script module interface.

Returns
IScriptModule* Pointer to the script module interface.

Definition at line 3010 of file Swnd.cpp.

◆ GetSelectedChildInGroup()

SWindow * SWindow::GetSelectedChildInGroup ( )
virtual

Get selected child in group.

GetSelectedChildInGroup

Definition at line 2978 of file Swnd.cpp.

◆ GetSelectedSiblingInGroup()

virtual SWindow * SWindow::GetSelectedSiblingInGroup ( )
inlinevirtual

Get selected sibling in group.

GetSelectedSiblingInGroup

Reimplemented in SRadioBox.

Definition at line 1598 of file SWnd.h.

◆ GetState()

DWORD SWindow::GetState ( void )

Retrieves the current state of the window.

Returns
Current state flags.

Definition at line 437 of file Swnd.cpp.

◆ GetStyle() [1/2]

SwndStyle & SWindow::GetStyle ( )

Definition at line 721 of file Swnd.cpp.

◆ GetStyle() [2/2]

const SwndStyle & SWindow::GetStyle ( ) const

Retrieves the style of the window.

Returns
SwndStyle& Reference to the style object.

Definition at line 716 of file Swnd.cpp.

◆ GetSwnd()

SWND SWindow::GetSwnd ( )

Retrieves the window handle.

Returns
Window handle.

Definition at line 489 of file Swnd.cpp.

◆ GetTextAlign()

UINT SWindow::GetTextAlign ( ) const

Retrieves the text alignment of the window.

Returns
UINT Text alignment flags.

Definition at line 218 of file Swnd.cpp.

◆ GetTextRect()

void SWindow::GetTextRect ( LPRECT pRect)
virtual

Calculate text display rectangle.

GetTextRect

Reimplemented in SCheckBox, SMenuExItem, and SRadioBox.

Definition at line 1961 of file Swnd.cpp.

◆ GetTimelineHandlersMgr()

ITimelineHandlersMgr * SWindow::GetTimelineHandlersMgr ( )

Retrieves the timeline handlers manager.

Returns
Pointer to the timeline handlers manager.

Definition at line 3621 of file Swnd.cpp.

◆ GetToolTipText()

SStringT SWindow::GetToolTipText ( )
virtual

Retrieves the tooltip text of the window.

Returns
SStringT Tooltip text as a string.

Definition at line 3236 of file Swnd.cpp.

◆ GetTransformation()

STransformation SWindow::GetTransformation ( ) const
protected

Retrieves the current transformation matrix of the window.

Returns
STransformation The current transformation matrix.

Definition at line 2577 of file Swnd.cpp.

◆ GetTrCtx()

LPCWSTR SWindow::GetTrCtx ( ) const
virtual

Get translation context.

GetTrCtx

Definition at line 3258 of file Swnd.cpp.

◆ GetUserData()

ULONG_PTR SWindow::GetUserData ( )

Retrieves the user data associated with the window.

Returns
User data.

Definition at line 465 of file Swnd.cpp.

◆ GetVisibleRect()

void SWindow::GetVisibleRect ( LPRECT prect)

Retrieves the visible rectangle of the window.

Parameters
prectPointer to the rectangle to receive the visible area.

Definition at line 3636 of file Swnd.cpp.

◆ GetWindow()

SWindow * SWindow::GetWindow ( int uCode) const

Retrieves a window based on a given code.

Parameters
uCodeCode specifying the type of window to retrieve (e.g., first child, last child).
Returns
SWindow* Pointer to the requested window.

Definition at line 3456 of file Swnd.cpp.

◆ GetWindowPath()

IPathS * SWindow::GetWindowPath ( )

Retrieves the window path.

Returns
Pointer to the path object.

Definition at line 3138 of file Swnd.cpp.

◆ GetWindowRect() [1/2]

CRect SWindow::GetWindowRect ( ) const

Retrieves the bounding rectangle of the window.

Returns
CRect Bounding rectangle of the window.

Definition at line 230 of file Swnd.cpp.

◆ GetWindowRect() [2/2]

void SWindow::GetWindowRect ( LPRECT prect)

Retrieves the bounding rectangle of the window.

Parameters
prectPointer to the rectangle to receive the window's bounds.

◆ GetWindowRgn()

IRegionS * SWindow::GetWindowRgn ( )

Retrieves the window region.

Returns
Pointer to the region object.

Definition at line 3126 of file Swnd.cpp.

◆ GetWindowText() [1/2]

SStringT SWindow::GetWindowText ( BOOL bRawText = FALSE)
virtual

Retrieves the text of the window.

Parameters
bRawTextFlag indicating whether to retrieve raw text.
Returns
SStringT Window text as a string.

Reimplemented in SDateTimePicker, SHotKeyCtrl, and SRichEdit.

Definition at line 250 of file Swnd.cpp.

◆ GetWindowText() [2/2]

int SWindow::GetWindowText ( TCHAR * pBuf,
int nBufLen,
BOOL bRawText )

Retrieves the window text.

Parameters
pBufBuffer to receive the window text.
nBufLenLength of the buffer.
bRawTextFlag to indicate if raw text should be retrieved.
Returns
Length of the text copied to the buffer.

Definition at line 263 of file Swnd.cpp.

◆ GetWindowTextU8()

int SWindow::GetWindowTextU8 ( IStringA * pStr,
BOOL bRawText )

Retrieves the window text as a UTF-8 string.

Parameters
pStrString object to receive the window text.
bRawTextFlag to indicate if raw text should be retrieved.
Returns
Length of the text copied to the string object.

Definition at line 255 of file Swnd.cpp.

◆ GetXmlText()

SStringW SWindow::GetXmlText ( const SXmlNode & xmlNode)
static

Gets the XML text from a node.

Parameters
xmlNodeXML node.
Returns
XML text.

Definition at line 2955 of file Swnd.cpp.

◆ InitFromXml()

BOOL SWindow::InitFromXml ( IXmlNode * pNode)

Initializes the window from an XML node.

Parameters
pNodeXML node containing window initialization data.
Returns
TRUE if successful, FALSE otherwise.

Definition at line 946 of file Swnd.cpp.

◆ InsertChild()

void SWindow::InsertChild ( SWindow * pNewChild,
SWindow * pInsertAfter = NULL )

Inserts a child window into the window tree.

Parameters
pNewChildPointer to the new child window.
pInsertAfterPointer to the window after which the new child should be inserted.

The new child will not automatically enter the layout process.

Definition at line 538 of file Swnd.cpp.

◆ InsertIChild()

void SWindow::InsertIChild ( IWindow * pNewChild,
IWindow * pInsertAfter = NULL )

Inserts a child window into the window tree.

Parameters
pNewChildPointer to the new child window.
pInsertAfterPointer to the window after which the new child should be inserted.

Definition at line 3537 of file Swnd.cpp.

◆ Invalidate()

void SWindow::Invalidate ( )

Invalidates the entire window.

Definition at line 1437 of file Swnd.cpp.

◆ InvalidateRect() [1/2]

void SWindow::InvalidateRect ( const CRect & rect,
BOOL bFromThis = TRUE,
BOOL bClip = FALSE )
protected

Invalidates a specific rectangle area of the window.

Parameters
rectThe rectangle area to invalidate.
bFromThisTRUE if the invalidation originates from this window; otherwise, FALSE.
bClipTRUE if clipping should be applied; otherwise, FALSE.

Definition at line 1457 of file Swnd.cpp.

◆ InvalidateRect() [2/2]

void SWindow::InvalidateRect ( LPCRECT lprect)

Invalidates a specific rectangle area of the window.

Parameters
lprectPointer to the rectangle to invalidate.

Definition at line 1444 of file Swnd.cpp.

◆ IsCacheDirty()

bool SWindow::IsCacheDirty ( ) const
protected

Checks if the cache is marked as dirty.

IsCacheDirty

Returns
bool – True if the cache is dirty.

Describe Determines whether the cache needs to be refreshed.

Definition at line 2728 of file Swnd.cpp.

◆ IsChecked()

BOOL SWindow::IsChecked ( )

Checks if the window is checked.

Returns
TRUE if the window is checked, FALSE otherwise.

Definition at line 633 of file Swnd.cpp.

◆ IsClipClient()

BOOL SWindow::IsClipClient ( )

Checks if client area clipping is enabled.

Returns
TRUE if client area clipping is enabled, FALSE otherwise.

Definition at line 3446 of file Swnd.cpp.

◆ IsContainPoint()

BOOL SWindow::IsContainPoint ( POINT pt,
BOOL bClientOnly )

Checks if the window contains a specified point.

Parameters
ptPoint to check.
bClientOnlyFlag to check only the client area.
Returns
TRUE if the point is within the window, FALSE otherwise.

Definition at line 3100 of file Swnd.cpp.

◆ IsDescendant()

BOOL SWindow::IsDescendant ( const IWindow * pWnd)

Checks if a window is a descendant of this window.

Parameters
pWndPointer to the window to check.
Returns
TRUE if the window is a descendant, FALSE otherwise.

Definition at line 3518 of file Swnd.cpp.

◆ IsDisabled()

BOOL SWindow::IsDisabled ( BOOL bCheckParent = FALSE)

Checks if the window is disabled.

Parameters
bCheckParentFlag to check the parent window's state.
Returns
TRUE if the window is disabled, FALSE otherwise.

Definition at line 638 of file Swnd.cpp.

◆ IsDisplay()

BOOL SWindow::IsDisplay ( )

Checks if the window is displayed.

Returns
TRUE if the window is displayed, FALSE otherwise.

Definition at line 3436 of file Swnd.cpp.

◆ IsDrawToCache()

bool SWindow::IsDrawToCache ( ) const
protectedvirtual

Checks if the window content is being drawn to the cache.

IsDrawToCache

Returns
bool – True if drawing to cache.

Describe Indicates whether the current rendering operation targets the cache.

Definition at line 2992 of file Swnd.cpp.

◆ IsFloat()

BOOL SWindow::IsFloat ( )

Checks if the window is floating.

Returns
TRUE if the window is floating, FALSE otherwise.

Definition at line 3431 of file Swnd.cpp.

◆ IsFocusable()

BOOL SWindow::IsFocusable ( )

Checks if the window is focusable.

Returns
TRUE if the window is focusable, FALSE otherwise.

Definition at line 1996 of file Swnd.cpp.

◆ IsFocused()

BOOL SWindow::IsFocused ( )

Checks if the window has focus.

Returns
TRUE if the window has focus, FALSE otherwise.

Definition at line 2639 of file Swnd.cpp.

◆ IsLayeredWindow()

BOOL SWindow::IsLayeredWindow ( ) const
protectedvirtual

Determines if the window requires a render layer.

IsLayeredWindow

Returns
BOOL – TRUE if a render layer is needed.

Describe Indicates whether the window uses layered rendering.

Reimplemented in SRootWindow.

Definition at line 2299 of file Swnd.cpp.

◆ IsLayoutDirty()

BOOL SWindow::IsLayoutDirty ( )

Checks if the layout is dirty.

Returns
TRUE if the layout is dirty, FALSE otherwise.

Definition at line 3451 of file Swnd.cpp.

◆ IsMsgHandled()

BOOL SWindow::IsMsgHandled ( ) const

Checks if the message is handled.

Returns
TRUE if the message is handled, FALSE otherwise.

Definition at line 207 of file Swnd.cpp.

◆ IsMsgTransparent()

BOOL SWindow::IsMsgTransparent ( )

Checks if the window is message transparent.

Returns
TRUE if the window is message transparent, FALSE otherwise.

Definition at line 711 of file Swnd.cpp.

◆ IsSiblingsAutoGroupped()

BOOL SWindow::IsSiblingsAutoGroupped ( )

Checks if siblings are auto-grouped.

Returns
TRUE if siblings are auto-grouped, FALSE otherwise.

Definition at line 3441 of file Swnd.cpp.

◆ IsUpdateLocked()

BOOL SWindow::IsUpdateLocked ( BOOL bCheckParent = FALSE)

Checks if updates to the window are locked.

Parameters
bCheckParentFlag to check the parent window's state.
Returns
TRUE if updates are locked, FALSE otherwise.

Definition at line 1503 of file Swnd.cpp.

◆ IsVideoCanvas()

BOOL SWindow::IsVideoCanvas ( )

Checks if the window is a video canvas.

Returns
TRUE if the window is a video canvas, FALSE otherwise.

Definition at line 3656 of file Swnd.cpp.

◆ IsVisible()

BOOL SWindow::IsVisible ( BOOL bCheckParent = FALSE)

Checks if the window is visible.

Parameters
bCheckParentFlag to check the parent window's state.
Returns
TRUE if the window is visible, FALSE otherwise.

Definition at line 646 of file Swnd.cpp.

◆ KillFocus()

void SWindow::KillFocus ( )

Kills the focus from the window.

Definition at line 2629 of file Swnd.cpp.

◆ KillTimer()

BOOL SWindow::KillTimer ( char id)

Kills a timer for the window.

Parameters
idTimer ID.
Returns
TRUE if successful, FALSE otherwise.

Definition at line 483 of file Swnd.cpp.

◆ LockUpdate()

void SWindow::LockUpdate ( )

Locks updates to the window.

Definition at line 1492 of file Swnd.cpp.

◆ MarkCacheDirty()

void SWindow::MarkCacheDirty ( bool bDirty)
protected

Marks the cache as dirty.

MarkCacheDirty

Parameters
boolbDirty – Dirty state to set.
Returns
void

Describe Sets the cache's dirty flag to indicate it needs updating.

Definition at line 2733 of file Swnd.cpp.

◆ MeasureChildren()

SIZE SWindow::MeasureChildren ( int nParentWid,
int nParentHei )
virtual

Measures the size of all child windows.

Parameters
nParentWidThe width of the parent window.
nParentHeiThe height of the parent window.
Returns
SIZE The measured size of the children.

Reimplemented in SStackView.

Definition at line 1956 of file Swnd.cpp.

◆ MeasureContent()

SIZE SWindow::MeasureContent ( int nParentWid,
int nParentHei )
virtual

Measures the size of the content within the window.

Parameters
nParentWidThe width of the parent window.
nParentHeiThe height of the parent window.
Returns
SIZE The measured size of the content.

Reimplemented in SAnimateImgWnd, SCheckBox, SIconWnd, SImageButton, SImageWnd, SRadioBox, and SToggle.

Definition at line 1925 of file Swnd.cpp.

◆ ModifyState()

DWORD SWindow::ModifyState ( DWORD dwStateAdd,
DWORD dwStateRemove,
BOOL bUpdate = FALSE )

Modifies the state of the window.

Parameters
dwStateAddState flags to add.
dwStateRemoveState flags to remove.
bUpdateFlag to indicate if the state change should be updated.
Returns
Modified state flags.

Definition at line 443 of file Swnd.cpp.

◆ Move()

void SWindow::Move ( LPCRECT prect)

Moves the window to a new position and size.

Parameters
prectPointer to the rectangle defining the new position and size.

Definition at line 399 of file Swnd.cpp.

◆ Move2()

void SWindow::Move2 ( int x,
int y,
int cx = -1,
int cy = -1 )

Moves the window to a new position and optionally resizes it.

Parameters
xNew X-coordinate of the window.
yNew Y-coordinate of the window.
cxNew width of the window (-1 to keep the current width).
cyNew height of the window (-1 to keep the current height).

Definition at line 417 of file Swnd.cpp.

◆ NeedRedrawWhenStateChange()

BOOL SWindow::NeedRedrawWhenStateChange ( )
virtual

Determine if redraw is needed on state change.

NeedRedrawWhenStateChange

Reimplemented in SButton, SCheckBox, SRadioBox, SRealWnd, SSpinButtonCtrl, SSwitch, and SToggle.

Definition at line 1086 of file Swnd.cpp.

◆ OnAfterInsertChild()

void SWindow::OnAfterInsertChild ( SWindow * pChild)
protectedvirtual

Called after a child window has been inserted into this window.

Parameters
pChildPointer to the child window that was inserted.

Reimplemented in SRadioGroup, and SStackView.

Definition at line 3395 of file Swnd.cpp.

◆ OnAfterRemoveChild()

void SWindow::OnAfterRemoveChild ( SWindow * pChild)
protectedvirtual

Called after a child window has been removed from this window.

Parameters
pChildPointer to the child window that was removed.

Reimplemented in SStackView.

Definition at line 3403 of file Swnd.cpp.

◆ OnAnimationInvalidate()

void SWindow::OnAnimationInvalidate ( IAnimation * pAni,
bool bErase )
protectedvirtual

Called when an animation requires a redraw.

Parameters
pAniPointer to the animation object.
bEraseTRUE if the background should be erased; otherwise, FALSE.

Reimplemented in SRootWindow.

Definition at line 3381 of file Swnd.cpp.

◆ OnAnimationPauseChange()

void SWindow::OnAnimationPauseChange ( IAnimation * animation,
BOOL bPaused )
protected

Called when the pause state of an animation changes.

Parameters
animationPointer to the animation object.
bPausedTRUE if the animation is paused; otherwise, FALSE.

Definition at line 3671 of file Swnd.cpp.

◆ OnAnimationRepeat()

void SWindow::OnAnimationRepeat ( IAnimation * animation)
protected

Called when an animation repeats.

Parameters
animationPointer to the animation object.

Definition at line 3374 of file Swnd.cpp.

◆ OnAnimationStart()

void SWindow::OnAnimationStart ( IAnimation * animation)
protected

Called when an animation starts.

Parameters
animationPointer to the animation object.

Definition at line 3351 of file Swnd.cpp.

◆ OnAnimationStop()

void SWindow::OnAnimationStop ( IAnimation * animation)
protected

Called when an animation stops.

Parameters
animationPointer to the animation object.

Definition at line 3362 of file Swnd.cpp.

◆ OnAttrAlpha()

HRESULT SWindow::OnAttrAlpha ( const SStringW & strValue,
BOOL bLoading )
protected

Handles the 'alpha' attribute.

OnAttrAlpha

Parameters
constSStringW &strValue – Attribute value.
BOOLbLoading – TRUE during loading, FALSE otherwise.
Returns
HRESULT – Result of attribute processing.

Describe This method processes the 'alpha' attribute.

Definition at line 2891 of file Swnd.cpp.

◆ OnAttrCache()

HRESULT SWindow::OnAttrCache ( const SStringW & strValue,
BOOL bLoading )
protected

Handles the 'cache' attribute.

OnAttrCache

Parameters
constSStringW &strValue – Attribute value.
BOOLbLoading – TRUE during loading, FALSE otherwise.
Returns
HRESULT – Result of attribute processing.

Describe This method processes the 'cache' attribute.

Definition at line 2879 of file Swnd.cpp.

◆ OnAttrClass()

HRESULT SWindow::OnAttrClass ( const SStringW & strValue,
BOOL bLoading )
protected

Handles the 'class' attribute.

OnAttrClass

Parameters
constSStringW &strValue – Attribute value.
BOOLbLoading – TRUE during loading, FALSE otherwise.
Returns
HRESULT – Result of attribute processing.

Describe This method processes the 'class' attribute.

Definition at line 2789 of file Swnd.cpp.

◆ OnAttrDisplay()

HRESULT SWindow::OnAttrDisplay ( const SStringW & strValue,
BOOL bLoading )
protected

Handles the 'display' attribute.

OnAttrDisplay

Parameters
constSStringW &strValue – Attribute value.
BOOLbLoading – TRUE during loading, FALSE otherwise.
Returns
HRESULT – Result of attribute processing.

Describe This method processes the 'display' attribute.

Definition at line 2766 of file Swnd.cpp.

◆ OnAttrEnable()

HRESULT SWindow::OnAttrEnable ( const SStringW & strValue,
BOOL bLoading )
protected

Handles the 'enable' attribute.

OnAttrEnable

Parameters
constSStringW &strValue – Attribute value.
BOOLbLoading – TRUE during loading, FALSE otherwise.
Returns
HRESULT – Result of attribute processing.

Describe This method processes the 'enable' attribute.

Definition at line 2749 of file Swnd.cpp.

◆ OnAttrID()

HRESULT SWindow::OnAttrID ( const SStringW & strValue,
BOOL bLoading )
protected

Handles the 'id' attribute.

OnAttrID

Parameters
constSStringW &strValue – Attribute value.
BOOLbLoading – TRUE during loading, FALSE otherwise.
Returns
HRESULT – Result of attribute processing.

Describe This method processes the 'id' attribute.

Definition at line 2898 of file Swnd.cpp.

◆ OnAttrLayout()

HRESULT SWindow::OnAttrLayout ( const SStringW & strValue,
BOOL bLoading )
protected

Handles the 'layout' attribute.

OnAttrLayout

Parameters
constSStringW &strValue – Attribute value.
BOOLbLoading – TRUE during loading, FALSE otherwise.
Returns
HRESULT – Result of attribute processing.

Describe This method processes the 'layout' attribute.

Definition at line 3177 of file Swnd.cpp.

◆ OnAttrName()

HRESULT SWindow::OnAttrName ( const SStringW & strValue,
BOOL bLoading )
protected

Handles the 'name' attribute.

OnAttrName

Parameters
constSStringW &strValue – Attribute value.
BOOLbLoading – TRUE during loading, FALSE otherwise.
Returns
HRESULT – Result of attribute processing.

Describe This method processes the 'name' attribute.

Definition at line 2934 of file Swnd.cpp.

◆ OnAttrSkin()

HRESULT SWindow::OnAttrSkin ( const SStringW & strValue,
BOOL bLoading )
protected

Handles the 'skin' attribute.

OnAttrSkin

Parameters
constSStringW &strValue – Attribute value.
BOOLbLoading – TRUE during loading, FALSE otherwise.
Returns
HRESULT – Result of attribute processing.

Describe This method processes the 'skin' attribute.

Definition at line 2776 of file Swnd.cpp.

◆ OnAttrText()

HRESULT SWindow::OnAttrText ( const SStringW & strValue,
BOOL bLoading )
protected

Handles the 'text' attribute.

OnAttrText

Parameters
constSStringW &strValue – Attribute value.
BOOLbLoading – TRUE during loading, FALSE otherwise.
Returns
HRESULT – Result of attribute processing.

Describe This method processes the 'text' attribute.

Definition at line 2967 of file Swnd.cpp.

◆ OnAttrTip()

HRESULT SWindow::OnAttrTip ( const SStringW & strValue,
BOOL bLoading )
protected

Handles the 'tip' attribute.

OnAttrTip

Parameters
constSStringW &strValue – Attribute value.
BOOLbLoading – TRUE during loading, FALSE otherwise.
Returns
HRESULT – Result of attribute processing.

Describe This method processes the 'tip' attribute.

Definition at line 2949 of file Swnd.cpp.

◆ OnAttrTrackMouseEvent()

HRESULT SWindow::OnAttrTrackMouseEvent ( const SStringW & strValue,
BOOL bLoading )
protected

Handles the 'trackMouseEvent' attribute.

OnAttrTrackMouseEvent

Parameters
constSStringW &strValue – Attribute value.
BOOLbLoading – TRUE during loading, FALSE otherwise.
Returns
HRESULT – Result of attribute processing.

Describe This method processes the 'trackMouseEvent' attribute.

Definition at line 2812 of file Swnd.cpp.

◆ OnAttrVideoCanvas()

HRESULT SWindow::OnAttrVideoCanvas ( const SStringW & strValue,
BOOL bLoading )
protected

Handles the 'videoCanvas' attribute.

OnAttrVideoCanvas

Parameters
constSStringW &strValue – Attribute value.
BOOLbLoading – TRUE during loading, FALSE otherwise.
Returns
HRESULT – Result of attribute processing.

Describe This method processes the 'videoCanvas' attribute.

Definition at line 2828 of file Swnd.cpp.

◆ OnAttrVisible()

HRESULT SWindow::OnAttrVisible ( const SStringW & strValue,
BOOL bLoading )
protected

Handles the 'visible' attribute.

OnAttrVisible

Parameters
constSStringW &strValue – Attribute value.
BOOLbLoading – TRUE during loading, FALSE otherwise.
Returns
HRESULT – Result of attribute processing.

Describe This method processes the 'visible' attribute.

Definition at line 2739 of file Swnd.cpp.

◆ OnBeforeInsertChild()

void SWindow::OnBeforeInsertChild ( SWindow * pChild)
protectedvirtual

Called before a child window is inserted into this window.

Parameters
pChildPointer to the child window being inserted.

Definition at line 3399 of file Swnd.cpp.

◆ OnBeforeRemoveChild()

void SWindow::OnBeforeRemoveChild ( SWindow * pChild)
protectedvirtual

Called before a child window is removed from this window.

Parameters
pChildPointer to the child window being removed.

Reimplemented in SRadioGroup.

Definition at line 3391 of file Swnd.cpp.

◆ OnCaptureChanged()

void SWindow::OnCaptureChanged ( BOOL bCaptured)
protectedvirtual

Called when the capture state of the window changes.

Parameters
bCapturedTRUE if the window has captured the mouse; otherwise, FALSE.

Definition at line 2477 of file Swnd.cpp.

◆ OnColorize()

void SWindow::OnColorize ( COLORREF cr)
protectedvirtual

Adjusts the color tone of the window.

Parameters
crThe color reference used for colorization.

Reimplemented in SAnimateImgWnd, SCheckBox, SHeaderCtrl, SImageWnd, SMCListView, SPanel, SProgress, SRadioBox, SSliderBar, SSpinButtonCtrl, STabCtrl, STileView, and STreeView.

Definition at line 3154 of file Swnd.cpp.

◆ OnCommitSurface()

void SWindow::OnCommitSurface ( IRenderTarget * pRtDest,
LPCRECT pRcDest,
IRenderTarget * pRtSrc,
LPCRECT pRcSrc,
BYTE alpha )
protectedvirtual

Commits surface changes.

OnCommitSurface

Parameters
IRenderTarget* pRtDest – Destination RenderTarget.
LPCRECTpRcDest – Destination rectangle.
IRenderTarget*pRtSrc – Source RenderTarget.
LPCRECTpRcSrc – Source rectangle.
BYTEalpha – Alpha value for blending.
Returns
void

Describe Applies surface changes with optional alpha blending.

Definition at line 3577 of file Swnd.cpp.

◆ OnContainerChanged()

void SWindow::OnContainerChanged ( ISwndContainer * pOldContainer,
ISwndContainer * pNewContainer )
protectedvirtual

Called when the container of the window changes.

Parameters
pOldContainerPointer to the old container.
pNewContainerPointer to the new container.

Reimplemented in SAnimateImgWnd, SButton, SPanel, and SStackView.

Definition at line 3407 of file Swnd.cpp.

◆ OnContentChanged()

void SWindow::OnContentChanged ( )
protectedvirtual

Called when the content of the window changes.

Definition at line 329 of file Swnd.cpp.

◆ OnCreate()

int SWindow::OnCreate ( LPVOID )
protected

Handles the creation of the window.

OnCreate

Parameters
LPVOID– Pointer to creation data.
Returns
int – Result of the creation process.

Describe This method is called when the window is created.

Definition at line 1654 of file Swnd.cpp.

◆ OnDestroy()

void SWindow::OnDestroy ( )
protected

Handles the destruction of the window.

OnDestroy

Returns
void

Describe This method is called when the window is destroyed.

Definition at line 1701 of file Swnd.cpp.

◆ OnEnable()

void SWindow::OnEnable ( BOOL bEnable,
UINT nStatus )
protected

Handles enabling or disabling the window.

OnEnable

Parameters
BOOLbEnable – TRUE to enable, FALSE to disable.
UINTnStatus – Enable status flags.
Returns
void

Describe This method is called when the window is enabled or disabled.

Definition at line 2059 of file Swnd.cpp.

◆ OnEraseBkgnd()

BOOL SWindow::OnEraseBkgnd ( IRenderTarget * pRT)
protected

Handles the erasing of the background.

OnEraseBkgnd

Parameters
IRenderTarget*pRT – RenderTarget for drawing.
Returns
BOOL – TRUE if the background was erased.

Describe This method is called to erase the background before painting.

Definition at line 1733 of file Swnd.cpp.

◆ OnFinalRelease()

void SWindow::OnFinalRelease ( )

Called when the last reference to the object is released.

Definition at line 198 of file Swnd.cpp.

◆ OnGetDlgCode()

UINT SWindow::OnGetDlgCode ( )

Retrieves the dialog code for the window.

Returns
Dialog code.

Definition at line 1991 of file Swnd.cpp.

◆ OnKillFocus()

void SWindow::OnKillFocus ( SWND wndFocus)
protected

Handles losing focus.

OnKillFocus

Parameters
SWNDwndFocus – Handle of the new focused window.
Returns
void

Describe This method is called when the window loses focus.

Definition at line 2274 of file Swnd.cpp.

◆ OnLanguageChanged()

HRESULT SWindow::OnLanguageChanged ( )
protectedvirtual

Called when the language of the window changes.

Returns
HRESULT Result of the operation.

Reimplemented in SCalendar, SComboBox, SComboView, SHeaderCtrl, SListBox, SMCListView, SRootWindow, STabCtrl, STileView, and STreeView.

Definition at line 3229 of file Swnd.cpp.

◆ OnLButtonDbClick()

void SWindow::OnLButtonDbClick ( UINT nFlags,
CPoint point )
protected

Handles the left mouse button double-click event.

OnLButtonDbClick

Parameters
UINTnFlags – Mouse flags.
CPointpoint – Mouse position.
Returns
void

Describe This method is called when the left mouse button is double-clicked.

Definition at line 2100 of file Swnd.cpp.

◆ OnLButtonDown()

void SWindow::OnLButtonDown ( UINT nFlags,
CPoint pt )
protected

Handles the left mouse button down event.

OnLButtonDown

Parameters
UINTnFlags – Mouse flags.
CPointpt – Mouse position.
Returns
void

Describe This method is called when the left mouse button is pressed.

Definition at line 2092 of file Swnd.cpp.

◆ OnLButtonUp()

void SWindow::OnLButtonUp ( UINT nFlags,
CPoint pt )
protected

Handles the left mouse button up event.

OnLButtonUp

Parameters
UINTnFlags – Mouse flags.
CPointpt – Mouse position.
Returns
void

Describe This method is called when the left mouse button is released.

Definition at line 2105 of file Swnd.cpp.

◆ OnMouseClick()

LRESULT SWindow::OnMouseClick ( UINT uMsg,
WPARAM wParam,
LPARAM lParam )
protected

Handles general mouse click events.

OnMouseClick

Parameters
UINTuMsg – Message identifier.
WPARAMwParam – Additional message parameter.
LPARAMlParam – Additional message parameter.
Returns
LRESULT – Result of the message processing.

Describe This method handles a range of mouse click messages.

Definition at line 2167 of file Swnd.cpp.

◆ OnMouseHover()

void SWindow::OnMouseHover ( UINT nFlags,
CPoint ptPos )
protected

Handles the mouse hover event.

OnMouseHover

Parameters
UINTnFlags – Mouse flags.
CPointptPos – Mouse position.
Returns
void

Describe This method is called when the mouse hovers over the window.

Definition at line 2135 of file Swnd.cpp.

◆ OnMouseLeave()

void SWindow::OnMouseLeave ( )
protected

Handles the mouse leave event.

OnMouseLeave

Returns
void

Describe This method is called when the mouse leaves the window.

Definition at line 2147 of file Swnd.cpp.

◆ OnMouseMove()

void SWindow::OnMouseMove ( UINT nFlags,
CPoint pt )
protected

Handles the mouse move event.

OnMouseMove

Parameters
UINTnFlags – Mouse flags.
CPointpt – Mouse position.
Returns
void

Describe This method is called when the mouse moves over the window.

Definition at line 2131 of file Swnd.cpp.

◆ OnMouseWheel()

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

Handles the mouse wheel event.

OnMouseWheel

Parameters
UINTnFlags – Mouse flags.
shortzDelta – Wheel delta.
CPointpt – Mouse position.
Returns
BOOL – TRUE if the event was handled.

Describe This method is called when the mouse wheel is moved.

Definition at line 2159 of file Swnd.cpp.

◆ OnNcHitTest()

BOOL SWindow::OnNcHitTest ( CPoint pt)
virtual

Non-client area hit test.

OnNcHitTest

Parameters
ptPoint coordinates
Returns
BOOL TRUE if the point is within the non-client area; otherwise, FALSE

Reimplemented in SPanel.

Definition at line 2647 of file Swnd.cpp.

◆ OnNcPaint()

void SWindow::OnNcPaint ( IRenderTarget * pRT)
protected

Handles the painting of the non-client area.

OnNcPaint

Parameters
IRenderTarget*pRT – RenderTarget for drawing.
Returns
void

Describe This method is called to paint the non-client area of the window.

Definition at line 1805 of file Swnd.cpp.

◆ OnPaint()

void SWindow::OnPaint ( IRenderTarget * pRT)
protected

Handles the painting of the window.

OnPaint

Parameters
IRenderTarget*pRT – RenderTarget for drawing.
Returns
void

Describe This method is called to paint the window content.

Definition at line 1785 of file Swnd.cpp.

◆ OnRButtonDown()

void SWindow::OnRButtonDown ( UINT nFlags,
CPoint point )
protected

Handles the right mouse button down event.

OnRButtonDown

Parameters
UINTnFlags – Mouse flags.
CPointpoint – Mouse position.
Returns
void

Describe This method is called when the right mouse button is pressed.

Definition at line 2122 of file Swnd.cpp.

◆ OnRButtonUp()

void SWindow::OnRButtonUp ( UINT nFlags,
CPoint point )
protected

Handles the right mouse button up event.

OnRButtonUp

Parameters
UINTnFlags – Mouse flags.
CPointpoint – Mouse position.
Returns
void

Describe This method is called when the right mouse button is released.

Definition at line 2126 of file Swnd.cpp.

◆ OnRebuildFont()

void SWindow::OnRebuildFont ( )
protectedvirtual

Called when the font of the window needs to be rebuilt.

Reimplemented in SMCListView, SRichEdit, STileView, and STreeView.

Definition at line 3303 of file Swnd.cpp.

◆ OnRelayout()

BOOL SWindow::OnRelayout ( const CRect & rcWnd)
protectedvirtual

Handles window position changes during layout updates.

Parameters
rcWndThe new window rectangle.
Returns
BOOL TRUE if the relayout was handled successfully; otherwise, FALSE.

Reimplemented in SHeaderCtrl, and SRealWnd.

Definition at line 1587 of file Swnd.cpp.

◆ OnScaleChanged()

void SWindow::OnScaleChanged ( int scale)
protectedvirtual

Called when the scale of the window changes.

Parameters
scaleThe new scale value.

Reimplemented in SAnimateImgWnd, SCheckBox, SComboBox, SComboView, SHeaderCtrl, SIconWnd, SImageWnd, SListBox, SMCListView, SPanel, SProgress, SRadioBox, SRichEdit, SRootWindow, SSliderBar, SSpinButtonCtrl, STabCtrl, STileView, and STreeView.

Definition at line 3271 of file Swnd.cpp.

◆ OnSetColorize()

LRESULT SWindow::OnSetColorize ( UINT uMsg,
WPARAM wParam,
LPARAM lParam )
protected

Handles setting the colorization of the window.

OnSetColorize

Parameters
UINTuMsg – Message identifier.
WPARAMwParam – Colorization value.
LPARAMlParam – Reserved.
Returns
LRESULT – Result of the message processing.

Describe This method applies colorization to the window.

Definition at line 3148 of file Swnd.cpp.

◆ OnSetCursor()

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

Sets the cursor when the mouse hovers over the window.

Parameters
ptThe point where the cursor is set.
Returns
BOOL TRUE if the cursor was set successfully; otherwise, FALSE.

Reimplemented in SHeaderCtrl, SLink, SMCListView, SRichEdit, SSplitWnd, STileView, and STreeView.

Definition at line 429 of file Swnd.cpp.

◆ OnSetFocus()

void SWindow::OnSetFocus ( SWND wndOld)
protected

Handles gaining focus.

OnSetFocus

Parameters
SWNDwndOld – Handle of the previous focused window.
Returns
void

Describe This method is called when the window gains focus.

Definition at line 2265 of file Swnd.cpp.

◆ OnSetLanguage()

LRESULT SWindow::OnSetLanguage ( UINT uMsg,
WPARAM wParam,
LPARAM lParam )
protected

Handles setting the language of the window.

OnSetLanguage

Parameters
UINTuMsg – Message identifier.
WPARAMwParam – Language identifier.
LPARAMlParam – Reserved.
Returns
LRESULT – Result of the message processing.

Describe This method changes the language of the window.

Definition at line 2289 of file Swnd.cpp.

◆ OnSetScale()

LRESULT SWindow::OnSetScale ( UINT uMsg,
WPARAM wParam,
LPARAM lParam )
protected

Handles setting the scale of the window.

OnSetScale

Parameters
UINTuMsg – Message identifier.
WPARAMwParam – Scale factor.
LPARAMlParam – Reserved.
Returns
LRESULT – Result of the message processing.

Describe This method adjusts the window's scale.

Definition at line 2282 of file Swnd.cpp.

◆ OnShowWindow()

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

Handles showing or hiding the window.

OnShowWindow

Parameters
BOOLbShow – TRUE to show, FALSE to hide.
UINTnStatus – Show status flags.
Returns
void

Describe This method is called when the window is shown or hidden.

Definition at line 2001 of file Swnd.cpp.

◆ OnSize()

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

Handles the resizing of the window.

OnSize

Parameters
UINTnType – Resize type.
CSizesize – New size of the window.
Returns
void

Describe This method is called when the window is resized.

Definition at line 2844 of file Swnd.cpp.

◆ OnStateChanged()

void SWindow::OnStateChanged ( DWORD dwOldState,
DWORD dwNewState )
protectedvirtual

Called after the state of the window changes.

Parameters
dwOldStateThe old state flags.
dwNewStateThe new state flags.

Reimplemented in SButton.

Definition at line 3001 of file Swnd.cpp.

◆ OnStateChanging()

void SWindow::OnStateChanging ( DWORD dwOldState,
DWORD dwNewState )
protectedvirtual

Called before the state of the window changes.

Parameters
dwOldStateThe old state flags.
dwNewStateThe new state flags.

Reimplemented in SRadioBox.

Definition at line 2997 of file Swnd.cpp.

◆ OnUpdateFloatPosition()

virtual void SWindow::OnUpdateFloatPosition ( const CRect & rcParent)
inlinevirtual

Update floating window position.

OnUpdateFloatPosition

Definition at line 1660 of file SWnd.h.

◆ OnUpdateFont()

LRESULT SWindow::OnUpdateFont ( UINT uMsg,
WPARAM wParam,
LPARAM lParam )
protected

Handles updating the font of the window.

OnUpdateFont

Parameters
UINTuMsg – Message identifier.
WPARAMwParam – Font update parameter.
LPARAMlParam – Reserved.
Returns
LRESULT – Result of the message processing.

Describe This method updates the font used by the window.

Definition at line 3171 of file Swnd.cpp.

◆ PaintBackground()

void SWindow::PaintBackground ( IRenderTarget * pRT,
LPRECT pRc )

Draws the background content of the window.

PaintBackground

Parameters
IRenderTarget* pRT – Target RenderTarget.
LPRECTpRc – Target rectangle within the window.
Returns
void

Describe The target rectangle must lie within the window's bounds.

Definition at line 2673 of file Swnd.cpp.

◆ PaintForeground()

void SWindow::PaintForeground ( IRenderTarget * pRT,
LPRECT pRc,
SWindow * pStartFrom = NULL )

Draws the foreground content of the window.

PaintForeground

Parameters
IRenderTarget* pRT – Target RenderTarget.
LPRECTpRc – Target rectangle within the window.
SWindow*pStartFrom – Starting window for drawing; defaults to root.
Returns
void

Describe The target rectangle must lie within the window's bounds, excluding child windows.

Definition at line 2694 of file Swnd.cpp.

◆ QueryInterface()

HRESULT SWindow::QueryInterface ( REFGUID id,
IObjRef ** ppRet )

Queries an interface.

Parameters
idInterface ID.
ppRetPointer to receive the interface pointer.
Returns
HRESULT indicating success or failure.

Definition at line 3572 of file Swnd.cpp.

◆ RedrawRegion()

void SWindow::RedrawRegion ( IRenderTarget * pRT,
IRegionS * pRgn )

Renders the content of the window and its child windows onto the RenderTarget.

RedrawRegion

Parameters
IRenderTarget* pRT – Target RenderTarget.
IRegion* pRgn – Region to render; NULL renders the entire window.
Returns
void

Describe This method redraws the specified region or the entire window if no region is provided.

Definition at line 1422 of file Swnd.cpp.

◆ RegisterDragDrop()

BOOL SWindow::RegisterDragDrop ( IDropTarget * pDragTarget)

Registers a drop target for the window.

Parameters
pDragTargetPointer to the drop target.
Returns
TRUE if successful, FALSE otherwise.

Definition at line 3661 of file Swnd.cpp.

◆ ReleaseCapture()

BOOL SWindow::ReleaseCapture ( )

Releases the mouse capture from the window.

Returns
TRUE if successful, FALSE otherwise.

Definition at line 2491 of file Swnd.cpp.

◆ ReleaseRenderTarget()

void SWindow::ReleaseRenderTarget ( IRenderTarget * pRT)

Releases the RenderTarget obtained via GetRenderTarget.

ReleaseRenderTarget

Parameters
IRenderTarget* pRT – RenderTarget to release.
Returns
void

Describe This method ensures proper cleanup of the RenderTarget resources.

Definition at line 2372 of file Swnd.cpp.

◆ RemoveChild()

BOOL SWindow::RemoveChild ( SWindow * pChild)

Removes a child window from the window tree.

Parameters
pChildPointer to the child window to remove.
Returns
BOOL TRUE if successful; otherwise, FALSE.

The removed child will not be automatically released.

Definition at line 602 of file Swnd.cpp.

◆ RemoveEvent()

BOOL SWindow::RemoveEvent ( DWORD dwEventID)

Removes an event handler.

Parameters
dwEventIDEvent ID.
Returns
TRUE if successful, FALSE otherwise.

Definition at line 3631 of file Swnd.cpp.

◆ RemoveIChild()

BOOL SWindow::RemoveIChild ( IWindow * pChild)

Removes a child window from the window tree.

Parameters
pChildPointer to the child window to remove.
Returns
TRUE if successful, FALSE otherwise.

Definition at line 3542 of file Swnd.cpp.

◆ RequestRelayout() [1/2]

void SWindow::RequestRelayout ( )

Requests a relayout of the window.

Definition at line 2225 of file Swnd.cpp.

◆ RequestRelayout() [2/2]

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

Request layout update.

RequestRelayout

Reimplemented in SRootWindow.

Definition at line 2230 of file Swnd.cpp.

◆ SDispatchMessage()

void SWindow::SDispatchMessage ( UINT uMsg,
WPARAM wParam = 0,
LPARAM lParam = 0 )

Dispatches a message to the window.

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

Definition at line 388 of file Swnd.cpp.

◆ SetAlpha()

void SWindow::SetAlpha ( BYTE byAlpha)

Sets the alpha value for the window.

Parameters
byAlphaAlpha value.

Definition at line 2596 of file Swnd.cpp.

◆ SetAnimation()

void SWindow::SetAnimation ( IAnimation * animation)

Sets an animation for the window.

Parameters
animationPointer to the animation object.

Sets the next animation to play for this view. If you want the animation to play immediately, use startAnimation(android.view.animation.Animation) instead. This method provides allows fine-grained control over the start time and invalidation, but you must make sure that 1) the animation has a start time set, and 2) the view's parent (which controls animations on its children) will be invalidated when the animation is supposed to start.

Parameters
animationThe next animation, or null.

Definition at line 2512 of file Swnd.cpp.

◆ SetAttribute()

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

◆ SetCapture()

SWND SWindow::SetCapture ( )

Sets the window to capture the mouse.

Returns
Window handle of the window that now has capture.

Definition at line 2484 of file Swnd.cpp.

◆ SetCaretPos()

void SWindow::SetCaretPos ( int x,
int y )

Sets the caret position.

Parameters
xX-coordinate of the caret position.
yY-coordinate of the caret position.

Definition at line 3077 of file Swnd.cpp.

◆ SetCheck()

void SWindow::SetCheck ( BOOL bCheck)

Sets the check state of the window.

Parameters
bCheckTRUE to check the window, FALSE to uncheck.

Definition at line 671 of file Swnd.cpp.

◆ SetContainer()

void SWindow::SetContainer ( ISwndContainer * pContainer)

Sets the container for the window.

Parameters
pContainerPointer to the container object.

Definition at line 689 of file Swnd.cpp.

◆ SetEventMute()

void SWindow::SetEventMute ( BOOL bMute)

Sets the event mute state.

Parameters
bMuteFlag to indicate if events should be muted.

Definition at line 324 of file Swnd.cpp.

◆ SetFocus()

void SWindow::SetFocus ( )

Sets the focus to the window.

Definition at line 2620 of file Swnd.cpp.

◆ SetIOwner()

void SWindow::SetIOwner ( IWindow * pOwner)

Sets the owner window.

Parameters
pOwnerPointer to the owner window.

Definition at line 3552 of file Swnd.cpp.

◆ SetLayoutParam()

BOOL SWindow::SetLayoutParam ( ILayoutParam * pLayoutParam)

Sets the layout parameter object for the window.

Parameters
pLayoutParamPointer to the layout parameter object.
Returns
TRUE if successful, FALSE otherwise.

Definition at line 3342 of file Swnd.cpp.

◆ SetMatrix() [1/2]

void SWindow::SetMatrix ( const IMatrix * mtx)

Sets the transformation matrix for the window.

Parameters
mtxPointer to the transformation matrix.

Definition at line 2607 of file Swnd.cpp.

◆ SetMatrix() [2/2]

void SWindow::SetMatrix ( const SMatrix & mtx)

Sets the transformation matrix for the window.

Parameters
mtxReference to the transformation matrix.

Definition at line 2589 of file Swnd.cpp.

◆ SetMsgHandled()

void SWindow::SetMsgHandled ( BOOL bHandled)

Sets the message handled flag.

Parameters
bHandledMessage handled flag.

Definition at line 212 of file Swnd.cpp.

◆ SetOwner()

void SWindow::SetOwner ( SWindow * pOwner)

Sets the owner of the window.

Parameters
pOwnerPointer to the new owner window.

Definition at line 701 of file Swnd.cpp.

◆ SetSwndProc()

void SWindow::SetSwndProc ( FunSwndProc swndProc)

Sets the window procedure.

Parameters
swndProcWindow procedure function.

Definition at line 3611 of file Swnd.cpp.

◆ SetTimer()

BOOL SWindow::SetTimer ( char id,
UINT uElapse )

Sets a timer for the window.

Parameters
idTimer ID.
uElapseElapse time in milliseconds.
Returns
TRUE if successful, FALSE otherwise.

Definition at line 477 of file Swnd.cpp.

◆ SetToolTipText()

void SWindow::SetToolTipText ( LPCTSTR pszText)

Sets the tooltip text for the window.

Parameters
pszTextTooltip text to set.

Definition at line 3241 of file Swnd.cpp.

◆ SetToolTipTextU8()

void SWindow::SetToolTipTextU8 ( LPCSTR pszText)

Sets the tooltip text using a UTF-8 string.

Parameters
pszTextUTF-8 tooltip text to set.

Definition at line 3252 of file Swnd.cpp.

◆ SetUserData()

ULONG_PTR SWindow::SetUserData ( ULONG_PTR uData)

Sets the user data for the window.

Parameters
uDataUser data to set.
Returns
Previous user data.

Definition at line 470 of file Swnd.cpp.

◆ SetVisible()

void SWindow::SetVisible ( BOOL bVisible,
BOOL bUpdate = FALSE )

Sets the visibility of the window.

Parameters
bVisibleTRUE to make the window visible, FALSE to hide it.
bUpdateFlag to update the window state.

Definition at line 655 of file Swnd.cpp.

◆ SetWindowPath()

void SWindow::SetWindowPath ( IPathS * pPath,
BOOL bRedraw = TRUE )

Sets the window path.

Parameters
pPathPointer to the path object.
bRedrawFlag to redraw the window.

Definition at line 3131 of file Swnd.cpp.

◆ SetWindowRgn()

void SWindow::SetWindowRgn ( IRegionS * pRgn,
BOOL bRedraw = TRUE )

Sets the window region.

Parameters
pRgnPointer to the region object.
bRedrawFlag to redraw the window.

Definition at line 3114 of file Swnd.cpp.

◆ SetWindowText()

void SWindow::SetWindowText ( LPCTSTR lpszText)

Sets the window text.

Parameters
lpszTextText to set.

Definition at line 311 of file Swnd.cpp.

◆ SetWindowTextU8()

void SWindow::SetWindowTextU8 ( LPCSTR lpszText)

Sets the window text using a UTF-8 string.

Parameters
lpszTextUTF-8 text to set.

Definition at line 318 of file Swnd.cpp.

◆ ShowCaret()

void SWindow::ShowCaret ( BOOL bShow)

Shows or hides the caret.

Parameters
bShowFlag to indicate if the caret should be shown.

Definition at line 3066 of file Swnd.cpp.

◆ SSendMessage()

LRESULT SWindow::SSendMessage ( UINT uMsg,
WPARAM wParam = 0,
LPARAM lParam = 0,
BOOL * pbMsgHandled = NULL )

Sends a message to the window.

Parameters
uMsgMessage identifier.
wParamAdditional message-specific information.
lParamAdditional message-specific information.
pbMsgHandledPointer to receive the message handled flag.
Returns
Result of the message processing.

Definition at line 364 of file Swnd.cpp.

◆ StartAnimation()

void SWindow::StartAnimation ( IAnimation * animation)

Starts an animation for the window.

Parameters
animationPointer to the animation object.

Start the specified animation now.

Parameters
animationthe animation to start now

Definition at line 2549 of file Swnd.cpp.

◆ SubscribeEvent()

BOOL SWindow::SubscribeEvent ( DWORD evtId,
const IEvtSlot * pSlot )

Subscribes to an event.

Parameters
evtIdEvent ID.
pSlotEvent slot.
Returns
TRUE if successful, FALSE otherwise.

Definition at line 3562 of file Swnd.cpp.

◆ SwndFromPoint() [1/2]

SWND SWindow::SwndFromPoint ( CPoint & pt,
BOOL bIncludeMsgTransparent = false ) const
virtual

Get window from point.

SwndFromPoint

Parameters
ptPoint coordinates
bIncludeMsgTransparentInclude message transparency
Returns
SWND Window handle

Reimplemented in SFrame.

Definition at line 1051 of file Swnd.cpp.

◆ SwndFromPoint() [2/2]

SWND SWindow::SwndFromPoint ( POINT * pt,
BOOL bIncludeMsgTransparent = FALSE )

Retrieves the window handle at a specified point.

Parameters
ptPoint to test.
bIncludeMsgTransparentFlag to include message-transparent windows.
Returns
Window handle at the specified point.

◆ SwndProc()

BOOL SWindow::SwndProc ( UINT uMsg,
WPARAM wParam,
LPARAM lParam,
LRESULT * lResult )

Processes a window message.

Parameters
uMsgMessage identifier.
wParamAdditional message-specific information.
lParamAdditional message-specific information.
lResultPointer to receive the result of the message processing.
Returns
TRUE if the message was handled, FALSE otherwise.

Definition at line 3592 of file Swnd.cpp.

◆ TestMainThread()

void SWindow::TestMainThread ( )
protected

Tests if the current thread is the main UI thread.

Definition at line 345 of file Swnd.cpp.

◆ tr()

SStringW SWindow::tr ( const SStringW & strSrc) const
virtual

Translation function.

tr

Parameters
strSrcSource string
Returns
SStringW Translated string

Definition at line 940 of file Swnd.cpp.

◆ TransformPoint()

void SWindow::TransformPoint ( CPoint & pt) const

Transforms a point based on the current window's transformation matrix.

TransformPoint

Parameters
CPoint&pt – Point to transform.
Returns
void

Describe Applies the transformation matrix to the point.

Definition at line 1377 of file Swnd.cpp.

◆ TransformPointEx()

void SWindow::TransformPointEx ( CPoint & pt) const

Extends the transformation of a point.

TransformPointEx

Parameters
CPoint&pt – Point to transform.
Returns
void

Describe Provides additional transformations beyond the basic TransformPoint.

Definition at line 1395 of file Swnd.cpp.

◆ UnlockUpdate()

void SWindow::UnlockUpdate ( )

Unlocks updates to the window.

Definition at line 1497 of file Swnd.cpp.

◆ UnregisterDragDrop()

BOOL SWindow::UnregisterDragDrop ( )

Unregisters a drop target for the window.

Returns
TRUE if successful, FALSE otherwise.

Definition at line 3666 of file Swnd.cpp.

◆ UnsubscribeEvent()

BOOL SWindow::UnsubscribeEvent ( DWORD evtId,
const IEvtSlot * pSlot )

Unsubscribes from an event.

Parameters
evtIdEvent ID.
pSlotEvent slot.
Returns
TRUE if successful, FALSE otherwise.

Definition at line 3567 of file Swnd.cpp.

◆ Update()

void SWindow::Update ( BOOL bForce = FALSE)

Updates the window.

Parameters
bForceFlag to force the update.

Definition at line 1430 of file Swnd.cpp.

◆ UpdateCacheMode()

void SWindow::UpdateCacheMode ( )
protected

Updates the cache mode for the window.

Definition at line 2866 of file Swnd.cpp.

◆ UpdateChildrenPosition()

void SWindow::UpdateChildrenPosition ( )

Updates the position of child windows.

Definition at line 2189 of file Swnd.cpp.

◆ UpdateLayout()

void SWindow::UpdateLayout ( )

Updates the layout of the window.

Definition at line 2251 of file Swnd.cpp.

◆ UpdateToolTip()

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

Handle tooltip updates.

OnUpdateToolTip

Reimplemented in SMCListView, STabCtrl, STabPage, STileView, and STreeView.

Definition at line 277 of file Swnd.cpp.

Friends And Related Symbol Documentation

◆ FocusSearch

friend class FocusSearch
friend

Definition at line 293 of file SWnd.h.

◆ SGridLayout

friend class SGridLayout
friend

Definition at line 294 of file SWnd.h.

◆ SHostProxy

friend class SHostProxy
friend

Definition at line 297 of file SWnd.h.

◆ SHostWnd

friend class SHostWnd
friend

Definition at line 291 of file SWnd.h.

◆ SLinearLayout

friend class SLinearLayout
friend

Definition at line 295 of file SWnd.h.

◆ SouiLayout

friend class SouiLayout
friend

Definition at line 296 of file SWnd.h.

◆ SWindowRepos

friend class SWindowRepos
friend

Definition at line 290 of file SWnd.h.

◆ SwndContainerImpl

friend class SwndContainerImpl
friend

Definition at line 292 of file SWnd.h.

◆ SwndLayoutBuilder

friend class SwndLayoutBuilder
friend

Definition at line 289 of file SWnd.h.

Member Data Documentation

◆ m_animation

SAutoRefPtr<IAnimation> SWindow::m_animation
protected

Animation object.

Definition at line 2630 of file SWnd.h.

◆ m_animationHandler

SAnimationHandler SWindow::m_animationHandler
protected

Animation handler for the window.

Definition at line 2631 of file SWnd.h.

◆ m_attrStorage

SAutoRefPtr<IAttrStorage> SWindow::m_attrStorage
protected

Attribute storage object.

Definition at line 2646 of file SWnd.h.

◆ m_bCacheDirty

BOOL SWindow::m_bCacheDirty
protected

Indicates if the cache is dirty.

Definition at line 2612 of file SWnd.h.

◆ m_bCacheDraw

BOOL SWindow::m_bCacheDraw
protected

Indicates if the window content is cached.

Definition at line 2611 of file SWnd.h.

◆ m_bClipClient

BOOL SWindow::m_bClipClient
protected

Flag indicating if client area clipping is enabled.

Definition at line 2607 of file SWnd.h.

◆ m_bDisable

BOOL SWindow::m_bDisable
protected

Disabled state of the window.

Definition at line 2605 of file SWnd.h.

◆ m_bDisplay

BOOL SWindow::m_bDisplay
protected

Indicates if the window occupies space when hidden.

Definition at line 2606 of file SWnd.h.

◆ m_bDrawFocusRect

BOOL SWindow::m_bDrawFocusRect
protected

Indicates if the default focus rectangle should be drawn.

Definition at line 2610 of file SWnd.h.

◆ m_bFloat

BOOL SWindow::m_bFloat
protected

Indicates if the window position is fixed.

Definition at line 2578 of file SWnd.h.

◆ m_bFocusable

BOOL SWindow::m_bFocusable
protected

Indicates if the window can receive focus.

Definition at line 2609 of file SWnd.h.

◆ m_bHoverAware

BOOL SWindow::m_bHoverAware
protected

Hover-aware state flag.

Definition at line 2615 of file SWnd.h.

◆ m_bLayeredWindow

BOOL SWindow::m_bLayeredWindow
protected

Indicates if the window is layered.

Definition at line 2613 of file SWnd.h.

◆ m_bMsgHandled

BOOL SWindow::m_bMsgHandled
protected

Message handled flag.

Definition at line 2616 of file SWnd.h.

◆ m_bMsgTransparent

BOOL SWindow::m_bMsgTransparent
protected

Message transparency flag. TRUE means no message processing.

Definition at line 2608 of file SWnd.h.

◆ m_bVisible

BOOL SWindow::m_bVisible
protected

Visibility state of the window.

Definition at line 2604 of file SWnd.h.

◆ m_cachedRT

SAutoRefPtr<IRenderTarget> SWindow::m_cachedRT
protected

Cached render target for the window.

Definition at line 2619 of file SWnd.h.

◆ m_caret

SAutoRefPtr<ICaret> SWindow::m_caret
protected

Caret object.

Definition at line 2647 of file SWnd.h.

◆ m_clipPath

SAutoRefPtr<IPathS> SWindow::m_clipPath
protected

Clipping path for the window.

Definition at line 2621 of file SWnd.h.

◆ m_clipRgn

SAutoRefPtr<IRegionS> SWindow::m_clipRgn
protected

Clipping region for the window.

Definition at line 2620 of file SWnd.h.

◆ m_crColorize

COLORREF SWindow::m_crColorize
protected

Colorization value for the window.

Definition at line 2628 of file SWnd.h.

◆ m_dwState

BOOL SWindow::m_dwState
protected

State of the window during rendering.

Definition at line 2603 of file SWnd.h.

◆ m_evtSet

SEventSet SWindow::m_evtSet
protected

Event set for the window.

Definition at line 2581 of file SWnd.h.

◆ m_funSwndProc

FunSwndProc SWindow::m_funSwndProc
protected

Custom window procedure.

Definition at line 2649 of file SWnd.h.

◆ m_isAnimating

bool SWindow::m_isAnimating
protected

Flag indicating if the window is currently animating.

Definition at line 2633 of file SWnd.h.

◆ m_isDestroying

bool SWindow::m_isDestroying
protected

Flag indicating if the window is being destroyed.

Definition at line 2634 of file SWnd.h.

◆ m_isLoading

BOOL SWindow::m_isLoading
protected

Loading state flag.

Definition at line 2614 of file SWnd.h.

◆ m_layoutDirty

LayoutDirtyType SWindow::m_layoutDirty
protected

Layout dirty state.

Definition at line 2618 of file SWnd.h.

◆ m_nChildrenCount

UINT SWindow::m_nChildrenCount
protected

Number of child windows.

Definition at line 2592 of file SWnd.h.

◆ m_nMaxWidth

SLayoutSize SWindow::m_nMaxWidth
protected

Maximum width of the window when calculating size automatically.

Definition at line 2626 of file SWnd.h.

◆ m_nUpdateLockCnt

int SWindow::m_nUpdateLockCnt
protected

Update lock count. Prevents Invalidate messages to the host when locked.

Definition at line 2601 of file SWnd.h.

◆ m_pBgSkin

SAutoRefPtr<ISkinObj> SWindow::m_pBgSkin
protected

Background skin object.

Definition at line 2622 of file SWnd.h.

◆ m_pContainer

ISwndContainer* SWindow::m_pContainer
protected

Pointer to the container object.

Definition at line 2580 of file SWnd.h.

◆ m_pCurMsg

SWNDMSG* SWindow::m_pCurMsg
protected

Pointer to the current message being processed.

Definition at line 2594 of file SWnd.h.

◆ m_pFirstChild

SWindow* SWindow::m_pFirstChild
protected

Pointer to the first child window.

Definition at line 2588 of file SWnd.h.

◆ m_pGetRTData

PGETRTDATA SWindow::m_pGetRTData
protected

Pointer to GETRT data.

Definition at line 2644 of file SWnd.h.

◆ m_pLastChild

SWindow* SWindow::m_pLastChild
protected

Pointer to the last child window.

Definition at line 2589 of file SWnd.h.

◆ m_pLayout

SAutoRefPtr<ILayout> SWindow::m_pLayout
protected

Pointer to the layout object.

Definition at line 2583 of file SWnd.h.

◆ m_pLayoutParam

SAutoRefPtr<ILayoutParam> SWindow::m_pLayoutParam
protected

Pointer to the layout parameter object.

Definition at line 2584 of file SWnd.h.

◆ m_pNcSkin

SAutoRefPtr<ISkinObj> SWindow::m_pNcSkin
protected

Non-client area skin object.

Definition at line 2623 of file SWnd.h.

◆ m_pNextSibling

SWindow* SWindow::m_pNextSibling
protected

Pointer to the next sibling window.

Definition at line 2590 of file SWnd.h.

◆ m_pOwner

SWindow* SWindow::m_pOwner
protected

Pointer to the owner window.

Definition at line 2586 of file SWnd.h.

◆ m_pParent

SWindow* SWindow::m_pParent
protected

Pointer to the parent window.

Definition at line 2587 of file SWnd.h.

◆ m_pPrevSibling

SWindow* SWindow::m_pPrevSibling
protected

Pointer to the previous sibling window.

Definition at line 2591 of file SWnd.h.

◆ m_strText

STrText SWindow::m_strText
protected

Window text.

Definition at line 2597 of file SWnd.h.

◆ m_strToolTipText

STrText SWindow::m_strToolTipText
protected

Tooltip text for the window.

Definition at line 2598 of file SWnd.h.

◆ m_strTrCtx

SStringW SWindow::m_strTrCtx
protected

Translation context. If empty, uses the container's translation context.

Definition at line 2599 of file SWnd.h.

◆ m_style

SwndStyle SWindow::m_style
protected

Window style, a collection of window attributes.

Definition at line 2596 of file SWnd.h.

◆ m_swnd

SWND SWindow::m_swnd
protected

Member variables representing various properties of the window.

Window handle.

Definition at line 2577 of file SWnd.h.

◆ m_transform

STransformation SWindow::m_transform
protected

Transformation object.

Definition at line 2632 of file SWnd.h.

◆ m_uData

ULONG_PTR SWindow::m_uData
protected

User data for the window.

Definition at line 2624 of file SWnd.h.

◆ m_uZorder

UINT SWindow::m_uZorder
protected

Z-order of the window.

Definition at line 2600 of file SWnd.h.


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