14#ifndef __SHOSTDIALOG__H__
15#define __SHOSTDIALOG__H__
17#include <core/SHostWnd.h>
18#include <core/SMsgLoop.h>
19#include <proxy/SHostWndProxy.h>
30class SOUI_EXP
SHostDialog :
public THostWndProxy<IHostDialog> {
73 STDMETHOD_(INT_PTR,
DoModal)(THIS_ HWND hParent DEF_VAL(0), DWORD dwStyle DEF_VAL(WS_POPUP | WS_CLIPCHILDREN), DWORD dwExStyle DEF_VAL(0)) OVERRIDE;
81 STDMETHOD_(
void,
EndDialog)(THIS_ INT_PTR nResult) OVERRIDE;
103 void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
120 EVENT_ID_COMMAND(IDOK, OnOK)
121 EVENT_ID_COMMAND(IDCANCEL, OnCancel)
125 MSG_WM_CLOSE(OnCancel)
126 MSG_WM_KEYDOWN(OnKeyDown)
128 REFLECT_NOTIFICATIONS_EX()
Smart pointer class for managing COM-style reference-counted objects.
Dialog host window class.
SAutoRefPtr< IMessageLoop > m_MsgLoop
INT_PTR DoModal(HWND hParent=0, DWORD dwStyle=WS_POPUP|WS_CLIPCHILDREN, DWORD dwExStyle=0) OVERRIDE
Displays the dialog as a modal window.
void EndDialog(INT_PTR nResult) OVERRIDE
Ends the dialog.
IMessageLoop * GetMsgLoop() OVERRIDE
Gets the message loop for the dialog.
SHostDialog(LPCWSTR pszXmlName=NULL)
Constructor.
SHostWnd * toSHostWnd()
Casts the object to SHostWnd.
The main host window class responsible for managing the layout, events, and rendering of SOUI windows...
SHostWnd(LPCWSTR pszResName=NULL)
Constructs a SHostWnd object with an optional resource name.
Interface for message loops.