diff options
Diffstat (limited to 'chrome_frame/chrome_frame_activex_base.h')
-rw-r--r-- | chrome_frame/chrome_frame_activex_base.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/chrome_frame/chrome_frame_activex_base.h b/chrome_frame/chrome_frame_activex_base.h index 7a1993a..bfdabb0 100644 --- a/chrome_frame/chrome_frame_activex_base.h +++ b/chrome_frame/chrome_frame_activex_base.h @@ -191,17 +191,17 @@ END_MSG_MAP() // IViewObjectEx DECLARE_VIEW_STATUS(VIEWSTATUS_SOLIDBKGND | VIEWSTATUS_OPAQUE) - inline HRESULT IViewObject_Draw(DWORD draw_aspect, LONG index,
- void* aspect_info, DVTARGETDEVICE* ptd, HDC info_dc, HDC dc,
- LPCRECTL bounds, LPCRECTL win_bounds) {
- // ATL ASSERTs if dwDrawAspect is DVASPECT_DOCPRINT, so we cheat.
- DWORD aspect = draw_aspect;
- if (aspect == DVASPECT_DOCPRINT)
- aspect = DVASPECT_CONTENT;
-
- return CComControl<T>::IViewObject_Draw(aspect, index, aspect_info, ptd,
- info_dc, dc, bounds, win_bounds);
- }
+ inline HRESULT IViewObject_Draw(DWORD draw_aspect, LONG index, + void* aspect_info, DVTARGETDEVICE* ptd, HDC info_dc, HDC dc, + LPCRECTL bounds, LPCRECTL win_bounds) { + // ATL ASSERTs if dwDrawAspect is DVASPECT_DOCPRINT, so we cheat. + DWORD aspect = draw_aspect; + if (aspect == DVASPECT_DOCPRINT) + aspect = DVASPECT_CONTENT; + + return CComControl<T>::IViewObject_Draw(aspect, index, aspect_info, ptd, + info_dc, dc, bounds, win_bounds); + } DECLARE_PROTECT_FINAL_CONSTRUCT() |