Use symbolic constants instead of numeric ones to represent masks filtering window style flags in wxPG.

This commit is contained in:
Artur Wieczorek
2015-05-23 18:25:27 +02:00
parent 5c3fbc6e4d
commit 204a3d229c
3 changed files with 19 additions and 6 deletions

View File

@@ -327,10 +327,12 @@ bool wxPropertyGrid::Create( wxWindow *parent,
style |= wxWANTS_CHARS;
wxControl::Create(parent, id, pos, size,
style | wxScrolledWindowStyle,
(style & wxWINDOW_STYLE_MASK) | wxScrolledWindowStyle,
wxDefaultValidator,
name);
m_windowStyle |= (style & wxPG_WINDOW_STYLE_MASK);
Init2();
return true;