1#ifndef __SHOSTWND_I__H__
2#define __SHOSTWND_I__H__
4#include <interface/SNcPainter-i.h>
5#include <interface/SMsgLoop-i.h>
9typedef struct IWindow IWindow;
10typedef struct IApplication IApplication;
11typedef struct IHostPresenter IHostPresenter;
12typedef struct IHostWnd IHostWnd;
13typedef struct _EventHandlerInfo
20#define INTERFACE IHostWnd
23#include "SNativeWndApi.h"
38 STDMETHOD_(HWND, CreateEx)
39 (THIS_ HWND hWndParent, DWORD dwStyle, DWORD dwExStyle,
int x,
int y,
int nWidth,
int nHeight,
IXmlNode *xmlInit DEF_VAL(NULL)) PURE;
50 STDMETHOD_(HWND, Create)
51 (THIS_ HWND hWndParent,
int x DEF_VAL(0),
int y DEF_VAL(0),
int nWidth DEF_VAL(0),
int nHeight DEF_VAL(0)) PURE;
58 STDMETHOD_(
void, SetLayoutId)(THIS_ LPCTSTR pszLayoutId) PURE;
65 STDMETHOD_(BOOL, InitFromXml)(THIS_
IXmlNode * pNode) PURE;
71 STDMETHOD_(IWindow *, GetIRoot)(THIS) PURE;
77 STDMETHOD_(BOOL, IsTranslucent)(CTHIS) SCONST PURE;
83 STDMETHOD_(IHostPresenter *, GetPresenter)(THIS) PURE;
90 STDMETHOD_(
void, SetPresenter)(THIS_ IHostPresenter * pPresenter) PURE;
105 STDMETHOD_(IWindow *, FindIChildByID)(THIS_
int nId) PURE;
113 STDMETHOD_(IWindow *, FindIChildByName)(THIS_ LPCWSTR pszName) PURE;
120 STDMETHOD_(IWindow *, FindIChildByNameA)(THIS_ LPCSTR pszName) PURE;
126 STDMETHOD_(INcPainter *, GetNcPainter)(THIS) PURE;
134 STDMETHOD_(
void, SetEventHandler)(THIS_ FunCallback fun,
void *ctx) PURE;
140 STDMETHOD_(EventHandlerInfo *, GetEventHandler)(THIS) PURE;
149 STDMETHOD_(BOOL, AnimateHostWindow)(THIS_ DWORD dwTime, DWORD dwFlags) PURE;
155 STDMETHOD_(
void, EnableDragDrop)(THIS) PURE;
163 STDMETHOD_(
void, ShowHostWnd)(THIS_
int uShowCmd, BOOL bWaitAniDone) PURE;
171 STDMETHOD_(
void, EnablePrivateUiDef)(THIS_ BOOL bEnable) PURE;
179 STDMETHOD_(
void, SetScale)(THIS_
int nScale, LPCRECT pDestRect) PURE;
183#define INTERFACE IHostDialog
184DECLARE_INTERFACE_(IHostDialog, IHostWnd)
186#include "SNativeWndApi.h"
202 STDMETHOD_(HWND, CreateEx)
203 (THIS_ HWND hWndParent, DWORD dwStyle, DWORD dwExStyle,
int x,
int y,
int nWidth,
int nHeight,
IXmlNode *xmlInit DEF_VAL(NULL)) PURE;
214 STDMETHOD_(HWND, Create)
215 (THIS_ HWND hWndParent,
int x DEF_VAL(0),
int y DEF_VAL(0),
int nWidth DEF_VAL(0),
int nHeight DEF_VAL(0)) PURE;
222 STDMETHOD_(
void, SetLayoutId)(THIS_ LPCTSTR pszLayoutId) PURE;
229 STDMETHOD_(BOOL, InitFromXml)(THIS_
IXmlNode * pNode) PURE;
235 STDMETHOD_(IWindow *, GetIRoot)(THIS) PURE;
241 STDMETHOD_(BOOL, IsTranslucent)(CTHIS) SCONST PURE;
247 STDMETHOD_(IHostPresenter *, GetPresenter)(THIS) PURE;
254 STDMETHOD_(
void, SetPresenter)(THIS_ IHostPresenter * pPresenter) PURE;
269 STDMETHOD_(IWindow *, FindIChildByID)(THIS_
int nId) PURE;
277 STDMETHOD_(IWindow *, FindIChildByName)(THIS_ LPCWSTR pszName) PURE;
284 STDMETHOD_(IWindow *, FindIChildByNameA)(THIS_ LPCSTR pszName) PURE;
290 STDMETHOD_(INcPainter *, GetNcPainter)(THIS) PURE;
298 STDMETHOD_(
void, SetEventHandler)(THIS_ FunCallback fun,
void *ctx) PURE;
304 STDMETHOD_(EventHandlerInfo *, GetEventHandler)(THIS) PURE;
313 STDMETHOD_(BOOL, AnimateHostWindow)(THIS_ DWORD dwTime, DWORD dwFlags) PURE;
319 STDMETHOD_(
void, EnableDragDrop)(THIS) PURE;
327 STDMETHOD_(
void, ShowHostWnd)(THIS_
int uShowCmd, BOOL bWaitAniDone) PURE;
335 STDMETHOD_(
void, EnablePrivateUiDef)(THIS_ BOOL bEnable) PURE;
343 STDMETHOD_(
void, SetScale)(THIS_
int nScale, LPCRECT pDestRect) PURE;
352 STDMETHOD_(INT_PTR, DoModal)(THIS_ HWND hParent DEF_VAL(NULL), DWORD dwStyle DEF_VAL(WS_POPUP | WS_CLIPCHILDREN), DWORD dwExStyle DEF_VAL(0)) PURE;
359 STDMETHOD_(
void, EndDialog)(THIS_ INT_PTR nResult) PURE;
Interface for Native Window Operations.
Interface for message loops.
Interface for Native Window Operations.