| 946 | } |
| 947 | |
| 948 | int GetColumnLeftOf(int column) const |
| 949 | { |
| 950 | int count = GetHeader().GetItemCount(); |
| 951 | ATLASSERT(count < 100); |
| 952 | int order[100]; |
| 953 | GetColumnOrderArray(count, order); |
| 954 | for (int i = 1; i < count; ++i) |
| 955 | { |
| 956 | if (order[i] == column) |
| 957 | return order[i - 1]; |
| 958 | } |
| 959 | return order[0]; |
| 960 | } |
| 961 | |
| 962 | int GetColumnRightOf(int column) const |
| 963 | { |