1#ifndef __SDROPDOWN__H__
2#define __SDROPDOWN__H__
4#include <core/SHostWnd.h>
72 virtual BOOL
Create(LPCRECT lpRect, LPVOID lParam, DWORD dwStyle = WS_POPUP, DWORD dwExStyle = WS_EX_TOOLWINDOW | WS_EX_TOPMOST);
109 STDMETHOD_(BOOL, OnReleaseSwndCapture)();
123 void OnLButtonDown(UINT nFlags, CPoint point);
130 void OnLButtonUp(UINT nFlags, CPoint point);
138 void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
165 int OnMouseActivate(HWND wndTopLevel, UINT nHitTest, UINT message);
void OnDestroy()
Handle destroy event.
UINT GetExitCode() const
Get the exit code of the dropdown window.
void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
Handle key down event.
void OnActivateApp(BOOL bActive, DWORD dwThreadID)
Handle activate application event.
void OnActivate(UINT nState, BOOL bMinimized, HWND wndOther)
Handle activate event.
int OnMouseActivate(HWND wndTopLevel, UINT nHitTest, UINT message)
Handle mouse activate event.
SWindow * GetDropDownOwner()
Get the dropdown owner window.
void OnKillFocus(HWND wndFocus)
Handle kill focus event.
void OnLButtonDown(UINT nFlags, CPoint point)
Handle left mouse button down event.
ISDropDownOwner * m_pOwner
virtual int GetValue() const
Get the value of the dropdown window.
void EndDropDown(UINT uCode=IDCANCEL)
End the dropdown window.
void OnLButtonUp(UINT nFlags, CPoint point)
Handle left mouse button up event.
SDropDownWnd(ISDropDownOwner *pOwner)
Constructor.
void OnDestroy()
Handles the WM_DESTROY message.
LRESULT OnActivateApp(UINT uMsg, WPARAM wParam, LPARAM lParam)
Handles the WM_ACTIVATEAPP message.
SHostWnd(LPCWSTR pszResName=NULL)
Constructs a SHostWnd object with an optional resource name.
HWND Create(HWND hWndParent, int x=0, int y=0, int nWidth=0, int nHeight=0) OVERRIDE
Creates the host window.
void OnKillFocus(HWND wndFocus)
Handles the WM_KILLFOCUS message.
virtual void OnFinalMessage(HWND hWnd)
Handles the final message for the window.
Base class for SOUI DUI windows.
Interface for message loops.
Interface for message filtering.
BOOL PreTranslateMessage(MSG *pMsg) PURE
Preprocesses a message.
Interface for Dropdown Owner.
virtual void OnDestroyDropDown(SDropDownWnd *pDropDown)=0
Notify that the dropdown window is being destroyed.
virtual SWindow * GetDropDownOwner()=0
Get the dropdown owner window.
virtual void OnCreateDropDown(SDropDownWnd *pDropDown)=0
Notify that the dropdown window has been created.