]> git.saurik.com Git - wxWidgets.git/commitdiff
Normalize property label editor margins on wxMSW
authorJaakko Salli <jaakko.salli@dnainternet.net>
Tue, 1 Sep 2009 14:44:39 +0000 (14:44 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Tue, 1 Sep 2009 14:44:39 +0000 (14:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/editors.cpp

index e0a6d71cf16c5efaf71626a04ec2e043d5c1df24..5acd8064d3650fc56209980babbd3c64c4c9055a 100644 (file)
@@ -1691,6 +1691,13 @@ wxWindow* wxPropertyGrid::GenerateEditorTextCtrl( const wxPoint& pos,
     {
         tc->SetBackgroundColour(m_colSelBack);
         tc->SetForegroundColour(m_colSelFore);
+
+        // Normalize margins
+    #ifdef __WXMSW__
+        ::SendMessage(GetHwndOf(tc), EM_SETMARGINS,
+                      EC_LEFTMARGIN | EC_RIGHTMARGIN,
+                      MAKELONG(3, 0));
+    #endif
     }
 
 #ifdef __WXMSW__