]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/render/renddll.cpp
Fix bug [ 1170089 ] wxGenericDirCtrl doesn't show files
[wxWidgets.git] / samples / render / renddll.cpp
index 8d31e25e8ac988a6807b50cc544be14c0c7a41bd..b3afaf8336cb74f604da756dae650d38d8be5bb7 100644 (file)
@@ -5,14 +5,22 @@
 // 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/wxprec.h"
 
+#ifdef __BORLANDC__
+    #pragma hdrstop
+#endif
+
 #include "wx/renderer.h"
 
+#ifndef WX_PRECOMP
+    #include "wx/dc.h"
+#endif
+
 class MyDllRenderer : public wxRendererNative
 {
 public:
@@ -55,6 +63,16 @@ 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)
+    {
+    }
+
     // 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)
@@ -62,6 +80,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()
     {