| 960 | } |
| 961 | |
| 962 | int GetColumnRightOf(int column) const |
| 963 | { |
| 964 | int count = GetHeader().GetItemCount(); |
| 965 | ATLASSERT(count < 100); |
| 966 | int order[100]; |
| 967 | GetColumnOrderArray(count, order); |
| 968 | for (int i = 0; i < count - 1; ++i) |
| 969 | { |
| 970 | if (order[i] == column) |
| 971 | return order[i + 1]; |
| 972 | } |
| 973 | return order[count - 1]; |
| 974 | } |
| 975 | |
| 976 | LRESULT OnNavigate(UINT /*uMsg*/, WPARAM wParam, LPARAM /*lParam*/, BOOL& /*bHandled*/) |
| 977 | { |