Fix wxCairoContext creation from wxWindow under MSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 16 Apr 2012 14:30:02 +0000 (14:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 16 Apr 2012 14:30:02 +0000 (14:30 +0000)
commit365d11bec30b70a437f346f10ed7b0d115d67846
treea4f22382d5a8f31b240efef760b905307ff9ccba
parentbadf8578b234a1f64ce4a9aa3a61b49a7c7210d0
Fix wxCairoContext creation from wxWindow under MSW.

cairo_win32_surface_create() must be passed the window HDC and not HWND
itself, the old code calling it was broken.

Add WindowHDC object and pass its HDC to this function now to make it work.

Closes #14194.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/generic/graphicc.cpp