Add symbolic constant wxALIGN_INVALID and use it instead of -1 in wxGrid.

wxGridCellAttr was using literal -1 to indicate "no alignment" which wasn't
immediately obvious, use a new wxALIGN_INVALID (which has the same value)
instead.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-11-27 01:47:30 +00:00
parent 5cbf522105
commit ba0185b557
3 changed files with 22 additions and 5 deletions

View File

@@ -66,6 +66,16 @@ enum wxDirection
*/
enum wxAlignment
{
/**
A value different from any valid alignment value.
Note that you shouldn't use 0 for this as it's the value of (valid)
alignments wxALIGN_LEFT and wxALIGN_TOP.
@since 2.9.1
*/
wxALIGN_INVALID = -1,
wxALIGN_NOT = 0x0000,
wxALIGN_CENTER_HORIZONTAL = 0x0100,
wxALIGN_CENTRE_HORIZONTAL = wxALIGN_CENTER_HORIZONTAL,