2 * Copyright 2005-2006 Jacek Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
34 #include "wine/debug.h"
36 #include "mshtml_private.h"
38 WINE_DEFAULT_DEBUG_CHANNEL(mshtml
);
40 static const WCHAR wszInternetExplorer_Server
[] =
41 {'I','n','t','e','r','n','e','t',' ','E','x','p','l','o','r','e','r','_','S','e','r','v','e','r',0};
43 static const WCHAR wszTooltipData
[] = {'t','o','o','l','t','i','p','_','d','a','t','a',0};
45 static ATOM serverwnd_class
= 0;
52 static void paint_disabled(HWND hwnd
) {
58 WCHAR wszHTMLDisabled
[100];
60 LoadStringW(hInst
, IDS_HTMLDISABLED
, wszHTMLDisabled
, sizeof(wszHTMLDisabled
)/sizeof(WCHAR
));
62 font
= CreateFontA(25,0,0,0,400,0,0,0,ANSI_CHARSET
,0,0,DEFAULT_QUALITY
,DEFAULT_PITCH
,NULL
);
63 brush
= CreateSolidBrush(RGB(255,255,255));
64 GetClientRect(hwnd
, &rect
);
66 hdc
= BeginPaint(hwnd
, &ps
);
67 SelectObject(hdc
, font
);
68 SelectObject(hdc
, brush
);
69 Rectangle(hdc
, rect
.left
, rect
.top
, rect
.right
, rect
.bottom
);
70 DrawTextW(hdc
, wszHTMLDisabled
,-1, &rect
, DT_CENTER
| DT_SINGLELINE
| DT_VCENTER
);
77 static void activate_gecko(HTMLDocument
*This
)
79 TRACE("(%p) %p\n", This
, This
->nscontainer
->window
);
81 SetParent(This
->nscontainer
->hwnd
, This
->hwnd
);
82 ShowWindow(This
->nscontainer
->hwnd
, SW_SHOW
);
84 nsIBaseWindow_SetVisibility(This
->nscontainer
->window
, TRUE
);
85 nsIBaseWindow_SetEnabled(This
->nscontainer
->window
, TRUE
);
86 nsIWebBrowserFocus_Activate(This
->nscontainer
->focus
);
89 static LRESULT WINAPI
serverwnd_proc(HWND hwnd
, UINT msg
, WPARAM wParam
, LPARAM lParam
)
93 static const WCHAR wszTHIS
[] = {'T','H','I','S',0};
95 if(msg
== WM_CREATE
) {
96 This
= *(HTMLDocument
**)lParam
;
97 SetPropW(hwnd
, wszTHIS
, This
);
99 This
= (HTMLDocument
*)GetPropW(hwnd
, wszTHIS
);
105 if(This
->nscontainer
)
106 activate_gecko(This
);
109 if(!This
->nscontainer
)
110 paint_disabled(hwnd
);
113 TRACE("(%p)->(WM_SIZE)\n", This
);
114 if(This
->nscontainer
)
115 SetWindowPos(This
->nscontainer
->hwnd
, NULL
, 0, 0, LOWORD(lParam
), HIWORD(lParam
),
116 SWP_NOZORDER
| SWP_NOACTIVATE
);
119 return DefWindowProcW(hwnd
, msg
, wParam
, lParam
);
122 static void register_serverwnd_class(void)
124 static WNDCLASSEXW wndclass
= {
128 0, 0, NULL
, NULL
, NULL
, NULL
, NULL
,
129 wszInternetExplorer_Server
,
132 wndclass
.hInstance
= hInst
;
133 serverwnd_class
= RegisterClassExW(&wndclass
);
136 static HRESULT
activate_window(HTMLDocument
*This
)
138 IOleInPlaceUIWindow
*pIPWnd
;
139 IOleInPlaceFrame
*pIPFrame
;
140 IOleCommandTarget
*cmdtrg
;
141 RECT posrect
, cliprect
;
142 OLEINPLACEFRAMEINFO frameinfo
;
147 register_serverwnd_class();
149 hres
= IOleInPlaceSite_CanInPlaceActivate(This
->ipsite
);
151 WARN("CanInPlaceActivate returned: %08lx\n", hres
);
152 return FAILED(hres
) ? hres
: E_FAIL
;
155 hres
= IOleInPlaceSite_GetWindowContext(This
->ipsite
, &pIPFrame
, &pIPWnd
, &posrect
, &cliprect
, &frameinfo
);
157 WARN("GetWindowContext failed: %08lx\n", hres
);
162 IOleInPlaceUIWindow_Release(pIPWnd
);
163 TRACE("got window context: %p %p {%ld %ld %ld %ld} {%ld %ld %ld %ld} {%d %x %p %p %d}\n",
164 pIPFrame
, pIPWnd
, posrect
.left
, posrect
.top
, posrect
.right
, posrect
.bottom
,
165 cliprect
.left
, cliprect
.top
, cliprect
.right
, cliprect
.bottom
,
166 frameinfo
.cb
, frameinfo
.fMDIApp
, frameinfo
.hwndFrame
, frameinfo
.haccel
, frameinfo
.cAccelEntries
);
168 hres
= IOleInPlaceSite_GetWindow(This
->ipsite
, &parent_hwnd
);
170 WARN("GetWindow failed: %08lx\n", hres
);
174 TRACE("got parent window %p\n", parent_hwnd
);
177 if(GetParent(This
->hwnd
) != parent_hwnd
)
178 SetParent(This
->hwnd
, parent_hwnd
);
179 SetWindowPos(This
->hwnd
, HWND_TOP
,
180 posrect
.left
, posrect
.top
, posrect
.right
-posrect
.left
, posrect
.bottom
-posrect
.top
,
181 SWP_NOACTIVATE
| SWP_SHOWWINDOW
);
183 CreateWindowExW(0, wszInternetExplorer_Server
, NULL
,
184 WS_CHILD
| WS_CLIPSIBLINGS
| WS_CLIPCHILDREN
,
185 posrect
.left
, posrect
.top
, posrect
.right
-posrect
.left
, posrect
.bottom
-posrect
.top
,
186 parent_hwnd
, NULL
, hInst
, This
);
188 TRACE("Created window %p\n", This
->hwnd
);
190 SetWindowPos(This
->hwnd
, NULL
, 0, 0, 0, 0,
191 SWP_NOSIZE
| SWP_NOMOVE
| SWP_NOZORDER
| SWP_NOREDRAW
| SWP_NOACTIVATE
| SWP_SHOWWINDOW
);
192 RedrawWindow(This
->hwnd
, NULL
, NULL
, RDW_INVALIDATE
| RDW_NOERASE
| RDW_ALLCHILDREN
);
193 SetFocus(This
->hwnd
);
196 * Windows implementation calls:
197 * RegisterWindowMessage("MSWHEEL_ROLLMSG");
198 * SetTimer(This->hwnd, TIMER_ID, 100, NULL);
202 This
->in_place_active
= TRUE
;
203 hres
= IOleInPlaceSite_OnInPlaceActivate(This
->ipsite
);
205 WARN("OnInPlaceActivate failed: %08lx\n", hres
);
206 This
->in_place_active
= FALSE
;
210 hres
= IOleClientSite_QueryInterface(This
->client
, &IID_IOleCommandTarget
, (void**)&cmdtrg
);
211 if(SUCCEEDED(hres
)) {
214 IOleInPlaceFrame_SetStatusText(pIPFrame
, NULL
);
218 IOleCommandTarget_Exec(cmdtrg
, NULL
, OLECMDID_SETPROGRESSMAX
,
219 OLECMDEXECOPT_DONTPROMPTUSER
, &var
, NULL
);
220 IOleCommandTarget_Exec(cmdtrg
, NULL
, OLECMDID_SETPROGRESSPOS
,
221 OLECMDEXECOPT_DONTPROMPTUSER
, &var
, NULL
);
223 IOleCommandTarget_Release(cmdtrg
);
227 IOleInPlaceFrame_Release(This
->frame
);
228 This
->frame
= pIPFrame
;
230 This
->window_active
= TRUE
;
235 static LRESULT
tooltips_proc(HWND hwnd
, UINT msg
, WPARAM wParam
, LPARAM lParam
)
237 tooltip_data
*data
= GetPropW(hwnd
, wszTooltipData
);
239 TRACE("%d %p\n", msg
, data
);
241 if(msg
== TTM_WINDOWFROMPOINT
) {
243 POINT
*pt
= (POINT
*)lParam
;
245 TRACE("TTM_WINDOWFROMPOINT (%ld,%ld)\n", pt
->x
, pt
->y
);
247 GetWindowRect(data
->doc
->hwnd
, &rect
);
249 if(rect
.left
<= pt
->x
&& pt
->x
<= rect
.right
250 && rect
.top
<= pt
->y
&& pt
->y
<= rect
.bottom
)
251 return (LPARAM
)data
->doc
->hwnd
;
254 return CallWindowProcW(data
->proc
, hwnd
, msg
, wParam
, lParam
);
257 static void create_tooltips_window(HTMLDocument
*This
)
259 tooltip_data
*data
= mshtml_alloc(sizeof(*data
));
261 This
->tooltips_hwnd
= CreateWindowExW(0, TOOLTIPS_CLASSW
, NULL
, TTS_NOPREFIX
| WS_POPUP
,
262 CW_USEDEFAULT
, CW_USEDEFAULT
, 10, 10, This
->hwnd
, NULL
, hInst
, NULL
);
265 data
->proc
= (WNDPROC
)GetWindowLongPtrW(This
->tooltips_hwnd
, GWLP_WNDPROC
);
267 SetPropW(This
->tooltips_hwnd
, wszTooltipData
, data
);
269 SetWindowLongPtrW(This
->tooltips_hwnd
, GWLP_WNDPROC
, (LONG_PTR
)tooltips_proc
);
271 SetWindowPos(This
->tooltips_hwnd
, HWND_TOPMOST
,0, 0, 0, 0,
272 SWP_NOMOVE
| SWP_NOSIZE
| SWP_NOACTIVATE
);
276 void show_tooltip(HTMLDocument
*This
, DWORD x
, DWORD y
, LPCWSTR text
)
278 TTTOOLINFOW toolinfo
= {
279 sizeof(TTTOOLINFOW
), 0, This
->hwnd
, 0xdeadbeef,
280 {x
>2 ? x
-2 : 0, y
>0 ? y
-2 : 0, x
+2, y
+2}, /* FIXME */
281 NULL
, (LPWSTR
)text
, 0};
282 MSG msg
= {This
->hwnd
, WM_MOUSEMOVE
, 0, MAKELPARAM(x
,y
), 0, {x
,y
}};
284 TRACE("(%p)->(%ld %ld %s)\n", This
, x
, y
, debugstr_w(text
));
286 if(!This
->tooltips_hwnd
)
287 create_tooltips_window(This
);
289 SendMessageW(This
->tooltips_hwnd
, TTM_ADDTOOLW
, 0, (LPARAM
)&toolinfo
);
290 SendMessageW(This
->tooltips_hwnd
, TTM_ACTIVATE
, TRUE
, 0);
291 SendMessageW(This
->tooltips_hwnd
, TTM_RELAYEVENT
, 0, (LPARAM
)&msg
);
294 void hide_tooltip(HTMLDocument
*This
)
296 TTTOOLINFOW toolinfo
= {
297 sizeof(TTTOOLINFOW
), 0, This
->hwnd
, 0xdeadbeef,
298 {0,0,0,0}, NULL
, NULL
, 0};
300 TRACE("(%p)\n", This
);
302 SendMessageW(This
->tooltips_hwnd
, TTM_DELTOOLW
, 0, (LPARAM
)&toolinfo
);
303 SendMessageW(This
->tooltips_hwnd
, TTM_ACTIVATE
, FALSE
, 0);
306 /**********************************************************
307 * IOleDocumentView implementation
310 #define DOCVIEW_THIS(iface) DEFINE_THIS(HTMLDocument, OleDocumentView, iface)
312 static HRESULT WINAPI
OleDocumentView_QueryInterface(IOleDocumentView
*iface
, REFIID riid
, void **ppvObject
)
314 HTMLDocument
*This
= DOCVIEW_THIS(iface
);
315 return IHTMLDocument2_QueryInterface(HTMLDOC(This
), riid
, ppvObject
);
318 static ULONG WINAPI
OleDocumentView_AddRef(IOleDocumentView
*iface
)
320 HTMLDocument
*This
= DOCVIEW_THIS(iface
);
321 return IHTMLDocument2_AddRef(HTMLDOC(This
));
324 static ULONG WINAPI
OleDocumentView_Release(IOleDocumentView
*iface
)
326 HTMLDocument
*This
= DOCVIEW_THIS(iface
);
327 return IHTMLDocument2_Release(HTMLDOC(This
));
330 static HRESULT WINAPI
OleDocumentView_SetInPlaceSite(IOleDocumentView
*iface
, IOleInPlaceSite
*pIPSite
)
332 HTMLDocument
*This
= DOCVIEW_THIS(iface
);
333 TRACE("(%p)->(%p)\n", This
, pIPSite
);
336 IOleInPlaceSite_AddRef(pIPSite
);
339 IOleInPlaceSite_Release(This
->ipsite
);
341 This
->ipsite
= pIPSite
;
345 static HRESULT WINAPI
OleDocumentView_GetInPlaceSite(IOleDocumentView
*iface
, IOleInPlaceSite
**ppIPSite
)
347 HTMLDocument
*This
= DOCVIEW_THIS(iface
);
348 TRACE("(%p)->(%p)\n", This
, ppIPSite
);
354 IOleInPlaceSite_AddRef(This
->ipsite
);
356 *ppIPSite
= This
->ipsite
;
360 static HRESULT WINAPI
OleDocumentView_GetDocument(IOleDocumentView
*iface
, IUnknown
**ppunk
)
362 HTMLDocument
*This
= DOCVIEW_THIS(iface
);
363 TRACE("(%p)->(%p)\n", This
, ppunk
);
368 IHTMLDocument2_AddRef(HTMLDOC(This
));
369 *ppunk
= (IUnknown
*)HTMLDOC(This
);
373 static HRESULT WINAPI
OleDocumentView_SetRect(IOleDocumentView
*iface
, LPRECT prcView
)
375 HTMLDocument
*This
= DOCVIEW_THIS(iface
);
378 TRACE("(%p)->(%p)\n", This
, prcView
);
384 GetClientRect(This
->hwnd
, &rect
);
385 if(memcmp(prcView
, &rect
, sizeof(RECT
))) {
386 InvalidateRect(This
->hwnd
,NULL
,TRUE
);
387 SetWindowPos(This
->hwnd
, NULL
, prcView
->left
, prcView
->top
, prcView
->right
,
388 prcView
->bottom
, SWP_NOZORDER
| SWP_NOACTIVATE
);
395 static HRESULT WINAPI
OleDocumentView_GetRect(IOleDocumentView
*iface
, LPRECT prcView
)
397 HTMLDocument
*This
= DOCVIEW_THIS(iface
);
399 TRACE("(%p)->(%p)\n", This
, prcView
);
404 GetClientRect(This
->hwnd
, prcView
);
408 static HRESULT WINAPI
OleDocumentView_SetRectComplex(IOleDocumentView
*iface
, LPRECT prcView
,
409 LPRECT prcHScroll
, LPRECT prcVScroll
, LPRECT prcSizeBox
)
411 HTMLDocument
*This
= DOCVIEW_THIS(iface
);
412 FIXME("(%p)->(%p %p %p %p)\n", This
, prcView
, prcHScroll
, prcVScroll
, prcSizeBox
);
416 static HRESULT WINAPI
OleDocumentView_Show(IOleDocumentView
*iface
, BOOL fShow
)
418 HTMLDocument
*This
= DOCVIEW_THIS(iface
);
421 TRACE("(%p)->(%x)\n", This
, fShow
);
424 if(!This
->ui_active
) {
425 hres
= activate_window(This
);
429 ShowWindow(This
->hwnd
, SW_SHOW
);
431 ShowWindow(This
->hwnd
, SW_HIDE
);
437 static HRESULT WINAPI
OleDocumentView_UIActivate(IOleDocumentView
*iface
, BOOL fUIActivate
)
439 HTMLDocument
*This
= DOCVIEW_THIS(iface
);
442 TRACE("(%p)->(%x)\n", This
, fUIActivate
);
445 FIXME("This->ipsite = NULL\n");
453 if(!This
->window_active
) {
454 hres
= activate_window(This
);
459 hres
= IOleInPlaceSite_OnUIActivate(This
->ipsite
);
460 if(SUCCEEDED(hres
)) {
461 OLECHAR wszHTMLDocument
[30];
462 LoadStringW(hInst
, IDS_HTMLDOCUMENT
, wszHTMLDocument
,
463 sizeof(wszHTMLDocument
)/sizeof(WCHAR
));
464 IOleInPlaceFrame_SetActiveObject(This
->frame
, ACTOBJ(This
), wszHTMLDocument
);
466 FIXME("OnUIActivate failed: %08lx\n", hres
);
467 IOleInPlaceFrame_Release(This
->frame
);
469 This
->ui_active
= FALSE
;
473 hres
= IDocHostUIHandler_ShowUI(This
->hostui
, 0, ACTOBJ(This
), CMDTARGET(This
),
476 IDocHostUIHandler_HideUI(This
->hostui
);
478 This
->ui_active
= TRUE
;
480 This
->window_active
= FALSE
;
481 if(This
->ui_active
) {
482 This
->ui_active
= FALSE
;
484 IOleInPlaceFrame_SetActiveObject(This
->frame
, NULL
, NULL
);
486 IDocHostUIHandler_HideUI(This
->hostui
);
488 IOleInPlaceSite_OnUIDeactivate(This
->ipsite
, FALSE
);
494 static HRESULT WINAPI
OleDocumentView_Open(IOleDocumentView
*iface
)
496 HTMLDocument
*This
= DOCVIEW_THIS(iface
);
497 FIXME("(%p)\n", This
);
501 static HRESULT WINAPI
OleDocumentView_CloseView(IOleDocumentView
*iface
, DWORD dwReserved
)
503 HTMLDocument
*This
= DOCVIEW_THIS(iface
);
504 TRACE("(%p)->(%lx)\n", This
, dwReserved
);
507 WARN("dwReserved = %ld\n", dwReserved
);
510 * Windows implementation calls QueryInterface(IID_IOleCommandTarget),
511 * QueryInterface(IID_IOleControlSite) and KillTimer
514 IOleDocumentView_Show(iface
, FALSE
);
519 static HRESULT WINAPI
OleDocumentView_SaveViewState(IOleDocumentView
*iface
, LPSTREAM pstm
)
521 HTMLDocument
*This
= DOCVIEW_THIS(iface
);
522 FIXME("(%p)->(%p)\n", This
, pstm
);
526 static HRESULT WINAPI
OleDocumentView_ApplyViewState(IOleDocumentView
*iface
, LPSTREAM pstm
)
528 HTMLDocument
*This
= DOCVIEW_THIS(iface
);
529 FIXME("(%p)->(%p)\n", This
, pstm
);
533 static HRESULT WINAPI
OleDocumentView_Clone(IOleDocumentView
*iface
, IOleInPlaceSite
*pIPSiteNew
,
534 IOleDocumentView
**ppViewNew
)
536 HTMLDocument
*This
= DOCVIEW_THIS(iface
);
537 FIXME("(%p)->(%p %p)\n", This
, pIPSiteNew
, ppViewNew
);
543 static const IOleDocumentViewVtbl OleDocumentViewVtbl
= {
544 OleDocumentView_QueryInterface
,
545 OleDocumentView_AddRef
,
546 OleDocumentView_Release
,
547 OleDocumentView_SetInPlaceSite
,
548 OleDocumentView_GetInPlaceSite
,
549 OleDocumentView_GetDocument
,
550 OleDocumentView_SetRect
,
551 OleDocumentView_GetRect
,
552 OleDocumentView_SetRectComplex
,
553 OleDocumentView_Show
,
554 OleDocumentView_UIActivate
,
555 OleDocumentView_Open
,
556 OleDocumentView_CloseView
,
557 OleDocumentView_SaveViewState
,
558 OleDocumentView_ApplyViewState
,
559 OleDocumentView_Clone
562 /**********************************************************
563 * IViewObject implementation
566 #define VIEWOBJ_THIS(iface) DEFINE_THIS(HTMLDocument, ViewObject2, iface)
568 static HRESULT WINAPI
ViewObject_QueryInterface(IViewObject2
*iface
, REFIID riid
, void **ppvObject
)
570 HTMLDocument
*This
= VIEWOBJ_THIS(iface
);
571 return IHTMLDocument2_QueryInterface(HTMLDOC(This
), riid
, ppvObject
);
574 static ULONG WINAPI
ViewObject_AddRef(IViewObject2
*iface
)
576 HTMLDocument
*This
= VIEWOBJ_THIS(iface
);
577 return IHTMLDocument2_AddRef(HTMLDOC(This
));
580 static ULONG WINAPI
ViewObject_Release(IViewObject2
*iface
)
582 HTMLDocument
*This
= VIEWOBJ_THIS(iface
);
583 return IHTMLDocument2_Release(HTMLDOC(This
));
586 static HRESULT WINAPI
ViewObject_Draw(IViewObject2
*iface
, DWORD dwDrawAspect
, LONG lindex
, void *pvAspect
,
587 DVTARGETDEVICE
*ptd
, HDC hdcTargetDev
, HDC hdcDraw
, LPCRECTL lprcBounds
,
588 LPCRECTL lprcWBounds
, BOOL (CALLBACK
*pfnContinue
)(ULONG_PTR dwContinue
), ULONG_PTR dwContinue
)
590 HTMLDocument
*This
= VIEWOBJ_THIS(iface
);
591 FIXME("(%p)->(%ld %ld %p %p %p %p %p %p %p %ld)\n", This
, dwDrawAspect
, lindex
, pvAspect
,
592 ptd
, hdcTargetDev
, hdcDraw
, lprcBounds
, lprcWBounds
, pfnContinue
, dwContinue
);
596 static HRESULT WINAPI
ViewObject_GetColorSet(IViewObject2
*iface
, DWORD dwDrawAspect
, LONG lindex
, void *pvAspect
,
597 DVTARGETDEVICE
*ptd
, HDC hicTargetDev
, LOGPALETTE
**ppColorSet
)
599 HTMLDocument
*This
= VIEWOBJ_THIS(iface
);
600 FIXME("(%p)->(%ld %ld %p %p %p %p)\n", This
, dwDrawAspect
, lindex
, pvAspect
, ptd
, hicTargetDev
, ppColorSet
);
604 static HRESULT WINAPI
ViewObject_Freeze(IViewObject2
*iface
, DWORD dwDrawAspect
, LONG lindex
,
605 void *pvAspect
, DWORD
*pdwFreeze
)
607 HTMLDocument
*This
= VIEWOBJ_THIS(iface
);
608 FIXME("(%p)->(%ld %ld %p %p)\n", This
, dwDrawAspect
, lindex
, pvAspect
, pdwFreeze
);
612 static HRESULT WINAPI
ViewObject_Unfreeze(IViewObject2
*iface
, DWORD dwFreeze
)
614 HTMLDocument
*This
= VIEWOBJ_THIS(iface
);
615 FIXME("(%p)->(%ld)\n", This
, dwFreeze
);
619 static HRESULT WINAPI
ViewObject_SetAdvise(IViewObject2
*iface
, DWORD aspects
, DWORD advf
, IAdviseSink
*pAdvSink
)
621 HTMLDocument
*This
= VIEWOBJ_THIS(iface
);
622 FIXME("(%p)->(%ld %ld %p)\n", This
, aspects
, advf
, pAdvSink
);
626 static HRESULT WINAPI
ViewObject_GetAdvise(IViewObject2
*iface
, DWORD
*pAspects
, DWORD
*pAdvf
, IAdviseSink
**ppAdvSink
)
628 HTMLDocument
*This
= VIEWOBJ_THIS(iface
);
629 FIXME("(%p)->(%p %p %p)\n", This
, pAspects
, pAdvf
, ppAdvSink
);
633 static HRESULT WINAPI
ViewObject_GetExtent(IViewObject2
*iface
, DWORD dwDrawAspect
, LONG lindex
,
634 DVTARGETDEVICE
* ptd
, LPSIZEL lpsizel
)
636 HTMLDocument
*This
= VIEWOBJ_THIS(iface
);
637 FIXME("(%p)->(%ld %ld %p %p)\n", This
, dwDrawAspect
, lindex
, ptd
, lpsizel
);
643 static const IViewObject2Vtbl ViewObjectVtbl
= {
644 ViewObject_QueryInterface
,
648 ViewObject_GetColorSet
,
651 ViewObject_SetAdvise
,
652 ViewObject_GetAdvise
,
656 void HTMLDocument_View_Init(HTMLDocument
*This
)
658 This
->lpOleDocumentViewVtbl
= &OleDocumentViewVtbl
;
659 This
->lpViewObject2Vtbl
= &ViewObjectVtbl
;
664 This
->tooltips_hwnd
= NULL
;
666 This
->in_place_active
= FALSE
;
667 This
->ui_active
= FALSE
;
668 This
->window_active
= FALSE
;