soui 5.0.0.1
Soui5 Doc
 
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Loading...
Searching...
No Matches
SCalendar Class Reference

Calendar Control Class. More...

#include <SCalendar.h>

Inheritance diagram for SCalendar:
SWindow TObjRefImpl< SObjectImpl< IWindow > > SObjectImpl< IWindow >

Classes

struct  wDayInfo
 Date information structure. More...
 
struct  wMonthOrYearInfo
 Month or year information structure. More...
 

Public Member Functions

 SCalendar (WORD iYear, WORD iMonth, WORD iDay)
 Constructor.
 
 SCalendar ()
 Default constructor.
 
 ~SCalendar ()
 Destructor.
 
WORD GetYear ()
 Gets the current year.
 
WORD GetMonth ()
 Gets the current month.
 
WORD GetDay ()
 Gets the current day.
 
void GetDate (WORD &iYear, WORD &iMonth, WORD &iDay)
 Gets the current date.
 
BOOL SetDate (WORD iYear, WORD iMonth, WORD iDay, int nBtnType=-1, bool bNotify=false)
 Sets the date.
 
void SetShowType (int showType)
 Sets the calendar display type.
 
void SetYearDecadeCentury ()
 Sets the year, decade, and century views.
 
- Public Member Functions inherited from SWindow
 SWindow ()
 Constructor.
 
virtual ~SWindow ()
 Destructor.
 
BOOL IsMsgHandled () const
 Checks if the message is handled.
 
void SetMsgHandled (BOOL bHandled)
 Sets the message handled flag.
 
void OnFinalRelease ()
 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.
 

Protected Member Functions

virtual HRESULT OnLanguageChanged ()
 Called when the language changes.
 
void Init ()
 Initializes the control.
 
void OnPaint (IRenderTarget *pRT)
 Paints the control.
 
void OnLButtonDown (UINT nFlags, CPoint point)
 Handles left mouse button down event.
 
void OnLButtonUp (UINT nFlags, CPoint point)
 Handles left mouse button up event.
 
void OnMouseMove (UINT nFlags, CPoint pt)
 Handles mouse move event.
 
void OnMouseLeave ()
 Handles mouse leave event.
 
BOOL OnMouseWheel (UINT nFlags, short zDelta, CPoint pt)
 Handles mouse wheel event.
 
virtual HRESULT SetAttribute (const SNS::SStringW &amp;amp;amp;amp;strAttribName, const SNS::SStringW &amp;amp;amp;amp;strValue, BOOL bLoading=FALSE)
 
int OnCreate (LPVOID lp)
 Called when the control is created.
 
int HitTest (const CPoint &pt)
 Tests the mouse click position.
 
void DrawYearMonth (IRenderTarget *pRT, const CRect &rect)
 Draws the calendar header (year and month).
 
void DrawWeek (IRenderTarget *pRT, const CRect &rect)
 Draws the week days.
 
void DrawDay (IRenderTarget *pRT, CRect &rcDay, int nItem)
 Draws the day.
 
void DrawToday (IRenderTarget *pRT, CRect &rcDay)
 Draws the "Today" button.
 
void GetItemRect (int nItem, CRect &rcItem)
 Gets the item drawing area.
 
void SetLastMonth ()
 Sets the previous month.
 
void SetNextMonth ()
 Sets the next month.
 
void SetLastYear ()
 Sets the previous year.
 
void SetNextYear ()
 Sets the next year.
 
void SetLastYearDecade ()
 Sets the previous decade.
 
void SetNextYearDecade ()
 Sets the next decade.
 
void SetLastYearCentury ()
 Sets the previous century.
 
void SetNextYearCentury ()
 Sets the next century.
 
void SetYearMonth (int iYear, int iMonth)
 Sets the year and month.
 
void OnPaintMonth (IRenderTarget *pRT)
 Paints the month view.
 
void OnPaintYearDecadeCentury (IRenderTarget *pRT)
 Paints the year, decade, and century views.
 
void DrawYearDecadeCentury (IRenderTarget *pRT, const CRect &rect, int nItem)
 Draws the year, decade, and century items.
 
- Protected Member Functions inherited from SWindow
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 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

SLayoutSize m_nYearMonthHeight
 Height of the year and month.
 
SLayoutSize m_nWeekHeight
 Height of the week.
 
SLayoutSize m_nFooterHeight
 Height of the "Today" button.
 
COLORREF m_crSelText
 Selected text color.
 
COLORREF m_crOtherDayText
 Color of other days' text.
 
