ReactOS  0.4.15-dev-1070-ge1a01de
view.c File Reference
#include "mshtml_private.h"
Include dependency graph for view.c:

Go to the source code of this file.

Classes

struct  tooltip_data
 

Macros

#define TIMER_ID   0x1000
 

Functions

static void paint_document (HTMLDocumentObj *This)
 
static void activate_gecko (NSContainer *This)
 
void update_doc (HTMLDocument *This, DWORD flags)
 
void update_title (HTMLDocumentObj *This)
 
static LRESULT on_timer (HTMLDocumentObj *This)
 
void notif_focus (HTMLDocumentObj *This)
 
static LRESULT WINAPI serverwnd_proc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
 
static void register_serverwnd_class (void)
 
static HRESULT activate_window (HTMLDocumentObj *This)
 
static LRESULT WINAPI tooltips_proc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
 
static void create_tooltips_window (HTMLDocumentObj *This)
 
void show_tooltip (HTMLDocumentObj *This, DWORD x, DWORD y, LPCWSTR text)
 
void hide_tooltip (HTMLDocumentObj *This)
 
HRESULT call_set_active_object (IOleInPlaceUIWindow *window, IOleInPlaceActiveObject *act_obj)
 
static HTMLDocumentimpl_from_IOleDocumentView (IOleDocumentView *iface)
 
static HRESULT WINAPI OleDocumentView_QueryInterface (IOleDocumentView *iface, REFIID riid, void **ppvObject)
 
static ULONG WINAPI OleDocumentView_AddRef (IOleDocumentView *iface)
 
static ULONG WINAPI OleDocumentView_Release (IOleDocumentView *iface)
 
static HRESULT WINAPI OleDocumentView_SetInPlaceSite (IOleDocumentView *iface, IOleInPlaceSite *pIPSite)
 
static HRESULT WINAPI OleDocumentView_GetInPlaceSite (IOleDocumentView *iface, IOleInPlaceSite **ppIPSite)
 
static HRESULT WINAPI OleDocumentView_GetDocument (IOleDocumentView *iface, IUnknown **ppunk)
 
static HRESULT WINAPI OleDocumentView_SetRect (IOleDocumentView *iface, LPRECT prcView)
 
static HRESULT WINAPI OleDocumentView_GetRect (IOleDocumentView *iface, LPRECT prcView)
 
static HRESULT WINAPI OleDocumentView_SetRectComplex (IOleDocumentView *iface, LPRECT prcView, LPRECT prcHScroll, LPRECT prcVScroll, LPRECT prcSizeBox)
 
static HRESULT WINAPI OleDocumentView_Show (IOleDocumentView *iface, BOOL fShow)
 
static HRESULT WINAPI OleDocumentView_UIActivate (IOleDocumentView *iface, BOOL fUIActivate)
 
static HRESULT WINAPI OleDocumentView_Open (IOleDocumentView *iface)
 
static HRESULT WINAPI OleDocumentView_CloseView (IOleDocumentView *iface, DWORD dwReserved)
 
static HRESULT WINAPI OleDocumentView_SaveViewState (IOleDocumentView *iface, LPSTREAM pstm)
 
static HRESULT WINAPI OleDocumentView_ApplyViewState (IOleDocumentView *iface, LPSTREAM pstm)
 
static HRESULT WINAPI OleDocumentView_Clone (IOleDocumentView *iface, IOleInPlaceSite *pIPSiteNew, IOleDocumentView **ppViewNew)
 
static HTMLDocumentimpl_from_IViewObjectEx (IViewObjectEx *iface)
 
