]> git.saurik.com Git - wxWidgets.git/commitdiff
No changes, just move wxMSW wxButton::MakeOwnerDrawn() around.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 Feb 2011 12:47:31 +0000 (12:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 Feb 2011 12:47:31 +0000 (12:47 +0000)
Put this method in the existing private section at the end of the class
instead of having an extra access specifier just for it for some reason.

Also add a comment explaining what it does and when is it used.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/button.h

index ee1d197e9dadd5a2d58b89f7fa554c16489c4635..587e46e00432173f0600ec226e30c78f560461b3 100644 (file)
@@ -63,9 +63,6 @@ public:
     // returns true if the platform should explicitly apply a theme border
     virtual bool CanApplyThemeBorder() const { return false; }
 
-private:
-    void MakeOwnerDrawn();
-
 protected:
     // send a notification event, return true if processed
     bool SendClickEvent();
@@ -100,6 +97,11 @@ protected:
     bool m_authNeeded;
 
 private:
+    // Switches button into owner-drawn mode: this is used if we need to draw
+    // something not supported by the native control, such as using non default
+    // colours or a bitmap on pre-XP systems.
+    void MakeOwnerDrawn();
+
     wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxButton);
 };