]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/render/renddll.cpp
[1231183] 'cleanup: mismatched indentation' and other cleanings.
[wxWidgets.git] / samples / render / renddll.cpp
index 8493fb58106616453712a81116dca5b7fedaad17..51983bd6f0c024da830c34bc598a9e6eaca67367 100644 (file)
@@ -5,7 +5,7 @@
 // Modified by:
 // Created:     04.08.03
 // RCS-ID:      $Id$
-// Copyright:   (c) 2003 Vadim Zeitlin <vadim@wxwindows.org>
+// Copyright:   (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
 // Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
 
 #include "wx/renderer.h"
 
+#ifndef WX_PRECOMP
+    #include "wx/dc.h"
+#endif
+
 class MyDllRenderer : public wxRendererNative
 {
 public:
@@ -59,6 +63,26 @@ public:
     {
     }
 
+    // draw a combobox dropdown button
+    //
+    // flags may only use wxCONTROL_PRESSED
+    virtual void DrawComboBoxDropButton(wxWindow *win,
+                                        wxDC& dc,
+                                        const wxRect& rect,
+                                        int flags = 0)
+    {
+    }
+
+    // draw a dropdown arrow
+    //
+    // flags may use wxCONTROL_PRESSED and wxCONTROL_CURRENT
+    virtual void DrawDropArrow(wxWindow *win,
+                               wxDC& dc,
+                               const wxRect& rect,
+                               int flags = 0)
+    {
+    }
+
     // get the splitter parameters: the x field of the returned point is the
     // sash width and the y field is the border width
     virtual wxSplitterRenderParams GetSplitterParams(const wxWindow *win)
@@ -66,6 +90,12 @@ public:
         return wxSplitterRenderParams(0, 0, 0);
     }
 
+    virtual wxRendererVersion GetVersion() const
+    {
+        return wxRendererVersion(wxRendererVersion::Current_Version,
+                                 wxRendererVersion::Current_Age);
+    }
+
 #if 0 // just for debugging
     MyDllRenderer()
     {