From 3c626e2075e24a15362b0ba9cc63e15648997692 Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Tue, 1 Sep 2009 14:44:39 +0000 Subject: [PATCH] Normalize property label editor margins on wxMSW git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/propgrid/editors.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/propgrid/editors.cpp b/src/propgrid/editors.cpp index e0a6d71cf1..5acd8064d3 100644 --- a/src/propgrid/editors.cpp +++ b/src/propgrid/editors.cpp @@ -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__