COLORREF m_crSelDayBack
 Background color of the selected day.
 
COLORREF m_crHoverText
 Color of the hover text.
 
SAutoRefPtr< ISkinObjm_pSkinPrev
 Skin for the previous button.
 
SAutoRefPtr< ISkinObjm_pSkinNext
 Skin for the next button.
 
SAutoRefPtr< ISkinObjm_pSkinDay
 Skin for the day.
 
SAutoRefPtr< ISkinObjm_pSkinWeek
 Skin for the week.
 
STrText m_strWeek [7]
 Header text.
 
wDayInfo m_arrDays [42]
 Date information array.
 
CRect m_rcDays
 Date area.
 
CRect m_rcToday
 "Today" button area.
 
int m_nSelItem
 Selected item.
 
int m_nHoverItem
 Hover item.
 
WORD m_iYear
 Current year.
 
WORD m_iMonth
 Current month.
 
SYSTEMTIME m_Today
 Current date.
 
int m_showType
 Calendar display state.
 
int m_showTypeLbdown
 Calendar display state when mouse button is down.
 
wMonthOrYearInfo m_arrMonthOrYear [12]
 Month or year information array.
 
- Protected Attributes inherited from SWindow
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
 

Additional Inherited Members

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

Detailed Description

Calendar Control Class.

This class implements a calendar control for date selection and display.

Definition at line 135 of file SCalendar.h.

Constructor & Destructor Documentation

◆ SCalendar() [1/2]

SCalendar::SCalendar ( WORD iYear,
WORD iMonth,
WORD iDay )

Constructor.

Parameters
iYearInitial year
iMonthInitial month
iDayInitial day

Definition at line 230 of file SCalendar.cpp.

◆ SCalendar() [2/2]

SCalendar::SCalendar ( )

Default constructor.

Definition at line 240 of file SCalendar.cpp.

◆ ~SCalendar()

SCalendar::~SCalendar ( )

Destructor.

Definition at line 247 of file SCalendar.cpp.

Member Function Documentation

◆ DrawDay()

void SCalendar::DrawDay ( IRenderTarget * pRT,
CRect & rcDay,
int nItem )
protected

Draws the day.

Parameters
pRTThe rendering target.
rcDayThe day area.
nItemThe day item.

Definition at line 623 of file SCalendar.cpp.

◆ DrawToday()

void SCalendar::DrawToday ( IRenderTarget * pRT,
CRect & rcDay )
protected

Draws the "Today" button.

Parameters
pRTThe rendering target.
rcDayThe "Today" button area.

Definition at line 671 of file SCalendar.cpp.

◆ DrawWeek()

void SCalendar::DrawWeek ( IRenderTarget * pRT,
const CRect & rect )
protected

Draws the week days.

Parameters
pRTThe rendering target.
rectThe drawing area.

Definition at line 600 of file SCalendar.cpp.

◆ DrawYearDecadeCentury()

void SCalendar::DrawYearDecadeCentury ( IRenderTarget * pRT,
const CRect & rect,
int nItem )
protected

Draws the year, decade, and century items.

Parameters
pRTThe rendering target.
rectThe drawing area.
nItemThe item index.

Definition at line 694 of file SCalendar.cpp.

◆ DrawYearMonth()

void SCalendar::DrawYearMonth ( IRenderTarget * pRT,
const CRect & rect )
protected

Draws the calendar header (year and month).

Parameters
pRTThe rendering target.
rectThe drawing area.

Definition at line 519 of file SCalendar.cpp.

◆ GetDate()

void SCalendar::GetDate ( WORD & iYear,
WORD & iMonth,
WORD & iDay )

Gets the current date.

Parameters
iYear[output] The year.
iMonth[output] The month.
iDay[output] The day.

Definition at line 327 of file SCalendar.cpp.

◆ GetDay()

WORD SCalendar::GetDay ( )

Gets the current day.

Returns
The current day.

Definition at line 319 of file SCalendar.cpp.

◆ GetItemRect()

void SCalendar::GetItemRect ( int nItem,
CRect & rcItem )
protected

Gets the item drawing area.

Parameters
nItemThe item index.
rcItem[output] The item area.

Definition at line 1125 of file SCalendar.cpp.

◆ GetMonth()

WORD SCalendar::GetMonth ( )

Gets the current month.

Returns
The current month.

Definition at line 314 of file SCalendar.cpp.

◆ GetYear()

WORD SCalendar::GetYear ( )

Gets the current year.

Returns
The current year.

