added wxDC::GetHDC() for backwards compatibility with the existing wxMSW code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -399,6 +399,16 @@ wxBrushAttrsSetter::wxBrushAttrsSetter(wxMSWDCImpl& dc)
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxDC MSW-specific methods
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
WXHDC wxDC::GetHDC() const
|
||||
{
|
||||
wxMSWDCImpl * const impl = wxDynamicCast(GetImpl(), wxMSWDCImpl);
|
||||
return impl ? impl->GetHDC() : 0;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// wxMSWDCImpl
|
||||
// ---------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user