static HRESULT WINAPI ViewObject_QueryInterface (IViewObjectEx *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI ViewObject_AddRef (IViewObjectEx *iface)
 
static ULONG WINAPI ViewObject_Release (IViewObjectEx *iface)
 
static HRESULT WINAPI ViewObject_Draw (IViewObjectEx *iface, DWORD dwDrawAspect, LONG lindex, void *pvAspect, DVTARGETDEVICE *ptd, HDC hdcTargetDev, HDC hdcDraw, LPCRECTL lprcBounds, LPCRECTL lprcWBounds, BOOL(CALLBACK *pfnContinue)(ULONG_PTR dwContinue), ULONG_PTR dwContinue)
 
static HRESULT WINAPI ViewObject_GetColorSet (IViewObjectEx *iface, DWORD dwDrawAspect, LONG lindex, void *pvAspect, DVTARGETDEVICE *ptd, HDC hicTargetDev, LOGPALETTE **ppColorSet)
 
static HRESULT WINAPI ViewObject_Freeze (IViewObjectEx *iface, DWORD dwDrawAspect, LONG lindex, void *pvAspect, DWORD *pdwFreeze)
 
static HRESULT WINAPI ViewObject_Unfreeze (IViewObjectEx *iface, DWORD dwFreeze)
 
static HRESULT WINAPI ViewObject_SetAdvise (IViewObjectEx *iface, DWORD aspects, DWORD advf, IAdviseSink *pAdvSink)
 
static HRESULT WINAPI ViewObject_GetAdvise (IViewObjectEx *iface, DWORD *pAspects, DWORD *pAdvf, IAdviseSink **ppAdvSink)
 
static HRESULT WINAPI ViewObject_GetExtent (IViewObjectEx *iface, DWORD dwDrawAspect, LONG lindex, DVTARGETDEVICE *ptd, LPSIZEL lpsizel)
 
static HRESULT WINAPI ViewObject_GetRect (IViewObjectEx *iface, DWORD dwAspect, LPRECTL pRect)
 
static HRESULT WINAPI ViewObject_GetViewStatus (IViewObjectEx *iface, DWORD *pdwStatus)
 
static HRESULT WINAPI ViewObject_QueryHitPoint (IViewObjectEx *iface, DWORD dwAspect, LPCRECT pRectBounds, POINT ptlLoc, LONG lCloseHint, DWORD *pHitResult)
 
static HRESULT WINAPI ViewObject_QueryHitRect (IViewObjectEx *iface, DWORD dwAspect, LPCRECT pRectBounds, LPCRECT pRectLoc, LONG lCloseHint, DWORD *pHitResult)
 
static HRESULT WINAPI ViewObject_GetNaturalExtent (IViewObjectEx *iface, DWORD dwAspect, LONG lindex, DVTARGETDEVICE *ptd, HDC hicTargetDev, DVEXTENTINFO *pExtentInfo, LPSIZEL pSizel)
 
void HTMLDocument_View_Init (HTMLDocument *This)
 
static HTMLDocumentObjimpl_from_IWindowForBindingUI (IWindowForBindingUI *iface)
 
static HRESULT WINAPI WindowForBindingUI_QueryInterface (IWindowForBindingUI *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI WindowForBindingUI_AddRef (IWindowForBindingUI *iface)
 
static ULONG WINAPI WindowForBindingUI_Release (IWindowForBindingUI *iface)
 
static HRESULT WINAPI WindowForBindingUI_GetWindow (IWindowForBindingUI *iface, REFGUID rguidReason, HWND *phwnd)
 
void init_binding_ui (HTMLDocumentObj *doc)
 

Variables

static const WCHAR wszInternetExplorer_Server []
 
static const WCHAR wszTooltipData [] = {'t','o','o','l','t','i','p','_','d','a','t','a',0}
 
static ATOM serverwnd_class = 0
 
static const IOleDocumentViewVtbl OleDocumentViewVtbl
 
static const IViewObjectExVtbl ViewObjectVtbl
 
static const IWindowForBindingUIVtbl WindowForBindingUIVtbl
 

Macro Definition Documentation

◆ TIMER_ID

#define TIMER_ID   0x1000

Definition at line 21 of file view.c.

Function Documentation

◆ activate_gecko()

static void activate_gecko ( NSContainer This)
static

Definition at line 51 of file view.c.

52 {
53  TRACE("(%p) %p\n", This, This->window);
54 
55  SetParent(This->hwnd, This->doc->hwnd);
56  ShowWindow(This->hwnd, SW_SHOW);
57 
58  nsIBaseWindow_SetVisibility(This->window, TRUE);
59  nsIBaseWindow_SetEnabled(This->window, TRUE);
60 }
#define TRUE
Definition: types.h:120
HWND WINAPI SetParent(_In_ HWND, _In_opt_ HWND)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
#define SW_SHOW
Definition: winuser.h:769
#define TRACE(s)
Definition: solgame.cpp:4

Referenced by activate_window().

◆ activate_window()

static HRESULT activate_window ( HTMLDocumentObj This)
static

Definition at line 208 of file view.c.

209 {
210  IOleInPlaceFrame *pIPFrame;
211  IOleCommandTarget *cmdtrg;
212  IOleInPlaceSiteEx *ipsiteex;
213  RECT posrect, cliprect;
214  OLEINPLACEFRAMEINFO frameinfo;
215  HWND parent_hwnd;
216  HRESULT hres;
217 
218  if(!serverwnd_class)
220 
221  hres = IOleInPlaceSite_CanInPlaceActivate(This->ipsite);
222  if(hres != S_OK) {
223  WARN("CanInPlaceActivate returned: %08x\n", hres);
224  return FAILED(hres) ? hres : E_FAIL;
225  }
226 
227  frameinfo.cb = sizeof(OLEINPLACEFRAMEINFO);
228  hres = IOleInPlaceSite_GetWindowContext(This->ipsite, &pIPFrame, &This->ip_window,
229  &posrect, &cliprect, &frameinfo);
230  if(FAILED(hres)) {
231  WARN("GetWindowContext failed: %08x\n", hres);
232  return hres;
233  }
234 
235  TRACE("got window context: %p %p {%d %d %d %d} {%d %d %d %d} {%d %x %p %p %d}\n",
236  pIPFrame, This->ip_window, posrect.left, posrect.top, posrect.right, posrect.bottom,
237  cliprect.left, cliprect.top, cliprect.right, cliprect.bottom,
238  frameinfo.cb, frameinfo.fMDIApp, frameinfo.hwndFrame, frameinfo.haccel, frameinfo.cAccelEntries);
239 
240  hres = IOleInPlaceSite_GetWindow(This->ipsite, &parent_hwnd);
241  if(FAILED(hres)) {
242  WARN("GetWindow failed: %08x\n", hres);
243  return hres;
244  }
245 
246  TRACE("got parent window %p\n", parent_hwnd);
247 
248  if(This->hwnd) {
249  if(GetParent(This->hwnd) != parent_hwnd)
250  SetParent(This->hwnd, parent_hwnd);
251  SetWindowPos(This->hwnd, HWND_TOP,
252  posrect.left, posrect.top, posrect.right-posrect.left, posrect.bottom-posrect.top,
254  }else {
257  posrect.left, posrect.top, posrect.right-posrect.left, posrect.bottom-posrect.top,
258  parent_hwnd, NULL, hInst, This);
259 
260  TRACE("Created window %p\n", This->hwnd);
261 
262  SetWindowPos(This->hwnd, NULL, 0, 0, 0, 0,
265 
266  /* NOTE:
267  * Windows implementation calls:
268  * RegisterWindowMessage("MSWHEEL_ROLLMSG");
269  */
270  SetTimer(This->hwnd, TIMER_ID, 100, NULL);
271  }
272 
273  if(This->nscontainer)
274  activate_gecko(This->nscontainer);
275 
276  This->in_place_active = TRUE;
277  hres = IOleInPlaceSite_QueryInterface(This->ipsite, &IID_IOleInPlaceSiteEx, (void**)&ipsiteex);
278  if(SUCCEEDED(hres)) {
279  BOOL redraw = FALSE;
280 
281  hres = IOleInPlaceSiteEx_OnInPlaceActivateEx(ipsiteex, &redraw, 0);
282  IOleInPlaceSiteEx_Release(ipsiteex);
283  if(redraw)
284  FIXME("unsupported redraw\n");
285  }else{
286  hres = IOleInPlaceSite_OnInPlaceActivate(This->ipsite);
287  }
288  if(FAILED(hres)) {
289  WARN("OnInPlaceActivate failed: %08x\n", hres);
290  This->in_place_active = FALSE;
291  return hres;
292  }
293 
294  hres = IOleClientSite_QueryInterface(This->client, &IID_IOleCommandTarget, (void**)&cmdtrg);
295  if(SUCCEEDED(hres)) {
296  VARIANT var;
297 
298  IOleInPlaceFrame_SetStatusText(pIPFrame, NULL);
299 
300  V_VT(&var) = VT_I4;
301  V_I4(&var) = 0;
302  IOleCommandTarget_Exec(cmdtrg, NULL, OLECMDID_SETPROGRESSMAX,
303  OLECMDEXECOPT_DONTPROMPTUSER, &var, NULL);
304  IOleCommandTarget_Exec(cmdtrg, NULL, OLECMDID_SETPROGRESSPOS,
305  OLECMDEXECOPT_DONTPROMPTUSER, &var, NULL);
306 
307  IOleCommandTarget_Release(cmdtrg);
308  }
309 
310  if(This->frame)
311  IOleInPlaceFrame_Release(This->frame);
312  This->frame = pIPFrame;
313 
314  if(!This->request_uiactivate) {
315  hres = IOleInPlaceSite_QueryInterface(This->ipsite, &IID_IOleInPlaceSiteEx, (void**)&ipsiteex);
316  if(SUCCEEDED(hres)) {
317  IOleInPlaceSiteEx_RequestUIActivate(ipsiteex);
318  IOleInPlaceSiteEx_Release(ipsiteex);
319  }
320  }
321 
322  This->window_active = TRUE;
323 
324  return S_OK;
325 }
#define WS_CLIPSIBLINGS
Definition: pedump.c:618
const char * var
Definition: shader.c:5666
static const WCHAR wszInternetExplorer_Server[]
Definition: view.c:23
BOOL WINAPI RedrawWindow(_In_opt_ HWND, _In_opt_ LPCRECT, _In_opt_ HRGN, _In_ UINT)
Definition: compat.h:2046
#define TRUE
Definition: types.h:120
HWND WINAPI SetParent(_In_ HWND, _In_opt_ HWND)
#define WARN(fmt,...)
Definition: debug.h:112
LONG top
Definition: windef.h:307
#define HWND_TOP
Definition: winuser.h:1193
#define WS_CHILD
Definition: pedump.c:617
LONG left
Definition: windef.h:306
#define SWP_NOZORDER
Definition: winuser.h:1232
#define WS_CLIPCHILDREN
Definition: pedump.c:619
LONG right
Definition: windef.h:308
#define E_FAIL
Definition: ddrawi.h:102
#define V_I4(A)
Definition: oleauto.h:247
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
#define FIXME(fmt,...)
Definition: debug.h:111
static ATOM serverwnd_class
Definition: view.c:28
smooth NULL
Definition: ftsmooth.c:416
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:79
#define SWP_NOACTIVATE
Definition: winuser.h:1227
HWND WINAPI CreateWindowExW(_In_ DWORD dwExStyle, _In_opt_ LPCWSTR lpClassName, _In_opt_ LPCWSTR lpWindowName, _In_ DWORD dwStyle, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, _In_opt_ HWND hWndParent, _In_opt_ HMENU hMenu, _In_opt_ HINSTANCE hInstance, _In_opt_ LPVOID lpParam)
#define V_VT(A)
Definition: oleauto.h:211
#define RDW_NOERASE
Definition: winuser.h:1201
#define SWP_NOSIZE
Definition: winuser.h:1230
void redraw(int x, int y, int cx, int cy)
Definition: qtewin.cpp:1248
HWND WINAPI GetParent(_In_ HWND)
#define S_OK
Definition: intsafe.h:51
HINSTANCE hInst
Definition: dxdiag.c:13
#define RDW_ALLCHILDREN
Definition: winuser.h:1207
#define SWP_SHOWWINDOW
Definition: winuser.h:1233
#define SWP_NOREDRAW
Definition: winuser.h:1231
#define TIMER_ID
Definition: view.c:21
LONG bottom
Definition: windef.h:309
#define SWP_NOMOVE
Definition: winuser.h:1229
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
static void activate_gecko(NSContainer *This)
Definition: view.c:51
#define SUCCEEDED(hr)
Definition: intsafe.h:49
#define RDW_INVALIDATE
Definition: winuser.h:1200
static void register_serverwnd_class(void)
Definition: view.c:194

Referenced by OleDocumentView_Show(), and OleDocumentView_UIActivate().

◆ call_set_active_object()

HRESULT call_set_active_object ( IOleInPlaceUIWindow window,
IOleInPlaceActiveObject act_obj 
)

Definition at line 398 of file view.c.

399 {
400  static WCHAR html_documentW[30];
401 
402  if(act_obj && !html_documentW[0]) {
403  LoadStringW(hInst, IDS_HTMLDOCUMENT, html_documentW,
404  sizeof(html_documentW)/sizeof(WCHAR));
405  }
406 
407  return IOleInPlaceUIWindow_SetActiveObject(window, act_obj, act_obj ? html_documentW : NULL);
408 }
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
smooth NULL
Definition: ftsmooth.c:416
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define IDS_HTMLDOCUMENT
Definition: resource.h:21
static IHTMLWindow2 * window
Definition: events.c:77
HINSTANCE hInst
Definition: dxdiag.c:13

Referenced by OleDocumentView_UIActivate(), and setup_edit_mode().

◆ create_tooltips_window()

static void create_tooltips_window ( HTMLDocumentObj This)
static

Definition at line 349 of file view.c.

350 {
351  tooltip_data *data = heap_alloc(sizeof(*data));
352 
354  CW_USEDEFAULT, CW_USEDEFAULT, 10, 10, This->hwnd, NULL, hInst, NULL);
355 
356  data->doc = This;
357  data->proc = (WNDPROC)GetWindowLongPtrW(This->tooltips_hwnd, GWLP_WNDPROC);
358 
359  SetPropW(This->tooltips_hwnd, wszTooltipData, data);
360 
362 
363  SetWindowPos(This->tooltips_hwnd, HWND_TOPMOST,0, 0, 0, 0,
365 
366 }
static LRESULT WINAPI tooltips_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: view.c:327
#define HWND_TOPMOST
Definition: winuser.h:1194
#define GetWindowLongPtrW
Definition: winuser.h:4804
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
#define CW_USEDEFAULT
Definition: winuser.h:225
smooth NULL
Definition: ftsmooth.c:416
BOOL WINAPI SetPropW(_In_ HWND, _In_ LPCWSTR, _In_opt_ HANDLE)
#define SWP_NOACTIVATE
Definition: winuser.h:1227
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
#define TOOLTIPS_CLASSW
Definition: commctrl.h:1703
HWND WINAPI CreateWindowExW(_In_ DWORD dwExStyle, _In_opt_ LPCWSTR lpClassName, _In_opt_ LPCWSTR lpWindowName, _In_ DWORD dwStyle, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, _In_opt_ HWND hWndParent, _In_opt_ HMENU hMenu, _In_opt_ HINSTANCE hInstance, _In_opt_ LPVOID lpParam)
#define GWLP_WNDPROC
Definition: treelist.c:66
#define SWP_NOSIZE
Definition: winuser.h:1230
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
Definition: winuser.h:2881
HINSTANCE hInst
Definition: dxdiag.c:13
__int3264 LONG_PTR
Definition: mstsclib_h.h:276
#define WS_POPUP
Definition: pedump.c:616
static const WCHAR wszTooltipData[]
Definition: view.c:26
#define SWP_NOMOVE
Definition: winuser.h:1229
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define SetWindowLongPtrW
Definition: winuser.h:5321
#define TTS_NOPREFIX
Definition: commctrl.h:1754

◆ hide_tooltip()

void hide_tooltip ( HTMLDocumentObj This)

Definition at line 386 of file view.c.

387 {
388  TTTOOLINFOW toolinfo = {
389  sizeof(TTTOOLINFOW), 0, This->hwnd, 0xdeadbeef,
390  {0,0,0,0}, NULL, NULL, 0};
391 
392  TRACE("(%p)\n", This);
393 
394  SendMessageW(This->tooltips_hwnd, TTM_DELTOOLW, 0, (LPARAM)&toolinfo);
395  SendMessageW(This->tooltips_hwnd, TTM_ACTIVATE, FALSE, 0);
396 }
struct tagTOOLINFOW TTTOOLINFOW
#define TTM_ACTIVATE
Definition: commctrl.h:1780
#define FALSE
Definition: types.h:117
smooth NULL
Definition: ftsmooth.c:416
LONG_PTR LPARAM
Definition: windef.h:208
#define TRACE(s)
Definition: solgame.cpp:4
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define TTM_DELTOOLW
Definition: commctrl.h:1785

Referenced by nsTooltipListener_OnHideTooltip().

◆ HTMLDocument_View_Init()

void HTMLDocument_View_Init ( HTMLDocument This)

Definition at line 875 of file view.c.

876 {
877  This->IOleDocumentView_iface.lpVtbl = &OleDocumentViewVtbl;
878  This->IViewObjectEx_iface.lpVtbl = &ViewObjectVtbl;
879 }
static const IViewObjectExVtbl ViewObjectVtbl
Definition: view.c:857
static const IOleDocumentViewVtbl OleDocumentViewVtbl
Definition: view.c:705

Referenced by init_doc().

◆ impl_from_IOleDocumentView()

static HTMLDocument* impl_from_IOleDocumentView ( IOleDocumentView iface)
inlinestatic

Definition at line 414 of file view.c.

415 {
416  return CONTAINING_RECORD(iface, HTMLDocument, IOleDocumentView_iface);
417 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by OleDocumentView_AddRef(), OleDocumentView_ApplyViewState(), OleDocumentView_Clone(), OleDocumentView_CloseView(), OleDocumentView_GetDocument(), OleDocumentView_GetInPlaceSite(), OleDocumentView_GetRect(), OleDocumentView_Open(), OleDocumentView_QueryInterface(), OleDocumentView_Release(), OleDocumentView_SaveViewState(), OleDocumentView_SetInPlaceSite(), OleDocumentView_SetRect(), OleDocumentView_SetRectComplex(), OleDocumentView_Show(), and OleDocumentView_UIActivate().

◆ impl_from_IViewObjectEx()

static HTMLDocument* impl_from_IViewObjectEx ( IViewObjectEx iface)
inlinestatic

Definition at line 728 of file view.c.

729 {
730  return CONTAINING_RECORD(iface, HTMLDocument, IViewObjectEx_iface);
731 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by ViewObject_AddRef(), ViewObject_Draw(), ViewObject_Freeze(), ViewObject_GetAdvise(), ViewObject_GetColorSet(), ViewObject_GetExtent(), ViewObject_GetNaturalExtent(), ViewObject_GetRect(), ViewObject_GetViewStatus(), ViewObject_QueryHitPoint(), ViewObject_QueryHitRect(), ViewObject_QueryInterface(), ViewObject_Release(), ViewObject_SetAdvise(), and ViewObject_Unfreeze().

◆ impl_from_IWindowForBindingUI()

static HTMLDocumentObj* impl_from_IWindowForBindingUI ( IWindowForBindingUI iface)
inlinestatic

Definition at line 881 of file view.c.

882 {
883  return CONTAINING_RECORD(iface, HTMLDocumentObj, IWindowForBindingUI_iface);
884 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by WindowForBindingUI_AddRef(), WindowForBindingUI_GetWindow(), WindowForBindingUI_QueryInterface(), and WindowForBindingUI_Release().

◆ init_binding_ui()

void init_binding_ui ( HTMLDocumentObj doc)

Definition at line 935 of file view.c.

936 {
938 }
static const IWindowForBindingUIVtbl WindowForBindingUIVtbl
Definition: view.c:928
IWindowForBindingUI IWindowForBindingUI_iface

Referenced by HTMLDocument_Create().

◆ notif_focus()

void notif_focus ( HTMLDocumentObj This)

Definition at line 130 of file view.c.

131 {
133  HRESULT hres;
134 
135  if(!This->client)
136  return;
137 
138  hres = IOleClientSite_QueryInterface(This->client, &IID_IOleControlSite, (void**)&site);
139  if(FAILED(hres))
140  return;
141 
142  IOleControlSite_OnFocus(site, This->focus);
143  IOleControlSite_Release(site);
144 }
static IActiveScriptSite * site
Definition: script.c:149
const GUID IID_IOleControlSite
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:79

Referenced by handle_blur(), handle_focus(), OleDocumentView_UIActivate(), and OleInPlaceObjectWindowless_InPlaceDeactivate().

◆ OleDocumentView_AddRef()

static ULONG WINAPI OleDocumentView_AddRef ( IOleDocumentView iface)
static

Definition at line 425 of file view.c.

426 {
428  return htmldoc_addref(This);
429 }
static HTMLDocument * impl_from_IOleDocumentView(IOleDocumentView *iface)
Definition: view.c:414
static ULONG htmldoc_addref(HTMLDocument *This)

◆ OleDocumentView_ApplyViewState()

static HRESULT WINAPI OleDocumentView_ApplyViewState ( IOleDocumentView iface,
LPSTREAM  pstm 
)
static

Definition at line 690 of file view.c.

691 {
693  FIXME("(%p)->(%p)\n", This, pstm);
694  return E_NOTIMPL;
695 }
#define FIXME(fmt,...)
Definition: debug.h:111
static HTMLDocument * impl_from_IOleDocumentView(IOleDocumentView *iface)
Definition: view.c:414
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ OleDocumentView_Clone()

static HRESULT WINAPI OleDocumentView_Clone ( IOleDocumentView iface,
IOleInPlaceSite pIPSiteNew,
IOleDocumentView **  ppViewNew 
)
static

Definition at line 697 of file view.c.

699 {
701  FIXME("(%p)->(%p %p)\n", This, pIPSiteNew, ppViewNew);
702  return E_NOTIMPL;
703 }
#define FIXME(fmt,...)
Definition: debug.h:111
static HTMLDocument * impl_from_IOleDocumentView(IOleDocumentView *iface)
Definition: view.c:414
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ OleDocumentView_CloseView()

static HRESULT WINAPI OleDocumentView_CloseView ( IOleDocumentView iface,
DWORD  dwReserved 
)
static

Definition at line 665 of file view.c.

666 {
668  TRACE("(%p)->(%x)\n", This, dwReserved);
669 
670  if(dwReserved)
671  WARN("dwReserved = %d\n", dwReserved);
672 
673  /* NOTE:
674  * Windows implementation calls QueryInterface(IID_IOleCommandTarget),
675  * QueryInterface(IID_IOleControlSite) and KillTimer
676  */
677 
678  IOleDocumentView_Show(iface, FALSE);
679 
680  return S_OK;
681 }
#define WARN(fmt,...)
Definition: debug.h:112
#define FALSE
Definition: types.h:117
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
Definition: mswsock.h:90
static HTMLDocument * impl_from_IOleDocumentView(IOleDocumentView *iface)
Definition: view.c:414
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:51

◆ OleDocumentView_GetDocument()

static HRESULT WINAPI OleDocumentView_GetDocument ( IOleDocumentView iface,
IUnknown **  ppunk 
)
static

Definition at line 468 of file view.c.

469 {
471  TRACE("(%p)->(%p)\n", This, ppunk);
472 
473  if(!ppunk)
474  return E_INVALIDARG;
475 
477  *ppunk = (IUnknown*)&This->IHTMLDocument2_iface;
478  return S_OK;
479 }
#define E_INVALIDARG
Definition: ddrawi.h:101
static HTMLDocument * impl_from_IOleDocumentView(IOleDocumentView *iface)
Definition: view.c:414
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:51
static ULONG htmldoc_addref(HTMLDocument *This)

◆ OleDocumentView_GetInPlaceSite()

static HRESULT WINAPI OleDocumentView_GetInPlaceSite ( IOleDocumentView iface,
IOleInPlaceSite **  ppIPSite 
)
static

Definition at line 453 of file view.c.

454 {
456  TRACE("(%p)->(%p)\n", This, ppIPSite);
457 
458  if(!ppIPSite)
459  return E_INVALIDARG;
460 
461  if(This->doc_obj->ipsite)
462  IOleInPlaceSite_AddRef(This->doc_obj->ipsite);
463 
464  *ppIPSite = This->doc_obj->ipsite;
465  return S_OK;
466 }
#define E_INVALIDARG
Definition: ddrawi.h:101
static HTMLDocument * impl_from_IOleDocumentView(IOleDocumentView *iface)
Definition: view.c:414
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:51

◆ OleDocumentView_GetRect()

static HRESULT WINAPI OleDocumentView_GetRect ( IOleDocumentView iface,
LPRECT  prcView 
)
static

Definition at line 503 of file view.c.

504 {
506 
507  TRACE("(%p)->(%p)\n", This, prcView);
508 
509  if(!prcView)
510  return E_INVALIDARG;
511 
512  GetClientRect(This->doc_obj->hwnd, prcView);
513  return S_OK;
514 }
#define E_INVALIDARG
Definition: ddrawi.h:101
static HTMLDocument * impl_from_IOleDocumentView(IOleDocumentView *iface)
Definition: view.c:414
#define TRACE(s)
Definition: solgame.cpp:4
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
#define S_OK
Definition: intsafe.h:51

◆ OleDocumentView_Open()

static HRESULT WINAPI OleDocumentView_Open ( IOleDocumentView iface)
static

Definition at line 658 of file view.c.

659 {
661  FIXME("(%p)\n", This);
662  return E_NOTIMPL;
663 }
#define FIXME(fmt,...)
Definition: debug.h:111
static HTMLDocument * impl_from_IOleDocumentView(IOleDocumentView *iface)
Definition: view.c:414
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ OleDocumentView_QueryInterface()

static HRESULT WINAPI OleDocumentView_QueryInterface ( IOleDocumentView iface,
REFIID  riid,
void **  ppvObject 
)
static

Definition at line 419 of file view.c.

420 {
423 }
REFIID riid
Definition: precomp.h:44
static HTMLDocument * impl_from_IOleDocumentView(IOleDocumentView *iface)
Definition: view.c:414
REFIID LPVOID * ppvObject
Definition: precomp.h:44
static HRESULT htmldoc_query_interface(HTMLDocument *This, REFIID riid, void **ppv)

◆ OleDocumentView_Release()

static ULONG WINAPI OleDocumentView_Release ( IOleDocumentView iface)
static

Definition at line 431 of file view.c.

432 {
434  return htmldoc_release(This);
435 }
static HTMLDocument * impl_from_IOleDocumentView(IOleDocumentView *iface)
Definition: view.c:414
static ULONG htmldoc_release(HTMLDocument *This)

◆ OleDocumentView_SaveViewState()

static HRESULT WINAPI OleDocumentView_SaveViewState ( IOleDocumentView iface,
LPSTREAM  pstm 
)
static

Definition at line 683 of file view.c.

684 {
686  FIXME("(%p)->(%p)\n", This, pstm);
687  return E_NOTIMPL;
688 }
#define FIXME(fmt,...)
Definition: debug.h:111
static HTMLDocument * impl_from_IOleDocumentView(IOleDocumentView *iface)
Definition: view.c:414
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ OleDocumentView_SetInPlaceSite()

static HRESULT WINAPI OleDocumentView_SetInPlaceSite ( IOleDocumentView iface,
IOleInPlaceSite pIPSite 
)
static

Definition at line 437 of file view.c.

438 {
440  TRACE("(%p)->(%p)\n", This, pIPSite);
441 
442  if(pIPSite)
443  IOleInPlaceSite_AddRef(pIPSite);
444 
445  if(This->doc_obj->ipsite)
446  IOleInPlaceSite_Release(This->doc_obj->ipsite);
447 
448  This->doc_obj->ipsite = pIPSite;
449  This->doc_obj->request_uiactivate = TRUE;
450  return S_OK;
451 }
#define TRUE
Definition: types.h:120
static HTMLDocument * impl_from_IOleDocumentView(IOleDocumentView *iface)
Definition: view.c:414
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:51

◆ OleDocumentView_SetRect()

static HRESULT WINAPI OleDocumentView_SetRect ( IOleDocumentView iface,
LPRECT  prcView 
)
static

Definition at line 481 of file view.c.

482 {
484  RECT rect;
485 
486  TRACE("(%p)->(%p)\n", This, prcView);
487 
488  if(!prcView)
489  return E_INVALIDARG;
490 
491  if(This->doc_obj->hwnd) {
492  GetClientRect(This->doc_obj->hwnd, &rect);
493  if(memcmp(prcView, &rect, sizeof(RECT))) {
494  InvalidateRect(This->doc_obj->hwnd, NULL, TRUE);
495  SetWindowPos(This->doc_obj->hwnd, NULL, prcView->left, prcView->top, prcView->right,
496  prcView->bottom, SWP_NOZORDER | SWP_NOACTIVATE);
497  }
498  }
499 
500  return S_OK;
501 }
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
Definition: utclib.c:112
#define TRUE
Definition: types.h:120
LONG top
Definition: windef.h:307
LONG left
Definition: windef.h:306
#define SWP_NOZORDER
Definition: winuser.h:1232
LONG right
Definition: windef.h:308
& rect
Definition: startmenu.cpp:1413
#define E_INVALIDARG
Definition: ddrawi.h:101
smooth NULL
Definition: ftsmooth.c:416
static HTMLDocument * impl_from_IOleDocumentView(IOleDocumentView *iface)
Definition: view.c:414
#define TRACE(s)
Definition: solgame.cpp:4
#define SWP_NOACTIVATE
Definition: winuser.h:1227
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
#define S_OK
Definition: intsafe.h:51
LONG bottom
Definition: windef.h:309
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)

◆ OleDocumentView_SetRectComplex()

static HRESULT WINAPI OleDocumentView_SetRectComplex ( IOleDocumentView iface,
LPRECT  prcView,
LPRECT  prcHScroll,
LPRECT  prcVScroll,
LPRECT  prcSizeBox 
)
static

Definition at line 516 of file view.c.

518 {
520  FIXME("(%p)->(%p %p %p %p)\n", This, prcView, prcHScroll, prcVScroll, prcSizeBox);
521  return E_NOTIMPL;
522 }
#define FIXME(fmt,...)
Definition: debug.h:111
static HTMLDocument * impl_from_IOleDocumentView(IOleDocumentView *iface)
Definition: view.c:414
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ OleDocumentView_Show()

static HRESULT WINAPI OleDocumentView_Show ( IOleDocumentView iface,
BOOL  fShow 
)
static

Definition at line 524 of file view.c.

525 {
527  HRESULT hres;
528 
529  TRACE("(%p)->(%x)\n", This, fShow);
530 
531  if(fShow) {
532  if(!This->doc_obj->ui_active) {
533  hres = activate_window(This->doc_obj);
534  if(FAILED(hres))
535  return hres;
536  }
538  ShowWindow(This->doc_obj->hwnd, SW_SHOW);
539  }else {
540  ShowWindow(This->doc_obj->hwnd, SW_HIDE);
541 
542  if(This->doc_obj->in_place_active)
543  IOleInPlaceObjectWindowless_InPlaceDeactivate(&This->IOleInPlaceObjectWindowless_iface);
544 
545  if(This->doc_obj->ip_window) {
546  IOleInPlaceUIWindow_Release(This->doc_obj->ip_window);
547  This->doc_obj->ip_window = NULL;
548  }
549  }
550 
551  return S_OK;
552 }
#define UPDATE_UI
void update_doc(HTMLDocument *This, DWORD flags)
Definition: view.c:62
#define SW_HIDE
Definition: winuser.h:762
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
smooth NULL
Definition: ftsmooth.c:416
static HTMLDocument * impl_from_IOleDocumentView(IOleDocumentView *iface)
Definition: view.c:414
#define SW_SHOW
Definition: winuser.h:769
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:79
#define S_OK
Definition: intsafe.h:51
static HRESULT activate_window(HTMLDocumentObj *This)
Definition: view.c:208

◆ OleDocumentView_UIActivate()

static HRESULT WINAPI OleDocumentView_UIActivate ( IOleDocumentView iface,
BOOL  fUIActivate 
)
static

Definition at line 554 of file view.c.

555 {
557  HRESULT hres;
558 
559  TRACE("(%p)->(%x)\n", This, fUIActivate);
560 
561  if(!This->doc_obj->ipsite) {
562  IOleClientSite *cs = This->doc_obj->client;
563  IOleInPlaceSite *ips;
564 
565  if(!cs) {
566  WARN("this->ipsite = NULL\n");
567  return E_UNEXPECTED;
568  }
569 
570  hres = IOleClientSite_QueryInterface(cs, &IID_IOleInPlaceSiteWindowless, (void**)&ips);
571  if(SUCCEEDED(hres))
572  This->doc_obj->ipsite = ips;
573  else {
574  hres = IOleClientSite_QueryInterface(cs, &IID_IOleInPlaceSiteEx, (void**)&ips);
575  if(SUCCEEDED(hres))
576  This->doc_obj->ipsite = ips;
577  else {
578  hres = IOleClientSite_QueryInterface(cs, &IID_IOleInPlaceSite, (void**)&ips);
579  if(SUCCEEDED(hres))
580  This->doc_obj->ipsite = ips;
581  else {
582  WARN("this->ipsite = NULL\n");
583  return E_NOINTERFACE;
584  }
585  }
586  }
587 
588  IOleInPlaceSite_AddRef(This->doc_obj->ipsite);
589  This->doc_obj->request_uiactivate = FALSE;
591  }
592 
593  if(fUIActivate) {
594  RECT rcBorderWidths;
595 
596  if(This->doc_obj->ui_active)
597  return S_OK;
598 
599  if(!This->doc_obj->window_active) {
600  hres = activate_window(This->doc_obj);
601  if(FAILED(hres))
602  return hres;
603  }
604 
605  This->doc_obj->focus = TRUE;
606  if(This->doc_obj->nscontainer)
607  nsIWebBrowserFocus_Activate(This->doc_obj->nscontainer->focus);
608  notif_focus(This->doc_obj);
609 
611 
612  hres = IOleInPlaceSite_OnUIActivate(This->doc_obj->ipsite);
613  if(SUCCEEDED(hres)) {
615  &This->IOleInPlaceActiveObject_iface);
616  }else {
617  FIXME("OnUIActivate failed: %08x\n", hres);
618  IOleInPlaceFrame_Release(This->doc_obj->frame);
619  This->doc_obj->frame = NULL;
620  This->doc_obj->ui_active = FALSE;
621  return hres;
622  }
623 
624  if(This->doc_obj->hostui) {
625  hres = IDocHostUIHandler_ShowUI(This->doc_obj->hostui,
626  This->doc_obj->usermode == EDITMODE ? DOCHOSTUITYPE_AUTHOR : DOCHOSTUITYPE_BROWSE,
627  &This->IOleInPlaceActiveObject_iface, &This->IOleCommandTarget_iface,
628  This->doc_obj->frame, This->doc_obj->ip_window);
629  if(FAILED(hres))
630  IDocHostUIHandler_HideUI(This->doc_obj->hostui);
631  }
632 
633  if(This->doc_obj->ip_window)
634  call_set_active_object(This->doc_obj->ip_window, &This->IOleInPlaceActiveObject_iface);
635 
636  memset(&rcBorderWidths, 0, sizeof(rcBorderWidths));
637  IOleInPlaceFrame_SetBorderSpace(This->doc_obj->frame, &rcBorderWidths);
638 
639  This->doc_obj->ui_active = TRUE;
640  }else {
641  This->doc_obj->focus = FALSE;
642  nsIWebBrowserFocus_Deactivate(This->doc_obj->nscontainer->focus);
643  if(This->doc_obj->ui_active) {
644  This->doc_obj->ui_active = FALSE;
645  if(This->doc_obj->ip_window)
646  call_set_active_object(This->doc_obj->ip_window, NULL);
647  if(This->doc_obj->frame)
649  if(This->doc_obj->hostui)
650  IDocHostUIHandler_HideUI(This->doc_obj->hostui);
651  if(This->doc_obj->ipsite)
652  IOleInPlaceSite_OnUIDeactivate(This->doc_obj->ipsite, FALSE);
653  }
654  }
655  return S_OK;
656 }
#define UPDATE_UI
void update_doc(HTMLDocument *This, DWORD flags)
Definition: view.c:62
#define E_NOINTERFACE
Definition: winerror.h:2364
#define TRUE
Definition: types.h:120
const GUID IID_IOleInPlaceSite
void HTMLDocument_LockContainer(HTMLDocumentObj *, BOOL) DECLSPEC_HIDDEN
Definition: oleobj.c:1183
#define WARN(fmt,...)
Definition: debug.h:112
void notif_focus(HTMLDocumentObj *This)
Definition: view.c:130
coclass HostDialogHelper DOCHOSTUITYPE_AUTHOR
uint32_t cs
Definition: isohybrid.c:75
#define FALSE
Definition: types.h:117
#define FIXME(fmt,...)
Definition: debug.h:111
coclass HostDialogHelper DOCHOSTUITYPE_BROWSE
smooth NULL
Definition: ftsmooth.c:416
static HTMLDocument * impl_from_IOleDocumentView(IOleDocumentView *iface)
Definition: view.c:414
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:79
#define S_OK
Definition: intsafe.h:51
#define E_UNEXPECTED
Definition: winerror.h:2456
static HRESULT activate_window(HTMLDocumentObj *This)
Definition: view.c:208
HRESULT call_set_active_object(IOleInPlaceUIWindow *window, IOleInPlaceActiveObject *act_obj)
Definition: view.c:398
#define memset(x, y, z)
Definition: compat.h:39
#define SUCCEEDED(hr)
Definition: intsafe.h:49

◆ on_timer()

static LRESULT on_timer ( HTMLDocumentObj This)
static

Definition at line 98 of file view.c.

99 {
100  TRACE("(%p) %x\n", This, This->update);
101 
102  KillTimer(This->hwnd, TIMER_ID);
103 
104  if(!This->update)
105  return 0;
106 
107  if(This->update & UPDATE_UI) {
108  if(This->hostui)
109  IDocHostUIHandler_UpdateUI(This->hostui);
110 
111  if(This->client) {
112  IOleCommandTarget *cmdtrg;
113  HRESULT hres;
114 
115  hres = IOleClientSite_QueryInterface(This->client, &IID_IOleCommandTarget,
116  (void**)&cmdtrg);
117  if(SUCCEEDED(hres)) {
118  IOleCommandTarget_Exec(cmdtrg, NULL, OLECMDID_UPDATECOMMANDS,
119  OLECMDEXECOPT_DONTPROMPTUSER, NULL, NULL);
120  IOleCommandTarget_Release(cmdtrg);
121  }
122  }
123  }
124 
126  This->update = 0;
127  return 0;
128 }
#define UPDATE_UI
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:79
void update_title(HTMLDocumentObj *This)
Definition: view.c:70
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
#define TIMER_ID
Definition: view.c:21
#define SUCCEEDED(hr)
Definition: intsafe.h:49

Referenced by serverwnd_proc().

◆ paint_document()

static void paint_document ( HTMLDocumentObj This)
static

Definition at line 35 of file view.c.

36 {
37  PAINTSTRUCT ps;
38  RECT rect;
39  HDC hdc;
40 
41  GetClientRect(This->hwnd, &rect);
42 
43  hdc = BeginPaint(This->hwnd, &ps);
44 
47 
48  EndPaint(This->hwnd, &ps);
49 }
static HDC
Definition: imagelist.c:92
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
& rect
Definition: startmenu.cpp:1413
#define BF_ADJUST
Definition: winuser.h:470
#define BF_RECT
Definition: winuser.h:462
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
BOOL WINAPI DrawEdge(_In_ HDC, _Inout_ LPRECT, _In_ UINT, _In_ UINT)
HDC hdc
Definition: main.c:9
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
#define EDGE_SUNKEN
Definition: winuser.h:451

Referenced by serverwnd_proc().

◆ register_serverwnd_class()

static void register_serverwnd_class ( void  )
static

Definition at line 194 of file view.c.

195 {
196  static WNDCLASSEXW wndclass = {
197  sizeof(WNDCLASSEXW),
198  CS_DBLCLKS,
200  0, 0, NULL, NULL, NULL, NULL, NULL,
202  NULL,
203  };
204  wndclass.hInstance = hInst;
205  serverwnd_class = RegisterClassExW(&wndclass);
206 }
static const WCHAR wszInternetExplorer_Server[]
Definition: view.c:23
static LRESULT WINAPI serverwnd_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: view.c:146
struct _WNDCLASSEXW WNDCLASSEXW
ATOM WINAPI RegisterClassExW(_In_ CONST WNDCLASSEXW *)
static ATOM serverwnd_class
Definition: view.c:28
smooth NULL
Definition: ftsmooth.c:416
HINSTANCE hInstance
Definition: winuser.h:3196
#define CS_DBLCLKS
Definition: winuser.h:646
HINSTANCE hInst
Definition: dxdiag.c:13

Referenced by activate_window().

◆ serverwnd_proc()

static LRESULT WINAPI serverwnd_proc ( HWND  hwnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 146 of file view.c.

147 {
149 
150  static const WCHAR wszTHIS[] = {'T','H','I','S',0};
151 
152  if(msg == WM_CREATE) {
154  SetPropW(hwnd, wszTHIS, This);
155  }else {
156  This = GetPropW(hwnd, wszTHIS);
157  }
158 
159  switch(msg) {
160  case WM_CREATE:
161  This->hwnd = hwnd;
162  break;
163  case WM_PAINT:
165  break;
166  case WM_SIZE:
167  TRACE("(%p)->(WM_SIZE)\n", This);
168  if(This->nscontainer) {
169  INT ew=0, eh=0;
170 
171  if(!(This->hostinfo.dwFlags & (DOCHOSTUIFLAG_NO3DOUTERBORDER|DOCHOSTUIFLAG_NO3DBORDER))) {
174  }
175 
176  SetWindowPos(This->nscontainer->hwnd, NULL, ew, eh,
177  LOWORD(lParam) - 2*ew, HIWORD(lParam) - 2*eh,
179  }
180  break;
181  case WM_TIMER:
182  return on_timer(This);
183  case WM_SETFOCUS:
184  TRACE("(%p) WM_SETFOCUS\n", This);
185  nsIWebBrowserFocus_Activate(This->nscontainer->focus);
186  break;
187  case WM_MOUSEACTIVATE:
188  return MA_ACTIVATE;
189  }
190 
191  return DefWindowProcW(hwnd, msg, wParam, lParam);
192 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
static LRESULT on_timer(HTMLDocumentObj *This)
Definition: view.c:98
static void paint_document(HTMLDocumentObj *This)
Definition: view.c:35
#define MA_ACTIVATE
Definition: winuser.h:2476
#define SM_CXEDGE
Definition: winuser.h:998
#define SWP_NOZORDER
Definition: winuser.h:1232
int32_t INT
Definition: typedefs.h:58
WPARAM wParam
Definition: combotst.c:138
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
smooth NULL
Definition: ftsmooth.c:416
#define SM_CYEDGE
Definition: winuser.h:999
#define WM_MOUSEACTIVATE
Definition: winuser.h:1619
#define TRACE(s)
Definition: solgame.cpp:4
BOOL WINAPI SetPropW(_In_ HWND, _In_ LPCWSTR, _In_opt_ HANDLE)
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define WM_SIZE
Definition: winuser.h:1593
#define SWP_NOACTIVATE
Definition: winuser.h:1227
#define WM_TIMER
Definition: winuser.h:1724
int WINAPI GetSystemMetrics(_In_ int)
#define WM_PAINT
Definition: winuser.h:1602
HANDLE WINAPI GetPropW(_In_ HWND, _In_ LPCWSTR)
#define msg(x)
Definition: auth_time.c:54
#define WM_CREATE
Definition: winuser.h:1590
#define HIWORD(l)
Definition: typedefs.h:247
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define WM_SETFOCUS
Definition: winuser.h:1595
LPARAM lParam
Definition: combotst.c:139
#define LOWORD(l)
Definition: pedump.c:82

Referenced by register_serverwnd_class().

◆ show_tooltip()

void show_tooltip ( HTMLDocumentObj This,
DWORD  x,
DWORD  y,
LPCWSTR  text 
)

Definition at line 368 of file view.c.

369 {
370  TTTOOLINFOW toolinfo = {
371  sizeof(TTTOOLINFOW), 0, This->hwnd, 0xdeadbeef,
372  {x>2 ? x-2 : 0, y>0 ? y-2 : 0, x+2, y+2}, /* FIXME */
373  NULL, (LPWSTR)text, 0};
374  MSG msg = {This->hwnd, WM_MOUSEMOVE, 0, MAKELPARAM(x,y), 0, {x,y}};
375 
376  TRACE("(%p)->(%d %d %s)\n", This, x, y, debugstr_w(text));
377 
378  if(!This->tooltips_hwnd)
380 
381  SendMessageW(This->tooltips_hwnd, TTM_ADDTOOLW, 0, (LPARAM)&toolinfo);
382  SendMessageW(This->tooltips_hwnd, TTM_ACTIVATE, TRUE, 0);
383  SendMessageW(This->tooltips_hwnd, TTM_RELAYEVENT, 0, (LPARAM)&msg);
384 }
struct tagTOOLINFOW TTTOOLINFOW
#define TTM_RELAYEVENT
Definition: commctrl.h:1788
#define TRUE
Definition: types.h:120
const WCHAR * text
Definition: package.c:1827
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1827
#define MAKELPARAM(l, h)
Definition: winuser.h:3983
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
#define TTM_ACTIVATE
Definition: commctrl.h:1780
#define debugstr_w
Definition: kernel32.h:32
smooth NULL
Definition: ftsmooth.c:416
LONG_PTR LPARAM
Definition: windef.h:208
#define TRACE(s)
Definition: solgame.cpp:4
static void create_tooltips_window(HTMLDocumentObj *This)
Definition: view.c:349
#define TTM_ADDTOOLW
Definition: commctrl.h:1783
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define WM_MOUSEMOVE
Definition: winuser.h:1757
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
#define msg(x)
Definition: auth_time.c:54
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by nsTooltipListener_OnShowTooltip().

◆ tooltips_proc()

static LRESULT WINAPI tooltips_proc ( HWND  hwnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 327 of file view.c.

328 {
330 
331  TRACE("%d %p\n", msg, data);
332 
333  if(msg == TTM_WINDOWFROMPOINT) {
334  RECT rect;
335  POINT *pt = (POINT*)lParam;
336 
337  TRACE("TTM_WINDOWFROMPOINT (%d,%d)\n", pt->x, pt->y);
338 
339  GetWindowRect(data->doc->hwnd, &rect);
340 
341  if(rect.left <= pt->x && pt->x <= rect.right
342  && rect.top <= pt->y && pt->y <= rect.bottom)
343  return (LPARAM)data->doc->hwnd;
344  }
345 
346  return CallWindowProcW(data->proc, hwnd, msg, wParam, lParam);
347 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define pt(x, y)
Definition: drawing.c:79
& rect
Definition: startmenu.cpp:1413
WPARAM wParam
Definition: combotst.c:138
#define TTM_WINDOWFROMPOINT
Definition: commctrl.h:1807
LONG_PTR LPARAM
Definition: windef.h:208
#define TRACE(s)
Definition: solgame.cpp:4
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
HANDLE WINAPI GetPropW(_In_ HWND, _In_ LPCWSTR)
#define msg(x)
Definition: auth_time.c:54
LRESULT WINAPI CallWindowProcW(_In_ WNDPROC, _In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
static const WCHAR wszTooltipData[]
Definition: view.c:26
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
LPARAM lParam
Definition: combotst.c:139

Referenced by create_tooltips_window().

◆ update_doc()

void update_doc ( HTMLDocument This,
DWORD  flags 
)

Definition at line 62 of file view.c.

63 {
64  if(!This->doc_obj->update && This->doc_obj->hwnd)
65  SetTimer(This->doc_obj->hwnd, TIMER_ID, 100, NULL);
66 
67  This->doc_obj->update |= flags;
68 }
smooth NULL
Definition: ftsmooth.c:416
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
GLbitfield flags
Definition: glext.h:7161
#define TIMER_ID
Definition: view.c:21

Referenced by editor_exec_copy(), editor_exec_cut(), editor_exec_paste(), exec_bold(), exec_composesettings(), exec_delete(), exec_fontname(), exec_fontsize(), exec_forecolor(), exec_horizontalline(), exec_indent(), exec_italic(), exec_justifycenter(), exec_justifyleft(), exec_justifyright(), exec_orderlist(), exec_outdent(), exec_select_all(), exec_underline(), exec_unorderlist(), handle_keypress(), init_editor(), OleDocumentView_Show(), OleDocumentView_UIActivate(), prepare_for_binding(), and setup_edit_mode().

◆ update_title()

void update_title ( HTMLDocumentObj This)

Definition at line 70 of file view.c.

71 {
72  IOleCommandTarget *olecmd;
73  HRESULT hres;
74 
75  if(!(This->update & UPDATE_TITLE))
76  return;
77 
78  This->update &= ~UPDATE_TITLE;
79 
80  if(!This->client)
81  return;
82 
83  hres = IOleClientSite_QueryInterface(This->client, &IID_IOleCommandTarget, (void**)&olecmd);
84  if(SUCCEEDED(hres)) {
85  VARIANT title;
86  WCHAR empty[] = {0};
87 
88  V_VT(&title) = VT_BSTR;
90  IOleCommandTarget_Exec(olecmd, NULL, OLECMDID_SETTITLE, OLECMDEXECOPT_DONTPROMPTUSER,
91  &title, NULL);
93 
94  IOleCommandTarget_Release(olecmd);
95  }
96 }
smooth NULL
Definition: ftsmooth.c:416
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:238
HRESULT hres
Definition: protocol.c:465
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:79
#define UPDATE_TITLE
#define V_VT(A)
Definition: oleauto.h:211
#define V_BSTR(A)
Definition: oleauto.h:226
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
Definition: oleaut.c:271
BOOL empty
Definition: button.c:170
static char title[]
Definition: ps.c:92
#define SUCCEEDED(hr)
Definition: intsafe.h:49

Referenced by handle_load(), and on_timer().

◆ ViewObject_AddRef()

static ULONG WINAPI ViewObject_AddRef ( IViewObjectEx iface)
static

Definition at line 739 of file view.c.

740 {
742  return htmldoc_addref(This);
743 }
static HTMLDocument * impl_from_IViewObjectEx(IViewObjectEx *iface)
Definition: view.c:728
static ULONG htmldoc_addref(HTMLDocument *This)

◆ ViewObject_Draw()

static HRESULT WINAPI ViewObject_Draw ( IViewObjectEx iface,
DWORD  dwDrawAspect,
LONG  lindex,
void pvAspect,
DVTARGETDEVICE *  ptd,
HDC  hdcTargetDev,
HDC  hdcDraw,
LPCRECTL  lprcBounds,
LPCRECTL  lprcWBounds,
BOOL(CALLBACK *pfnContinue)(ULONG_PTR dwContinue)  ,
ULONG_PTR  dwContinue 
)
static

Definition at line 751 of file view.c.

754 {
756  FIXME("(%p)->(%d %d %p %p %p %p %p %p %p %ld)\n", This, dwDrawAspect, lindex, pvAspect,
757  ptd, hdcTargetDev, hdcDraw, lprcBounds, lprcWBounds, pfnContinue, dwContinue);
758  return E_NOTIMPL;
759 }
static HTMLDocument * impl_from_IViewObjectEx(IViewObjectEx *iface)
Definition: view.c:728
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ ViewObject_Freeze()

static HRESULT WINAPI ViewObject_Freeze ( IViewObjectEx iface,
DWORD  dwDrawAspect,
LONG  lindex,
void pvAspect,
DWORD pdwFreeze 
)
static

Definition at line 769 of file view.c.

771 {
773  FIXME("(%p)->(%d %d %p %p)\n", This, dwDrawAspect, lindex, pvAspect, pdwFreeze);
774  return E_NOTIMPL;
775 }
static HTMLDocument * impl_from_IViewObjectEx(IViewObjectEx *iface)
Definition: view.c:728
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ ViewObject_GetAdvise()

static HRESULT WINAPI ViewObject_GetAdvise ( IViewObjectEx iface,
DWORD pAspects,
DWORD pAdvf,
IAdviseSink **  ppAdvSink 
)
static

Definition at line 802 of file view.c.

803 {
805  FIXME("(%p)->(%p %p %p)\n", This, pAspects, pAdvf, ppAdvSink);
806  return E_NOTIMPL;
807 }
static HTMLDocument * impl_from_IViewObjectEx(IViewObjectEx *iface)
Definition: view.c:728
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ ViewObject_GetColorSet()

static HRESULT WINAPI ViewObject_GetColorSet ( IViewObjectEx iface,
DWORD  dwDrawAspect,
LONG  lindex,
void pvAspect,
DVTARGETDEVICE *  ptd,
HDC  hicTargetDev,
LOGPALETTE **  ppColorSet 
)
static

Definition at line 761 of file view.c.

763 {
765  FIXME("(%p)->(%d %d %p %p %p %p)\n", This, dwDrawAspect, lindex, pvAspect, ptd, hicTargetDev, ppColorSet);
766  return E_NOTIMPL;
767 }
static HTMLDocument * impl_from_IViewObjectEx(IViewObjectEx *iface)
Definition: view.c:728
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ ViewObject_GetExtent()

static HRESULT WINAPI ViewObject_GetExtent ( IViewObjectEx iface,
DWORD  dwDrawAspect,
LONG  lindex,
DVTARGETDEVICE *  ptd,
LPSIZEL  lpsizel 
)
static

Definition at line 809 of file view.c.

811 {
813  FIXME("(%p)->(%d %d %p %p)\n", This, dwDrawAspect, lindex, ptd, lpsizel);
814  return E_NOTIMPL;
815 }
static HTMLDocument * impl_from_IViewObjectEx(IViewObjectEx *iface)
Definition: view.c:728
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ ViewObject_GetNaturalExtent()

static HRESULT WINAPI ViewObject_GetNaturalExtent ( IViewObjectEx iface,
DWORD  dwAspect,
LONG  lindex,
DVTARGETDEVICE *  ptd,
HDC  hicTargetDev,
DVEXTENTINFO *  pExtentInfo,
LPSIZEL  pSizel 
)
static

Definition at line 848 of file view.c.

850 {
852  FIXME("(%p)->(%d %d %p %p %p %p\n", This, dwAspect,lindex, ptd,
853  hicTargetDev, pExtentInfo, pSizel);
854  return E_NOTIMPL;
855 }
static HTMLDocument * impl_from_IViewObjectEx(IViewObjectEx *iface)
Definition: view.c:728
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ ViewObject_GetRect()

static HRESULT WINAPI ViewObject_GetRect ( IViewObjectEx iface,
DWORD  dwAspect,
LPRECTL  pRect 
)
static

Definition at line 817 of file view.c.

818 {
820  FIXME("(%p)->(%d %p)\n", This, dwAspect, pRect);
821  return E_NOTIMPL;
822 }
static HTMLDocument * impl_from_IViewObjectEx(IViewObjectEx *iface)
Definition: view.c:728
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ ViewObject_GetViewStatus()

static HRESULT WINAPI ViewObject_GetViewStatus ( IViewObjectEx iface,
DWORD pdwStatus 
)
static

Definition at line 824 of file view.c.

825 {
827  FIXME("(%p)->(%p)\n", This, pdwStatus);
828  return E_NOTIMPL;
829 }
static HTMLDocument * impl_from_IViewObjectEx(IViewObjectEx *iface)
Definition: view.c:728
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ ViewObject_QueryHitPoint()

static HRESULT WINAPI ViewObject_QueryHitPoint ( IViewObjectEx iface,
DWORD  dwAspect,
LPCRECT  pRectBounds,
POINT  ptlLoc,
LONG  lCloseHint,
DWORD pHitResult 
)
static

Definition at line 831 of file view.c.

833 {
835  FIXME("(%p)->(%d %p (%d %d) %d %p)\n", This, dwAspect, pRectBounds, ptlLoc.x,
836  ptlLoc.y, lCloseHint, pHitResult);
837  return E_NOTIMPL;
838 }
long y
Definition: polytest.cpp:48
long x
Definition: polytest.cpp:48
static HTMLDocument * impl_from_IViewObjectEx(IViewObjectEx *iface)
Definition: view.c:728
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ ViewObject_QueryHitRect()

static HRESULT WINAPI ViewObject_QueryHitRect ( IViewObjectEx iface,
DWORD  dwAspect,
LPCRECT  pRectBounds,
LPCRECT  pRectLoc,
LONG  lCloseHint,
DWORD pHitResult 
)
static

Definition at line 840 of file view.c.

842 {
844  FIXME("(%p)->(%d %p %p %d %p)\n", This, dwAspect, pRectBounds, pRectLoc, lCloseHint, pHitResult);
845  return E_NOTIMPL;
846 }
static HTMLDocument * impl_from_IViewObjectEx(IViewObjectEx *iface)
Definition: view.c:728
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ ViewObject_QueryInterface()

static HRESULT WINAPI ViewObject_QueryInterface ( IViewObjectEx iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 733 of file view.c.

734 {
737 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
static HTMLDocument * impl_from_IViewObjectEx(IViewObjectEx *iface)
Definition: view.c:728
static HRESULT htmldoc_query_interface(HTMLDocument *This, REFIID riid, void **ppv)

◆ ViewObject_Release()

static ULONG WINAPI ViewObject_Release ( IViewObjectEx iface)
static

Definition at line 745 of file view.c.

746 {
748  return htmldoc_release(This);
749 }
static HTMLDocument * impl_from_IViewObjectEx(IViewObjectEx *iface)
Definition: view.c:728
static ULONG htmldoc_release(HTMLDocument *This)

◆ ViewObject_SetAdvise()

static HRESULT WINAPI ViewObject_SetAdvise ( IViewObjectEx iface,
DWORD  aspects,
DWORD  advf,
IAdviseSink pAdvSink 
)
static

Definition at line 784 of file view.c.

785 {
787 
788  TRACE("(%p)->(%d %d %p)\n", This, aspects, advf, pAdvSink);
789 
790  if(aspects != DVASPECT_CONTENT || advf != ADVF_PRIMEFIRST)
791  FIXME("unsupported arguments\n");
792 
793  if(This->doc_obj->view_sink)
794  IAdviseSink_Release(This->doc_obj->view_sink);
795  if(pAdvSink)
796  IAdviseSink_AddRef(pAdvSink);
797 
798  This->doc_obj->view_sink = pAdvSink;
799  return S_OK;
800 }
static HTMLDocument * impl_from_IViewObjectEx(IViewObjectEx *iface)
Definition: view.c:728
#define FIXME(fmt,...)
Definition: debug.h:111
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:51

◆ ViewObject_Unfreeze()

static HRESULT WINAPI ViewObject_Unfreeze ( IViewObjectEx iface,
DWORD  dwFreeze 
)
static

Definition at line 777 of file view.c.

778 {
780  FIXME("(%p)->(%d)\n", This, dwFreeze);
781  return E_NOTIMPL;
782 }
static HTMLDocument * impl_from_IViewObjectEx(IViewObjectEx *iface)
Definition: view.c:728
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WindowForBindingUI_AddRef()

static ULONG WINAPI WindowForBindingUI_AddRef ( IWindowForBindingUI iface)
static

Definition at line 906 of file view.c.

907 {
909  return htmldoc_addref(&This->basedoc);
910 }
static HTMLDocumentObj * impl_from_IWindowForBindingUI(IWindowForBindingUI *iface)
Definition: view.c:881
static ULONG htmldoc_addref(HTMLDocument *This)

◆ WindowForBindingUI_GetWindow()

static HRESULT WINAPI WindowForBindingUI_GetWindow ( IWindowForBindingUI iface,
REFGUID  rguidReason,
HWND phwnd 
)
static

Definition at line 918 of file view.c.

919 {
921 
922  TRACE("(%p)->(%s %p)\n", This, debugstr_guid(rguidReason), phwnd);
923 
924  *phwnd = This->hwnd;
925  return S_OK;
926 }
static HTMLDocumentObj * impl_from_IWindowForBindingUI(IWindowForBindingUI *iface)
Definition: view.c:881
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:51

◆ WindowForBindingUI_QueryInterface()

static HRESULT WINAPI WindowForBindingUI_QueryInterface ( IWindowForBindingUI iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 886 of file view.c.

887 {
889 
890  if(IsEqualGUID(&IID_IUnknown, riid)) {
891  TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
892  *ppv = &This->IWindowForBindingUI_iface;
893  }else if(IsEqualGUID(&IID_IWindowForBindingUI, riid)) {
894  TRACE("(%p)->(IID_IWindowForBindingUI %p)\n", This, ppv);
895  *ppv = &This->IWindowForBindingUI_iface;
896  }else {
897  WARN("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
898  *ppv = NULL;
899  return E_NOINTERFACE;
900  }
901 
902  IUnknown_AddRef((IUnknown*)*ppv);
903  return S_OK;
904 }
#define E_NOINTERFACE
Definition: winerror.h:2364
static HTMLDocumentObj * impl_from_IWindowForBindingUI(IWindowForBindingUI *iface)
Definition: view.c:881
REFIID riid
Definition: precomp.h:44
#define WARN(fmt,...)
Definition: debug.h:112
REFIID LPVOID * ppv
Definition: atlbase.h:39
smooth NULL
Definition: ftsmooth.c:416
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IUnknown
#define S_OK
Definition: intsafe.h:51
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112

◆ WindowForBindingUI_Release()

static ULONG WINAPI WindowForBindingUI_Release ( IWindowForBindingUI iface)
static

Definition at line 912 of file view.c.

913 {
915  return htmldoc_release(&This->basedoc);
916 }
static HTMLDocumentObj * impl_from_IWindowForBindingUI(IWindowForBindingUI *iface)
Definition: view.c:881
static ULONG htmldoc_release(HTMLDocument *This)

Variable Documentation

◆ OleDocumentViewVtbl

const IOleDocumentViewVtbl OleDocumentViewVtbl
static
Initial value:
= {
}
static HRESULT WINAPI OleDocumentView_UIActivate(IOleDocumentView *iface, BOOL fUIActivate)
Definition: view.c:554
static HRESULT WINAPI OleDocumentView_SetRectComplex(IOleDocumentView *iface, LPRECT prcView, LPRECT prcHScroll, LPRECT prcVScroll, LPRECT prcSizeBox)
Definition: view.c:516
static HRESULT WINAPI OleDocumentView_ApplyViewState(IOleDocumentView *iface, LPSTREAM pstm)
Definition: view.c:690
static HRESULT WINAPI OleDocumentView_Show(IOleDocumentView *iface, BOOL fShow)
Definition: view.c:524
static HRESULT WINAPI OleDocumentView_Clone(IOleDocumentView *iface, IOleInPlaceSite *pIPSiteNew, IOleDocumentView **ppViewNew)
Definition: view.c:697
static HRESULT WINAPI OleDocumentView_Open(IOleDocumentView *iface)
Definition: view.c:658
static HRESULT WINAPI OleDocumentView_SaveViewState(IOleDocumentView *iface, LPSTREAM pstm)
Definition: view.c:683
static HRESULT WINAPI OleDocumentView_SetRect(IOleDocumentView *iface, LPRECT prcView)
Definition: view.c:481
static ULONG WINAPI OleDocumentView_AddRef(IOleDocumentView *iface)
Definition: view.c:425
static HRESULT WINAPI OleDocumentView_GetInPlaceSite(IOleDocumentView *iface, IOleInPlaceSite **ppIPSite)
Definition: view.c:453
static HRESULT WINAPI OleDocumentView_CloseView(IOleDocumentView *iface, DWORD dwReserved)
Definition: view.c:665
static HRESULT WINAPI OleDocumentView_SetInPlaceSite(IOleDocumentView *iface, IOleInPlaceSite *pIPSite)
Definition: view.c:437
static ULONG WINAPI OleDocumentView_Release(IOleDocumentView *iface)
Definition: view.c:431
static HRESULT WINAPI OleDocumentView_QueryInterface(IOleDocumentView *iface, REFIID riid, void **ppvObject)
Definition: view.c:419
static HRESULT WINAPI OleDocumentView_GetRect(IOleDocumentView *iface, LPRECT prcView)
Definition: view.c:503
static HRESULT WINAPI OleDocumentView_GetDocument(IOleDocumentView *iface, IUnknown **ppunk)
Definition: view.c:468

Definition at line 705 of file view.c.

Referenced by HTMLDocument_View_Init().

◆ serverwnd_class

ATOM serverwnd_class = 0
static

Definition at line 28 of file view.c.

Referenced by activate_window(), and register_serverwnd_class().

◆ ViewObjectVtbl

const IViewObjectExVtbl ViewObjectVtbl
static
Initial value:
= {
}
static HRESULT WINAPI ViewObject_GetNaturalExtent(IViewObjectEx *iface, DWORD dwAspect, LONG lindex, DVTARGETDEVICE *ptd, HDC hicTargetDev, DVEXTENTINFO *pExtentInfo, LPSIZEL pSizel)
Definition: view.c:848
static HRESULT WINAPI ViewObject_SetAdvise(IViewObjectEx *iface, DWORD aspects, DWORD advf, IAdviseSink *pAdvSink)
Definition: view.c:784
static HRESULT WINAPI ViewObject_GetRect(IViewObjectEx *iface, DWORD dwAspect, LPRECTL pRect)
Definition: view.c:817
static HRESULT WINAPI ViewObject_GetExtent(IViewObjectEx *iface, DWORD dwDrawAspect, LONG lindex, DVTARGETDEVICE *ptd, LPSIZEL lpsizel)
Definition: view.c:809
static HRESULT WINAPI ViewObject_Unfreeze(IViewObjectEx *iface, DWORD dwFreeze)
Definition: view.c:777
static HRESULT WINAPI ViewObject_QueryInterface(IViewObjectEx *iface, REFIID riid, void **ppv)
Definition: view.c:733
static HRESULT WINAPI ViewObject_QueryHitRect(IViewObjectEx *iface, DWORD dwAspect, LPCRECT pRectBounds, LPCRECT pRectLoc, LONG lCloseHint, DWORD *pHitResult)
Definition: view.c:840
static HRESULT WINAPI ViewObject_Freeze(IViewObjectEx *iface, DWORD dwDrawAspect, LONG lindex, void *pvAspect, DWORD *pdwFreeze)
Definition: view.c:769
static HRESULT WINAPI ViewObject_GetColorSet(IViewObjectEx *iface, DWORD dwDrawAspect, LONG lindex, void *pvAspect, DVTARGETDEVICE *ptd, HDC hicTargetDev, LOGPALETTE **ppColorSet)
Definition: view.c:761
static HRESULT WINAPI ViewObject_Draw(IViewObjectEx *iface, DWORD dwDrawAspect, LONG lindex, void *pvAspect, DVTARGETDEVICE *ptd, HDC hdcTargetDev, HDC hdcDraw, LPCRECTL lprcBounds, LPCRECTL lprcWBounds, BOOL(CALLBACK *pfnContinue)(ULONG_PTR dwContinue), ULONG_PTR dwContinue)
Definition: view.c:751
static ULONG WINAPI ViewObject_Release(IViewObjectEx *iface)
Definition: view.c:745
static HRESULT WINAPI ViewObject_QueryHitPoint(IViewObjectEx *iface, DWORD dwAspect, LPCRECT pRectBounds, POINT ptlLoc, LONG lCloseHint, DWORD *pHitResult)
Definition: view.c:831
static ULONG WINAPI ViewObject_AddRef(IViewObjectEx *iface)
Definition: view.c:739
static HRESULT WINAPI ViewObject_GetAdvise(IViewObjectEx *iface, DWORD *pAspects, DWORD *pAdvf, IAdviseSink **ppAdvSink)
Definition: view.c:802
static HRESULT WINAPI ViewObject_GetViewStatus(IViewObjectEx *iface, DWORD *pdwStatus)
Definition: view.c:824

Definition at line 857 of file view.c.

Referenced by HTMLDocument_View_Init().

◆ WindowForBindingUIVtbl

const IWindowForBindingUIVtbl WindowForBindingUIVtbl
static
Initial value:
= {
}
static HRESULT WINAPI WindowForBindingUI_QueryInterface(IWindowForBindingUI *iface, REFIID riid, void **ppv)
Definition: view.c:886
static ULONG WINAPI WindowForBindingUI_Release(IWindowForBindingUI *iface)
Definition: view.c:912
static ULONG WINAPI WindowForBindingUI_AddRef(IWindowForBindingUI *iface)
Definition: view.c:906
static HRESULT WINAPI WindowForBindingUI_GetWindow(IWindowForBindingUI *iface, REFGUID rguidReason, HWND *phwnd)
Definition: view.c:918

Definition at line 928 of file view.c.

Referenced by init_binding_ui().

◆ wszInternetExplorer_Server

const WCHAR wszInternetExplorer_Server[]
static
Initial value:
=
{'I','n','t','e','r','n','e','t',' ','E','x','p','l','o','r','e','r','_','S','e','r','v','e','r',0}

Definition at line 23 of file view.c.

Referenced by activate_window(), and register_serverwnd_class().

◆ wszTooltipData

const WCHAR wszTooltipData[] = {'t','o','o','l','t','i','p','_','d','a','t','a',0}
static

Definition at line 26 of file view.c.

Referenced by create_tooltips_window(), and tooltips_proc().