Definition at line 309 of file SCalendar.cpp.

◆ HitTest()

int SCalendar::HitTest ( const CPoint & pt)
protected

Tests the mouse click position.

Parameters
ptMouse position.
Returns
The item corresponding to the click position.

Definition at line 1051 of file SCalendar.cpp.

◆ Init()

void SCalendar::Init ( )
protected

Initializes the control.

Definition at line 261 of file SCalendar.cpp.

◆ OnCreate()

int SCalendar::OnCreate ( LPVOID lp)
protected

Called when the control is created.

Parameters
lpCreation parameters.
Returns
HRESULT indicating the result of the operation.

Definition at line 296 of file SCalendar.cpp.

◆ OnLanguageChanged()

HRESULT SCalendar::OnLanguageChanged ( )
protectedvirtual

Called when the language changes.

Returns
HRESULT indicating the result of the operation.

Reimplemented from SWindow.

Definition at line 251 of file SCalendar.cpp.

◆ OnLButtonDown()

void SCalendar::OnLButtonDown ( UINT nFlags,
CPoint point )
protected

Handles left mouse button down event.

Parameters
nFlagsKey state.
pointMouse position.

Definition at line 843 of file SCalendar.cpp.

◆ OnLButtonUp()

void SCalendar::OnLButtonUp ( UINT nFlags,
CPoint point )
protected

Handles left mouse button up event.

Parameters
nFlagsKey state.
pointMouse position.

Definition at line 976 of file SCalendar.cpp.

◆ OnMouseLeave()

void SCalendar::OnMouseLeave ( )
protected

Handles mouse leave event.

Definition at line 1001 of file SCalendar.cpp.

◆ OnMouseMove()

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

Handles mouse move event.

Parameters
nFlagsKey state.
ptMouse position.

Definition at line 994 of file SCalendar.cpp.

◆ OnMouseWheel()

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

Handles mouse wheel event.

Parameters
nFlagsKey state.
zDeltaWheel delta.
ptMouse position.
Returns
TRUE – Success, FALSE – Failure

Definition at line 1007 of file SCalendar.cpp.

◆ OnPaint()

void SCalendar::OnPaint ( IRenderTarget * pRT)
protected

Paints the control.

Parameters
pRTThe rendering target.

Definition at line 760 of file SCalendar.cpp.

◆ OnPaintMonth()

void SCalendar::OnPaintMonth ( IRenderTarget * pRT)
protected

Paints the month view.

Parameters
pRTThe rendering target.

Definition at line 772 of file SCalendar.cpp.

◆ OnPaintYearDecadeCentury()

void SCalendar::OnPaintYearDecadeCentury ( IRenderTarget * pRT)
protected

Paints the year, decade, and century views.

Parameters
pRTThe rendering target.

Definition at line 807 of file SCalendar.cpp.

◆ SetAttribute()

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

Reimplemented from SWindow.

Definition at line 248 of file SCalendar.h.

◆ SetDate()

BOOL SCalendar::SetDate ( WORD iYear,
WORD iMonth,
WORD iDay,
int nBtnType = -1,
bool bNotify = false )

Sets the date.

Parameters
iYearThe year.
iMonthThe month.
iDayThe day.
nBtnTypeButton type.
bNotifyWhether to notify events.
Returns
TRUE – Success, FALSE – Failure
Parameters
nBtnTypeNo Hit

Definition at line 334 of file SCalendar.cpp.

◆ SetLastMonth()

void SCalendar::SetLastMonth ( )
protected

Sets the previous month.

Definition at line 450 of file SCalendar.cpp.

◆ SetLastYear()

void SCalendar::SetLastYear ( )
protected

Sets the previous year.

Definition at line 476 of file SCalendar.cpp.

◆ SetLastYearCentury()

void SCalendar::SetLastYearCentury ( )
protected

Sets the previous century.

Definition at line 497 of file SCalendar.cpp.

◆ SetLastYearDecade()

void SCalendar::SetLastYearDecade ( )
protected

Sets the previous decade.

Definition at line 487 of file SCalendar.cpp.

◆ SetNextMonth()

void SCalendar::SetNextMonth ( )
protected

Sets the next month.

Definition at line 463 of file SCalendar.cpp.

◆ SetNextYear()

void SCalendar::SetNextYear ( )
protected

Sets the next year.

Definition at line 482 of file SCalendar.cpp.

◆ SetNextYearCentury()

void SCalendar::SetNextYearCentury ( )
protected

Sets the next century.

