14#ifndef __SWNDCONTAINER_I__H__
15#define __SWNDCONTAINER_I__H__
17#include <core/SDefine.h>
18#include <interface/SEvtArgs-i.h>
19#include <interface/SMsgLoop-i.h>
21#include <interface/scaret-i.h>
22#include <interface/STimelineHandler-i.h>
23#include <interface/SAccelerator-i.h>
50#define INTERFACE ISwndContainer
151 STDMETHOD_(
void,
OnRedraw)(THIS_ LPCRECT rc, BOOL bClip) PURE;
211 STDMETHOD_(
void,
SetToolTip)(THIS_ LPCRECT rc, UINT tipAlign, LPCTSTR pszTip) PURE;
294 STDMETHOD_(BOOL,
PostTask)(THIS_ IRunnable * runable, BOOL bAsync DEF_VAL(TRUE)) PURE;
Interface for managing accelerator keys.
Interface for message loops.
SOUI Window Container Interface.
void OnSetSwndFocus(SWND swnd) PURE
Sets the focus to the specified Swnd object.
BOOL RegisterDragDrop(SWND swnd, IDropTarget *pDropTarget) PURE
Registers an IDropTarget with a Swnd.
BOOL RegisterVideoCanvas(SWND swnd) PURE
Registers a VideoCanvas window.
HWND GetHostHwnd() PURE
Retrieves the handle to the host window.
SWND GetHover() SCONST PURE
Retrieves the Swnd object that is hovered over.
void FrameToHost(RECT *rc) SCONST PURE
Converts the rectangle coordinates of the current frame to the final host coordinates.
void SetToolTip(LPCRECT rc, UINT tipAlign, LPCTSTR pszTip) PURE
Displays a tooltip at the specified position.
IScriptModule * GetScriptModule() PURE
Retrieves the script module.
void BuildWndTreeZorder() PURE
Rebuilds the window tree's z-order.
BOOL RegisterTimelineHandler(ITimelineHandler *pHandler) PURE
Registers an animation frame handler.
SWND GetFocus() SCONST PURE
Retrieves the Swnd object that has focus.
void GetContainerRect(RECT *ret) SCONST PURE
Retrieves the container's display rectangle.
BOOL OnReleaseSwndCapture() PURE
Releases the mouse capture from the Swnd object.
BOOL PostTask(IRunnable *runable, BOOL bAsync=TRUE) PURE
Posts a task to the message queue.
IAcceleratorMgr * GetAcceleratorMgr() PURE
Retrieves the accelerator manager.
void MarkWndTreeZorderDirty() PURE
Marks the window tree's z-order as dirty.
void OnUpdateCursor() PURE
Updates the cursor.
IMessageLoop * GetMsgLoop() PURE
Retrieves the current message loop.
BOOL UnregisterTrackMouseEvent(SWND swnd) PURE
Unregisters a Swnd as a TrackMouseEvent window.
void EnableHostPrivateUiDef(BOOL bEnable) PURE
Enables or disables the host's private UI definitions.
void UpdateTooltip() PURE
Requests an update of the tooltip.
LPCWSTR GetTranslatorContext() SCONST PURE
Retrieves the translation context.
SWND OnGetSwndCapture() SCONST PURE
Retrieves the Swnd object that has captured the mouse.
BOOL OnFireEvent(IEvtArgs *evt) PURE
Fires an event.
int RemoveTasksForObject(void *pObj) PURE
Removes all tasks associated with an object.
BOOL UnregisterTimelineHandler(ITimelineHandler *pHandler) PURE
Unregisters an animation frame handler.
void OnRedraw(LPCRECT rc, BOOL bClip) PURE
Requests a redraw of the specified area.
void UpdateRegion(IRegionS *rgn) PURE
Updates the specified region of the memory bitmap.
void EnableIME(BOOL bEnable) PURE
Enables or disables the input method editor (IME).
BOOL UnregisterDragDrop(SWND swnd) PURE
Unregisters an IDropTarget from a Swnd.
BOOL UpdateWindow(BOOL bForce=TRUE) PURE
Requests an immediate update of the window.
BOOL UnregisterVideoCanvas(SWND swnd) PURE
Unregisters a VideoCanvas window.
BOOL IsTranslucent() SCONST PURE
Checks if the host window is translucent.
int GetScale() SCONST PURE
Retrieves the current DPI scale factor.
BOOL IsSendWheel2Hover() SCONST PURE
Checks if mouseWheel messages are sent to the hover window.
BOOL RegisterTrackMouseEvent(SWND swnd) PURE
Registers a Swnd as a TrackMouseEvent window.
SWND OnSetSwndCapture(SWND swnd) PURE
Sets the Swnd object to capture the mouse.