]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/graphics.cpp
include iostream header when using std streams
[wxWidgets.git] / src / msw / graphics.cpp
index 4e847c1897b3509924084db420de538b5524bec7..a9d5c4c0651e07b414c6d944c82c61769d67cc8b 100644 (file)
@@ -1232,6 +1232,8 @@ public :
 
     virtual wxGraphicsContext * CreateContext( wxWindow* window );
 
+    virtual wxGraphicsContext * CreateMeasuringContext();
+
     // Path
 
     virtual wxGraphicsPath CreatePath();
@@ -1310,6 +1312,14 @@ wxGraphicsContext * wxGDIPlusRenderer::CreateContext( const wxWindowDC& dc)
     return new wxGDIPlusContext(this,(HDC) dc.GetHDC());
 }
 
+wxGraphicsContext * wxGDIPlusRenderer::CreateMeasuringContext()
+{
+    EnsureIsLoaded();
+    return NULL;
+    // TODO use GetDC(NULL) but then we have to release it from the context
+    //return new wxGDIPlusContext(this,(HDC) dc.GetHDC());
+}
+
 wxGraphicsContext * wxGDIPlusRenderer::CreateContextFromNativeContext( void * context )
 {
     EnsureIsLoaded();