Definition at line 506 of file SCalendar.cpp.

◆ SetNextYearDecade()

void SCalendar::SetNextYearDecade ( )
protected

Sets the next decade.

Definition at line 492 of file SCalendar.cpp.

◆ SetShowType()

void SCalendar::SetShowType ( int showType)

Sets the calendar display type.

Parameters
showTypeThe display type.

Definition at line 389 of file SCalendar.cpp.

◆ SetYearDecadeCentury()

void SCalendar::SetYearDecadeCentury ( )

Sets the year, decade, and century views.

Definition at line 394 of file SCalendar.cpp.

◆ SetYearMonth()

void SCalendar::SetYearMonth ( int iYear,
int iMonth )
protected

Sets the year and month.

Parameters
iYearThe year.
iMonthThe month.

Definition at line 512 of file SCalendar.cpp.

Member Data Documentation

◆ m_arrDays

wDayInfo SCalendar::m_arrDays[42]
protected

Date information array.

Definition at line 483 of file SCalendar.h.

◆ m_arrMonthOrYear

wMonthOrYearInfo SCalendar::m_arrMonthOrYear[12]
protected

Month or year information array.

Definition at line 542 of file SCalendar.h.

◆ m_crHoverText

COLORREF SCalendar::m_crHoverText
protected

Color of the hover text.

Definition at line 444 of file SCalendar.h.

◆ m_crOtherDayText

COLORREF SCalendar::m_crOtherDayText
protected

Color of other days' text.

Definition at line 434 of file SCalendar.h.

◆ m_crSelDayBack

COLORREF SCalendar::m_crSelDayBack
protected

Background color of the selected day.

Definition at line 439 of file SCalendar.h.

◆ m_crSelText

COLORREF SCalendar::m_crSelText
protected

Selected text color.

Definition at line 429 of file SCalendar.h.

◆ m_iMonth

WORD SCalendar::m_iMonth
protected

Current month.

Definition at line 513 of file SCalendar.h.

◆ m_iYear

WORD SCalendar::m_iYear
protected

Current year.

Definition at line 508 of file SCalendar.h.

◆ m_nFooterHeight

SLayoutSize SCalendar::m_nFooterHeight
protected

Height of the "Today" button.

Definition at line 424 of file SCalendar.h.

◆ m_nHoverItem

int SCalendar::m_nHoverItem
protected

Hover item.

Definition at line 503 of file SCalendar.h.

◆ m_nSelItem

int SCalendar::m_nSelItem
protected

Selected item.

Definition at line 498 of file SCalendar.h.

◆ m_nWeekHeight

SLayoutSize SCalendar::m_nWeekHeight
protected

Height of the week.

Definition at line 419 of file SCalendar.h.

◆ m_nYearMonthHeight

SLayoutSize SCalendar::m_nYearMonthHeight
protected

Height of the year and month.

Definition at line 414 of file SCalendar.h.

◆ m_pSkinDay

SAutoRefPtr<ISkinObj> SCalendar::m_pSkinDay
protected

Skin for the day.

Definition at line 459 of file SCalendar.h.

◆ m_pSkinNext

SAutoRefPtr<ISkinObj> SCalendar::m_pSkinNext
protected

Skin for the next button.

Definition at line 454 of file SCalendar.h.

◆ m_pSkinPrev

SAutoRefPtr<ISkinObj> SCalendar::m_pSkinPrev
protected

Skin for the previous button.

Definition at line 449 of file SCalendar.h.

◆ m_pSkinWeek

SAutoRefPtr<ISkinObj> SCalendar::m_pSkinWeek
protected

Skin for the week.

Definition at line 464 of file SCalendar.h.

◆ m_rcDays

CRect SCalendar::m_rcDays
protected

Date area.

Definition at line 488 of file SCalendar.h.

◆ m_rcToday

CRect SCalendar::m_rcToday
protected

"Today" button area.

Definition at line 493 of file SCalendar.h.

◆ m_showType

int SCalendar::m_showType
protected

Calendar display state.

Definition at line 523 of file SCalendar.h.

◆ m_showTypeLbdown

int SCalendar::m_showTypeLbdown
protected

Calendar display state when mouse button is down.

Definition at line 528 of file SCalendar.h.

◆ m_strWeek

STrText SCalendar::m_strWeek[7]
protected

Header text.

Definition at line 469 of file SCalendar.h.

◆ m_Today

SYSTEMTIME SCalendar::m_Today
protected

Current date.

Definition at line 518 of file SCalendar.h.


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