Replaced GraphicsHDC from src/msw/renderer.cpp with wxDC::GetTempHDC().
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 5 Oct 2009 22:56:58 +0000 (22:56 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 5 Oct 2009 22:56:58 +0000 (22:56 +0000)
commit942d5e2d7223bde6ae7aceab3ddb3d417b55d48c
treeb84096612c0dbb11102290c7894ead1cf9abd236
parent6c9aaf7d0cf5d42e2e5d7383c1bf7ce2e51fc6af
Replaced GraphicsHDC from src/msw/renderer.cpp with wxDC::GetTempHDC().

wxDC::GetTempHDC() method provides a convenient and safe way to retrieve HDC
from a wxDC object, whether it is using GDI or GDI+. It is implemented using
(MSW-specific) virtual functions in wxDC and so doesn't need ugly hacks like
wxDynamicCast which were used in src/msw/renderer.cpp to achieve the same
effect.

Also, we now use GetTempHDC() consistently in all wxMSW rendering methods as
the old GraphicsHDC was only used in some of them meaning that many methods
didn't work at all with wxGCDC.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/dc.h
include/wx/dcgraph.h
src/msw/graphics.cpp
src/msw/renderer.cpp