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

Dropdown Window Class. More...

#include <SDropDown.h>

Inheritance diagram for SDropDownWnd:
SHostWnd IMsgFilter SwndContainerImpl ISwndContainer ITimelineHandler

Public Member Functions

 SDropDownWnd (ISDropDownOwner *pOwner)
 Constructor.
 
virtual ~SDropDownWnd ()
 Destructor.
 
SWindowGetDropDownOwner ()
 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.
 
- Public Member Functions inherited from SHostWnd
 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.
 
IMessageLoopGetMsgLoop () 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.
 
SWindowFindChildByName (LPCWSTR strName, int nDeep=-1)
 Finds a child window by its name (Unicode version).
 
SWindowFindChildByName (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.
 
SWindowFindChildByID (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.
 
SWindowGetRoot () const
 Gets the root window.
 
SNativeWndGetNative ()
 Gets the native window interface.
 
CRect GetWindowRect () const
 Gets the window rectangle.
 
CRect GetClientRect () const
 Gets the client rectangle.
 
SHostWndAttrGetHostAttr ()
 Gets the host window attributes.
 
IToolTipGetToolTip () 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.
 
- Public Member Functions inherited from SwndContainerImpl
 SwndContainerImpl ()
 Constructor.
 
IDropTarget * GetDropTarget ()
 Retrieves the drop target.
 
SFocusManagerGetFocusManager ()
 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.
 
- Public Member Functions inherited from ISwndContainer
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.
 
IMessageLoopGetMsgLoop () 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.
 
IAcceleratorMgrGetAcceleratorMgr () 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
 下一个动画帧处理接口
 

Protected Member Functions

IMessageLoopGetMsgLoop ()
 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.
 
- Protected Member Functions inherited from SHostWnd
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 IToolTipCreateTooltip () 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 SRootWindowCreateRoot ()
 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.
 
- Protected Member Functions inherited from SwndContainerImpl
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.
 
IAcceleratorMgrGetAcceleratorMgr ()
 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.
 

Protected Attributes

ISDropDownOwnerm_pOwner
 
BOOL m_bClick
 
UINT m_uExitCode
 
- Protected Attributes inherited from SHostWnd
SDummyWndm_dummyWnd
 
SHostWndAttr m_hostAttr
 
SStringT m_strXmlLayout
 
BOOL m_bTrackFlag
 
BOOL m_bNeedRepaint
 
BOOL m_bNeedAllRepaint
 
IToolTipm_pTipCtrl
 
SAutoRefPtr< IRegionSm_rgnInvalidate
 
SAutoRefPtr< IRenderTargetm_memRT
 
SAutoRefPtr< IUiDefInfom_privateUiDefInfo
 
int m_cEnableUiDefCount
 
SAutoRefPtr< IScriptModule > m_pScriptModule
 
SAutoRefPtr< SNcPainterm_pNcPainter
 
MSG m_msgMouse
 
CSize m_szAppSetted
 
CSize m_szPrev
 
int m_nAutoSizing
 
bool m_bResizing
 
SAutoRefPtr< IAnimation > m_hostAnimation
 
DWORD m_AniState
 
BOOL m_bFirstShow
 
tid_t m_dwThreadID
 
SRootWindowm_pRoot
 
EventHandlerInfo m_evtHandler
 
SAutoRefPtr< IHostPresenter > m_presenter
 
SCriticalSection m_cs
 
SList< IRunnable * > m_runnables
 
SCriticalSection m_csRunningQueue
 
SList< IRunnable * > m_runningQueue
 
IXmlNodem_xmlInit
 
SHostWnd::SHostAnimationHandler m_hostAnimationHandler
 
- Protected Attributes inherited from SwndContainerImpl
SWindowm_pRoot
 
SWND m_hCapture
 
SWND m_hHover
 
BOOL m_bNcHover
 
SFocusManager m_focusMgr
 
SDropTargetDispatcher m_dropTarget
 
BOOL m_bZorderDirty
 
SList< SWND > m_lstTrackMouseEvtWnd
 
SList< SWND > m_lstVideoCanvas
 
SAutoRefPtr< ICaret > m_caret
 
STimerlineHandlerMgr m_timelineHandlerMgr
 

Additional Inherited Members

- Public Types inherited from SHostWnd
enum  {
  kPulseTimer = 4321 , kPulseInterval = 10 , kNcCheckTimer = 4322 , kNcCheckInterval = 50 ,
  kTaskTimer = 4323 , kTaskInterval = 100
}
 
- Static Public Member Functions inherited from SHostWnd
static void SetHideLocalUiDef (BOOL bHide)
 Sets whether to hide local UI definitions globally.
 
static void SetTaskQueueBufSize (int nBufSize)
 Sets the buffer size for asynchronous task queues.
 
- Static Protected Attributes inherited from SHostWnd
static BOOL s_HideLocalUiDef = TRUE
 
static int s_TaskQueueBufSize = 5
 

Detailed Description

Dropdown Window Class.

A base class for dropdown windows. Derive from this class to create custom dropdown windows.

Definition at line 41 of file SDropDown.h.

Constructor & Destructor Documentation

◆ SDropDownWnd()

SDropDownWnd::SDropDownWnd ( ISDropDownOwner * pOwner)

Constructor.

Parameters
pOwnerPointer to the dropdown owner

Definition at line 20 of file SDropDown.cpp.

◆ ~SDropDownWnd()

SDropDownWnd::~SDropDownWnd ( )
virtual

Destructor.

Definition at line 27 of file SDropDown.cpp.

Member Function Documentation

◆ Create()

BOOL SDropDownWnd::Create ( LPCRECT lpRect,
LPVOID lParam,
DWORD dwStyle = WS_POPUP,
DWORD dwExStyle = WS_EX_TOOLWINDOW | WS_EX_TOPMOST )
virtual

Create the dropdown window.

Parameters
lpRectRectangle for the dropdown window
lParamAssociated data for the dropdown window
dwStyleWindow style
dwExStyleExtended window style
Returns
TRUE if successful, FALSE otherwise

Definition at line 51 of file SDropDown.cpp.

◆ EndDropDown()

void SDropDownWnd::EndDropDown ( UINT uCode = IDCANCEL)

End the dropdown window.

Parameters
uCodeExit code for the dropdown window

Definition at line 101 of file SDropDown.cpp.

◆ GetDropDownOwner()

SWindow * SDropDownWnd::GetDropDownOwner ( )

Get the dropdown owner window.

Returns
Pointer to the dropdown owner window

Definition at line 45 of file SDropDown.cpp.

◆ GetExitCode()

UINT SDropDownWnd::GetExitCode ( ) const
inline

Get the exit code of the dropdown window.

Returns
Exit code

Definition at line 84 of file SDropDown.h.

◆ GetMsgLoop()

IMessageLoop * SDropDownWnd::GetMsgLoop ( )
protected

Get the message loop.

Returns
Pointer to the message loop

Definition at line 149 of file SDropDown.cpp.

◆ GetValue()

virtual int SDropDownWnd::GetValue ( ) const
inlinevirtual

Get the value of the dropdown window.

Returns
Value of the dropdown window (default is 0)

Definition at line 93 of file SDropDown.h.

◆ OnActivate()

void SDropDownWnd::OnActivate ( UINT nState,
BOOL bMinimized,
HWND wndOther )
inlineprotected

Handle activate event.

Parameters
nStateActivation state
bMinimizedMinimized flag
wndOtherHandle to the previous active window

Definition at line 173 of file SDropDown.h.

◆ OnActivateApp()

void SDropDownWnd::OnActivateApp ( BOOL bActive,
DWORD dwThreadID )
protected

Handle activate application event.

Parameters
bActiveActivation flag
dwThreadIDThread ID

Definition at line 129 of file SDropDown.cpp.

◆ OnDestroy()

void SDropDownWnd::OnDestroy ( )
protected

Handle destroy event.

Definition at line 109 of file SDropDown.cpp.

◆ OnFinalMessage()

void SDropDownWnd::OnFinalMessage ( HWND hwnd)
protectedvirtual

Handle final message.

Parameters
hwndHandle to the window

Reimplemented from SNativeWnd.

Definition at line 31 of file SDropDown.cpp.

◆ OnKeyDown()

void SDropDownWnd::OnKeyDown ( UINT nChar,
UINT nRepCnt,
UINT nFlags )
protected

Handle key down event.

Parameters
nCharKey code
nRepCntRepeat count
nFlagsFlags

Definition at line 91 of file SDropDown.cpp.

◆ OnKillFocus()

void SDropDownWnd::OnKillFocus ( HWND wndFocus)
protected

Handle kill focus event.

Parameters
wndFocusHandle to the window receiving focus

Definition at line 37 of file SDropDown.cpp.

◆ OnLButtonDown()

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

Handle left mouse button down event.

Parameters
nFlagsFlags
pointMouse coordinates

Definition at line 62 of file SDropDown.cpp.

◆ OnLButtonUp()

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

Handle left mouse button up event.

Parameters
nFlagsFlags
pointMouse coordinates

Definition at line 77 of file SDropDown.cpp.

◆ OnMouseActivate()

int SDropDownWnd::OnMouseActivate ( HWND wndTopLevel,
UINT nHitTest,
UINT message )
protected

Handle mouse activate event.

Parameters
wndTopLevelHandle to the top-level window
nHitTestHit test code
messageMouse message code
Returns
Activation code

Definition at line 137 of file SDropDown.cpp.

◆ OnReleaseSwndCapture()

BOOL SDropDownWnd::OnReleaseSwndCapture ( )
protected

Prevent the window from releasing capture.

Returns
TRUE if successful, FALSE otherwise

Definition at line 142 of file SDropDown.cpp.

◆ PreTranslateMessage()

BOOL SDropDownWnd::PreTranslateMessage ( MSG * pMsg)
protectedvirtual

Pre-translate messages.

Parameters
pMsgPointer to the message
Returns
TRUE if the message is handled, FALSE otherwise

Implements IMsgFilter.

Definition at line 116 of file SDropDown.cpp.

Member Data Documentation

◆ m_bClick

BOOL SDropDownWnd::m_bClick
protected

Click state

Definition at line 185 of file SDropDown.h.

◆ m_pOwner

ISDropDownOwner* SDropDownWnd::m_pOwner
protected

Pointer to the dropdown owner

Definition at line 184 of file SDropDown.h.

◆ m_uExitCode

UINT SDropDownWnd::m_uExitCode
protected

Exit code

Definition at line 186 of file SDropDown.h.


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