summaryrefslogtreecommitdiffstats
path: root/src/activeqt/control/qaxserverbase.cpp
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@theqtcompany.com>2016-03-07 19:31:23 +0100
committerLiang Qi <liang.qi@theqtcompany.com>2016-03-07 19:31:23 +0100
commit7477c86107ac0f5d344b380b38118c3a90f994a7 (patch)
treedfab513c73345083f9ff7cf41438a530cb78cb8a /src/activeqt/control/qaxserverbase.cpp
parent05808fb8b011c760a2af6dd520b781447db4a0ba (diff)
parent7c5d5ab0d6ab20f0052dedddcd7df5eb1d5eaa3d (diff)
Merge remote-tracking branch 'origin/5.6' into 5.7
Diffstat (limited to 'src/activeqt/control/qaxserverbase.cpp')
-rw-r--r--src/activeqt/control/qaxserverbase.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/activeqt/control/qaxserverbase.cpp b/src/activeqt/control/qaxserverbase.cpp
index d6af214..b131e76 100644
--- a/src/activeqt/control/qaxserverbase.cpp
+++ b/src/activeqt/control/qaxserverbase.cpp
@@ -3097,6 +3097,8 @@ HRESULT WINAPI QAxServerBase::Save(LPCOLESTR fileName, BOOL fRemember)
return E_FAIL;
}
+Q_GUI_EXPORT HBITMAP qt_pixmapToWinHBITMAP(const QPixmap &p, int hbitmapFormat = 0);
+
//**** IViewObject
/*
Draws the widget into the provided device context.
@@ -3135,7 +3137,7 @@ HRESULT WINAPI QAxServerBase::Draw(DWORD dwAspect, LONG /* lindex */, void * /*
::LPtoDP(hicTargetDev, (LPPOINT)&rc, 2);
const QPixmap pm = qt.widget->grab();
- HBITMAP hbm = qaxPixmapToWinHBITMAP(pm);
+ HBITMAP hbm = qt_pixmapToWinHBITMAP(pm);
HDC hdc = CreateCompatibleDC(0);
SelectObject(hdc, hbm);
::StretchBlt(hdcDraw, rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top, hdc, 0, 0,pm.width(), pm.height(), SRCCOPY);