- Generate events for two auxiliary mouse buttons in wxGTK (Marcin Wojdyr).
+MSW:
+
+- Added wxGCDC(wxEnhMetaFileDC) ctor (Marcin Wojdyr).
+
2.9.2: (released 2011-07-05)
------
wxGCDC( const wxMemoryDC& dc );
#if wxUSE_PRINTING_ARCHITECTURE
wxGCDC( const wxPrinterDC& dc );
+#endif
+#if defined(__WXMSW__) && wxUSE_ENH_METAFILE
+ wxGCDC( const wxEnhMetaFileDC& dc );
#endif
wxGCDC();
virtual ~wxGCDC();
wxGCDCImpl( wxDC *owner, const wxMemoryDC& dc );
#if wxUSE_PRINTING_ARCHITECTURE
wxGCDCImpl( wxDC *owner, const wxPrinterDC& dc );
+#endif
+#if defined(__WXMSW__) && wxUSE_ENH_METAFILE
+ wxGCDCImpl( wxDC *owner, const wxEnhMetaFileDC& dc );
#endif
wxGCDCImpl( wxDC *owner );
*/
wxGCDC( const wxPrinterDC& dc );
+ /**
+ Constructs a wxGCDC from a wxEnhMetaFileDC.
+
+ This constructor is only available in wxMSW port and when @c
+ wxUSE_ENH_METAFILE build option is enabled, i.e. when wxEnhMetaFileDC
+ class itself is available.
+
+ @since 2.9.3
+ */
+ wxGCDC( const wxEnhMetaFileDC& dc );
+
/**
Retrieves associated wxGraphicsContext
*/
}
#endif
+#if defined(__WXMSW__) && wxUSE_ENH_METAFILE
+wxGCDC::wxGCDC(const wxEnhMetaFileDC& dc)
+ : wxDC(new wxGCDCImpl(this, dc))
+{
+}
+#endif
+
wxGCDC::wxGCDC() :
wxDC( new wxGCDCImpl( this ) )
{
}
#endif
+#if defined(__WXMSW__) && wxUSE_ENH_METAFILE
+wxGCDCImpl::wxGCDCImpl(wxDC *owner, const wxEnhMetaFileDC& dc)
+ : wxDCImpl(owner)
+{
+ Init();
+ SetGraphicsContext(wxGraphicsContext::Create(dc));
+}
+#endif
+
void wxGCDCImpl::Init()
{
m_ok = false;