|
| SDropDownWnd (ISDropDownOwner *pOwner) |
| Constructor.
|
|
virtual | ~SDropDownWnd () |
| Destructor.
|
|
SWindow * | GetDropDownOwner () |
| Get the dropdown owner window.
|
|
virtual BOOL | Create (LPCRECT lpRect, LPVOID lParam, DWORD dwStyle=WS_POPUP, DWORD dwExStyle=WS_EX_TOOLWINDOW|WS_EX_TOPMOST) |
| Create the dropdown window.
|
|
void | EndDropDown (UINT uCode=IDCANCEL) |
| End the dropdown window.
|
|
UINT | GetExitCode () const |
| Get the exit code of the dropdown window.
|
|
virtual int | GetValue () const |
| Get the value of the dropdown window.
|
|
| SHostWnd (LPCWSTR pszResName=NULL) |
| Constructs a SHostWnd object with an optional resource name.
|
|
| SHostWnd (LPCSTR pszResName) |
| Constructs a SHostWnd object with an optional resource name (ANSI version).
|
|
virtual | ~SHostWnd () |
| Destructor for SHostWnd.
|
|
BOOL | InitFromXml (IXmlNode *pNode) OVERRIDE |
| Initializes the host window from an XML node.
|
|
BOOL | DestroyWindow () OVERRIDE |
| Destroys the host window.
|
|
void | SetLayoutId (LPCTSTR pszLayoutId) OVERRIDE |
| Sets the layout ID for the host window.
|
|
IWindow * | GetIRoot () OVERRIDE |
| Gets the root window interface.
|
|
BOOL | IsTranslucent () SCONST OVERRIDE |
| Checks if the host window is translucent.
|
|
IHostPresenter * | GetPresenter () OVERRIDE |
| Gets the presenter interface for rendering.
|
|
void | SetPresenter (IHostPresenter *pPresenter) OVERRIDE |
| Sets the presenter for rendering.
|
|
IMessageLoop * | GetMsgLoop () OVERRIDE |
| Gets the message loop interface.
|
|
IWindow * | FindIChildByID (int nId) OVERRIDE |
| Finds a child window by its ID.
|
|
IWindow * | FindIChildByName (LPCWSTR pszName) OVERRIDE |
| Finds a child window by its name (Unicode version).
|
|
IWindow * | FindIChildByNameA (LPCSTR pszName) OVERRIDE |
| Finds a child window by its name (ANSI version).
|
|
INcPainter * | GetNcPainter () OVERRIDE |
| Gets the non-client area painter for the host window.
|
|
BOOL | ShowWindow (int nCmdShow) OVERRIDE |
| Shows or hides the host window.
|
|
HWND | CreateEx (HWND hWndParent, DWORD dwStyle, DWORD dwExStyle, int x, int y, int nWidth, int nHeight, IXmlNode *xmlInit=NULL) OVERRIDE |
| Creates the host window with extended styles.
|
|
HWND | Create (HWND hWndParent, int x=0, int y=0, int nWidth=0, int nHeight=0) OVERRIDE |
| Creates the host window.
|
|
void | SetEventHandler (FunCallback fun, void *ctx) OVERRIDE |
| Sets the event handler for the host window.
|
|
EventHandlerInfo * | GetEventHandler () OVERRIDE |
| Gets the event handler information for the host window.
|
|
BOOL | AnimateHostWindow (DWORD dwTime, DWORD dwFlags) OVERRIDE |
| Animates the host window.
|
|
void | EnableDragDrop () OVERRIDE |
| Enables drag-and-drop functionality for the host window.
|
|
void | ShowHostWnd (int uShowCmd, BOOL bWaitAniDone) OVERRIDE |
| Shows the host window with optional animation.
|
|
void | EnablePrivateUiDef (BOOL bEnable) OVERRIDE |
| Enables or disables private UI definitions for the host window.
|
|
void | SetScale (int nScale, LPCRECT pDestRect) OVERRIDE |
| Sets the scale factor for the host window.
|
|
SWindow * | FindChildByName (LPCWSTR strName, int nDeep=-1) |
| Finds a child window by its name (Unicode version).
|
|
SWindow * | FindChildByName (LPCSTR strName, int nDeep=-1) |
| Finds 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 (Unicode version) with template support.
|
|
template<class T> |
T * | FindChildByName2 (LPCSTR pszName, int nDeep=-1) |
| Finds a child window by its name (ANSI version) with template support.
|
|
SWindow * | FindChildByID (int nID, int nDeep=-1) |
| Finds a child window by its ID.
|
|
template<class T> |
T * | FindChildByID2 (int nID, int nDeep=-1) |
| Finds a child window by its ID with template support.
|
|
template<class T> |
T * | FindChildByClass (int nDeep=-1) const |
| Finds a child window by its class.
|
|
SWindow * | GetRoot () const |
| Gets the root window.
|
|
SNativeWnd * | GetNative () |
| Gets the native window interface.
|
|
CRect | GetWindowRect () const |
| Gets the window rectangle.
|
|
CRect | GetClientRect () const |
| Gets the client rectangle.
|
|
SHostWndAttr & | GetHostAttr () |
| Gets the host window attributes.
|
|
IToolTip * | GetToolTip () const |
| Gets the tooltip interface.
|
|
bool | StartHostAnimation (IAnimation *pAni) |
| Starts an animation for the host window.
|
|
bool | StopHostAnimation () |
| Stops the current animation for the host window.
|
|
void | UpdateAutoSizeCount (bool bInc) |
| Updates the auto-size count.
|
|
BOOL | OnFireEvent (IEvtArgs *evt) OVERRIDE |
| Fires an event in the container.
|
|
void | GetContainerRect (RECT *ret) const OVERRIDE |
| Gets the rectangle of the container.
|
|
HWND | GetHostHwnd () OVERRIDE |
| Gets the handle to the host window.
|
|
LPCWSTR | GetTranslatorContext () const OVERRIDE |
| Gets the translator context for the container.
|
|
void | UpdateRegion (IRegionS *rgn) OVERRIDE |
| Updates the specified region in the container.
|
|
void | OnRedraw (LPCRECT rc, BOOL bClip) OVERRIDE |
| Redraws the specified rectangle in the container.
|
|
BOOL | OnReleaseSwndCapture () OVERRIDE |
| Releases the capture from the container.
|
|
SWND | OnSetSwndCapture (SWND swnd) OVERRIDE |
| Sets the capture to the specified window.
|
|
BOOL | IsSendWheel2Hover () const OVERRIDE |
| Checks if wheel messages are sent to the hover window.
|
|
BOOL | UpdateWindow (BOOL bForce=TRUE) OVERRIDE |
| Updates the window.
|
|
void | UpdateTooltip () OVERRIDE |
| Updates the tooltip for the container.
|
|
void | SetToolTip (LPCRECT rc, UINT tipAlign, LPCTSTR pszTip) OVERRIDE |
| Sets the tooltip for the container.
|
|
BOOL | RegisterTimelineHandler (ITimelineHandler *pHandler) OVERRIDE |
| Registers a timeline handler.
|
|
BOOL | UnregisterTimelineHandler (ITimelineHandler *pHandler) OVERRIDE |
| Unregisters a timeline handler.
|
|
void | EnableHostPrivateUiDef (BOOL bEnable) OVERRIDE |
| Enables or disables host private UI definitions.
|
|
IScriptModule * | GetScriptModule () OVERRIDE |
| Gets the script module for the container.
|
|
int | GetScale () const OVERRIDE |
| Gets the scale factor for the container.
|
|
void | EnableIME (BOOL bEnable) OVERRIDE |
| Enables or disables IME (Input Method Editor).
|
|
void | OnUpdateCursor () OVERRIDE |
| Updates the cursor for the container.
|
|
BOOL | PostTask (IRunnable *runable, BOOL bAsync=TRUE) OVERRIDE |
| Posts a task to the container.
|
|
int | RemoveTasksForObject (void *pObj) OVERRIDE |
| Removes tasks for the specified object.
|
|
virtual BOOL | onRootResize (IEvtArgs *e) |
| Handles the resize event of the root window.
|
|
virtual BOOL | _HandleEvent (IEvtArgs *pEvt) |
| Handles an event.
|
|
| SwndContainerImpl () |
| Constructor.
|
|
IDropTarget * | GetDropTarget () |
| Retrieves the drop target.
|
|
SFocusManager * | GetFocusManager () |
| Retrieves the focus manager.
|
|
void | SetRoot (SWindow *pRoot) |
| Sets the root window of the container.
|
|
virtual LRESULT | DoFrameEvent (UINT uMsg, WPARAM wParam, LPARAM lParam) |
| Processes frame events.
|
|
void | OnNextFrame () OVERRIDE |
| Called when the next frame is ready.
|
|
BOOL | RegisterTimelineHandler (ITimelineHandler *pHandler) PURE |
| Registers an animation frame handler.
|
|
BOOL | UnregisterTimelineHandler (ITimelineHandler *pHandler) PURE |
| Unregisters an animation frame handler.
|
|
BOOL | RegisterDragDrop (SWND swnd, IDropTarget *pDropTarget) PURE |
| Registers an IDropTarget with a Swnd.
|
|
BOOL | UnregisterDragDrop (SWND swnd) PURE |
| Unregisters an IDropTarget from a Swnd.
|
|
BOOL | OnFireEvent (IEvtArgs *evt) PURE |
| Fires an event.
|
|
IMessageLoop * | GetMsgLoop () PURE |
| Retrieves the current message loop.
|
|
IScriptModule * | GetScriptModule () PURE |
| Retrieves the script module.
|
|
HWND | GetHostHwnd () PURE |
| Retrieves the handle to the host window.
|
|
BOOL | IsTranslucent () SCONST PURE |
| Checks if the host window is translucent.
|
|
BOOL | IsSendWheel2Hover () SCONST PURE |
| Checks if mouseWheel messages are sent to the hover window.
|
|
int | GetScale () SCONST PURE |
| Retrieves the current DPI scale factor.
|
|
LPCWSTR | GetTranslatorContext () SCONST PURE |
| Retrieves the translation context.
|
|
void | GetContainerRect (RECT *ret) SCONST PURE |
| Retrieves the container's display rectangle.
|
|
void | UpdateRegion (IRegionS *rgn) PURE |
| Updates the specified region of the memory bitmap.
|
|
void | OnRedraw (LPCRECT rc, BOOL bClip) PURE |
| Requests a redraw of the specified area.
|
|
SWND | OnGetSwndCapture () SCONST PURE |
| Retrieves the Swnd object that has captured the mouse.
|
|
SWND | OnSetSwndCapture (SWND swnd) PURE |
| Sets the Swnd object to capture the mouse.
|
|
BOOL | OnReleaseSwndCapture () PURE |
| Releases the mouse capture from the Swnd object.
|
|
SWND | GetHover () SCONST PURE |
| Retrieves the Swnd object that is hovered over.
|
|
SWND | GetFocus () SCONST PURE |
| Retrieves the Swnd object that has focus.
|
|
void | OnSetSwndFocus (SWND swnd) PURE |
| Sets the focus to the specified Swnd object.
|
|
BOOL | UpdateWindow (BOOL bForce=TRUE) PURE |
| Requests an immediate update of the window.
|
|
void | UpdateTooltip () PURE |
| Requests an update of the tooltip.
|
|
void | SetToolTip (LPCRECT rc, UINT tipAlign, LPCTSTR pszTip) PURE |
| Displays a tooltip at the specified position.
|
|
void | FrameToHost (RECT *rc) SCONST PURE |
| Converts the rectangle coordinates of the current frame to the final host coordinates.
|
|
IAcceleratorMgr * | GetAcceleratorMgr () PURE |
| Retrieves the accelerator manager.
|
|
BOOL | RegisterTrackMouseEvent (SWND swnd) PURE |
| Registers a Swnd as a TrackMouseEvent window.
|
|
BOOL | UnregisterTrackMouseEvent (SWND swnd) PURE |
| Unregisters a Swnd as a TrackMouseEvent window.
|
|
void | MarkWndTreeZorderDirty () PURE |
| Marks the window tree's z-order as dirty.
|
|
void | BuildWndTreeZorder () PURE |
| Rebuilds the window tree's z-order.
|
|
void | EnableIME (BOOL bEnable) PURE |
| Enables or disables the input method editor (IME).
|
|
void | OnUpdateCursor () PURE |
| Updates the cursor.
|
|
BOOL | RegisterVideoCanvas (SWND swnd) PURE |
| Registers a VideoCanvas window.
|
|
BOOL | UnregisterVideoCanvas (SWND swnd) PURE |
| Unregisters a VideoCanvas window.
|
|
void | EnableHostPrivateUiDef (BOOL bEnable) PURE |
| Enables or disables the host's private UI definitions.
|
|
BOOL | PostTask (IRunnable *runable, BOOL bAsync=TRUE) PURE |
| Posts a task to the message queue.
|
|
int | RemoveTasksForObject (void *pObj) PURE |
| Removes all tasks associated with an object.
|
|
Public Member Functions inherited from ITimelineHandler |
void | OnNextFrame () PURE |
| 下一个动画帧处理接口
|
|
|
IMessageLoop * | GetMsgLoop () |
| Get the message loop.
|
|
BOOL | OnReleaseSwndCapture () |
| Prevent the window from releasing capture.
|
|
virtual BOOL WINAPI | PreTranslateMessage (MSG *pMsg) |
| Pre-translate messages.
|
|
void | OnLButtonDown (UINT nFlags, CPoint point) |
| Handle left mouse button down event.
|
|
void | OnLButtonUp (UINT nFlags, CPoint point) |
| Handle left mouse button up event.
|
|
void | OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags) |
| Handle key down event.
|
|
void | OnKillFocus (HWND wndFocus) |
| Handle kill focus event.
|
|
void | OnDestroy () |
| Handle destroy event.
|
|
void | OnActivateApp (BOOL bActive, DWORD dwThreadID) |
| Handle activate application event.
|
|
int | OnMouseActivate (HWND wndTopLevel, UINT nHitTest, UINT message) |
| Handle mouse activate event.
|
|
void | OnActivate (UINT nState, BOOL bMinimized, HWND wndOther) |
| Handle activate event.
|
|
virtual void | OnFinalMessage (HWND hwnd) |
| Handle final message.
|
|
virtual void | OnHostAnimationStarted (IAnimation *pAni) |
| Called when the host window animation starts.
|
|
virtual void | OnHostAnimationStoped (IAnimation *pAni) |
| Called when the host window animation stops.
|
|
void | _RedrawRegion (IRegionS *pRgn, CRect &rcInvalid) |
| Redraws a specific region of the window.
|
|
void | _Redraw () |
| Redraws the entire window.
|
|
void | _RestoreClickState () |
| Restores the click state of the window.
|
|
void | _Invalidate (LPCRECT prc) |
| Invalidates a specific region of the window.
|
|
void | _SetToolTipInfo (const SwndToolTipInfo *info, BOOL bNcTip) |
| Sets tooltip information for the window.
|
|
void | _Init () |
| Initializes the host window.
|
|
void | _ExcludeVideoCanvasFromPaint (IRenderTarget *pRT) |
| Excludes the video canvas from painting.
|
|
void | _PaintVideoCanvasForeground (IRenderTarget *pRT) |
| Paints the video canvas in the foreground.
|
|
void | OnPrint (HDC dc, UINT uFlags=0) |
| Handles the WM_PRINT message.
|
|
void | OnPaint (HDC dc) |
| Handles the WM_PAINT message.
|
|
BOOL | OnEraseBkgnd (HDC dc) |
| Handles the WM_ERASEBKGND message.
|
|
int | OnCreate (LPCREATESTRUCT lpCreateStruct) |
| Handles the WM_CREATE message.
|
|
void | OnDestroy () |
| Handles the WM_DESTROY message.
|
|
void | OnSize (UINT nType, CSize size) |
| Handles the WM_SIZE message.
|
|
void | OnMouseMove (UINT nFlags, CPoint point) |
| Handles the WM_MOUSEMOVE message.
|
|
void | OnMouseLeave () |
| Handles the WM_MOUSELEAVE message.
|
|
BOOL | OnSetCursor (HWND hWnd, UINT nHitTest, UINT message) |
| Handles the WM_SETCURSOR message.
|
|
void | OnTimer (UINT_PTR idEvent) |
| Handles the WM_TIMER message.
|
|
LRESULT | OnMouseEvent (UINT uMsg, WPARAM wParam, LPARAM lParam) |
| Handles mouse events.
|
|
LRESULT | OnKeyEvent (UINT uMsg, WPARAM wParam, LPARAM lParam) |
| Handles key events.
|
|
LRESULT | OnActivateApp (UINT uMsg, WPARAM wParam, LPARAM lParam) |
| Handles the WM_ACTIVATEAPP message.
|
|
BOOL | OnMouseWheel (UINT nFlags, short zDelta, CPoint pt) |
| Handles the WM_MOUSEWHEEL message.
|
|
void | OnActivate (UINT nState, BOOL bMinimized, HWND wndOther) |
| Handles the WM_ACTIVATE message.
|
|
void | OnGetMinMaxInfo (LPMINMAXINFO lpMMI) |
| Handles the WM_GETMINMAXINFO message.
|
|
void | OnSetFocus (HWND wndOld) |
| Handles the WM_SETFOCUS message.
|
|
void | OnKillFocus (HWND wndFocus) |
| Handles the WM_KILLFOCUS message.
|
|
void | UpdatePresenter (HDC dc, IRenderTarget *pRT, LPCRECT rc, BYTE byAlpha=255, UINT uFlag=0) |
| Updates the presenter.
|
|
void | OnCaptureChanged (HWND wnd) |
| Handles the WM_CAPTURECHANGED message.
|
|
LRESULT | OnMenuExEvent (UINT uMsg, WPARAM wParam, LPARAM lParam) |
| Handles custom menu events.
|
|
void | OnWindowPosChanging (LPWINDOWPOS lpWndPos) |
| Handles the WM_WINDOWPOSCHANGING message.
|
|
void | OnWindowPosChanged (LPWINDOWPOS lpWndPos) |
| Handles the WM_WINDOWPOSCHANGED message.
|
|
LRESULT | OnGetObject (UINT uMsg, WPARAM wParam, LPARAM lParam) |
| Handles the WM_GETOBJECT message.
|
|
void | OnSysCommand (UINT nID, CPoint lParam) |
| Handles the WM_SYSCOMMAND message.
|
|
void | OnCommand (UINT uNotifyCode, int nID, HWND wndCtl) |
| Handles the WM_COMMAND message.
|
|
virtual IToolTip * | CreateTooltip () const |
| Creates a tooltip for the container.
|
|
virtual void | DestroyTooltip (IToolTip *pTooltip) const |
| Destroys the specified tooltip.
|
|
virtual BOOL | OnLoadLayoutFromResourceID (SXmlDoc &xmlDoc) |
| Loads the layout from a resource ID.
|
|
virtual SXmlNode | OnGetInitXmlNode (SXmlDoc &xmlDoc) |
| Gets the initial XML node.
|
|
virtual void | OnUserXmlNode (SXmlNode xmlUser) |
| Handles user-defined XML node.
|
|
virtual SRootWindow * | CreateRoot () |
| Creates the root window.
|
|
LRESULT | OnSetLanguage (UINT uMsg, WPARAM wp, LPARAM lp) |
| Handles the WM_SETLANGUAGE message.
|
|
LRESULT | OnUpdateFont (UINT uMsg, WPARAM wp, LPARAM lp) |
| Handles the WM_UPDATEFONT message.
|
|
LRESULT | OnRunTasks (UINT uMsg, WPARAM wp, LPARAM lp) |
| Handles the UM_RUN_TASKS message.
|
|
BOOL | RegisterDragDrop (SWND swnd, IDropTarget *pDropTarget) OVERRIDE |
| Registers a drop target for a window.
|
|
BOOL | UnregisterDragDrop (SWND swnd) OVERRIDE |
| Unregisters a drop target for a window.
|
|
BOOL | OnReleaseSwndCapture () OVERRIDE |
| Releases the window capture.
|
|
SWND | OnSetSwndCapture (SWND swnd) OVERRIDE |
| Sets the window capture.
|
|
void | OnSetSwndFocus (SWND swnd) OVERRIDE |
| Sets the window focus.
|
|
void | FrameToHost (RECT *rc) SCONST OVERRIDE |
| Transforms a rectangle from frame coordinates to host coordinates.
|
|
SWND | OnGetSwndCapture () SCONST OVERRIDE |
| Retrieves the window handle that has capture.
|
|
SWND | GetFocus () SCONST OVERRIDE |
| Retrieves the window handle that has focus.
|
|
SWND | GetHover () SCONST OVERRIDE |
| Retrieves the window handle that is hovered.
|
|
IAcceleratorMgr * | GetAcceleratorMgr () |
| Retrieves the accelerator manager.
|
|
BOOL | RegisterTimelineHandler (ITimelineHandler *pHandler) OVERRIDE |
| Registers a timeline handler.
|
|
BOOL | UnregisterTimelineHandler (ITimelineHandler *pHandler) OVERRIDE |
| Unregisters a timeline handler.
|
|
BOOL | RegisterTrackMouseEvent (SWND swnd) OVERRIDE |
| Registers a window for tracking mouse events.
|
|
BOOL | UnregisterTrackMouseEvent (SWND swnd) OVERRIDE |
| Unregisters a window for tracking mouse events.
|
|
void | MarkWndTreeZorderDirty () OVERRIDE |
| Marks the window tree's z-order as dirty.
|
|
void | BuildWndTreeZorder () OVERRIDE |
| Rebuilds the window tree's z-order.
|
|
BOOL | RegisterVideoCanvas (SWND swnd) OVERRIDE |
| Registers a window as a video canvas.
|
|
BOOL | UnregisterVideoCanvas (SWND swnd) OVERRIDE |
| Unregisters a window as a video canvas.
|
|
void | OnFrameMouseMove (UINT uFlag, CPoint pt) |
| Handles mouse move events within the frame.
|
|
void | OnFrameMouseLeave () |
| Handles mouse leave events within the frame.
|
|
BOOL | OnFrameSetCursor (const CPoint &pt) |
| Sets the cursor based on the mouse position.
|
|
void | OnFrameMouseEvent (UINT uMsg, WPARAM wParam, LPARAM lParam) |
| Handles mouse events within the frame.
|
|
void | OnFrameMouseWheel (UINT uMsg, WPARAM wParam, LPARAM lParam) |
| Handles mouse wheel events within the frame.
|
|
LRESULT | OnFrameKeyEvent (UINT uMsg, WPARAM wParam, LPARAM lParam) |
| Handles key events within the frame.
|
|
void | OnFrameKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags) |
| Handles key down events within the frame.
|
|
void | OnActivate (UINT nState) |
| Handles window activation events.
|
|
void | OnActivateApp (BOOL bActive, DWORD dwThreadID) |
| Handles application activation events.
|
|
void | _BuildWndTreeZorder (IWindow *pWnd, UINT &iOrder) |
| Recursively builds the z-order of the window tree.
|
|