Exteor/include/xtr/ui/RSListCtrl.h

24 lines
571 B
C
Raw Normal View History

2024-06-07 20:30:06 +03:00
#pragma once
namespace xtr::ui {
//! Control: List of constituents
class RSListCtrl : public CListCtrl {
public:
[[nodiscard]] int32_t GetColumnCount() const;
[[nodiscard]] int32_t GetFocusIndex() const;
[[nodiscard]] int32_t GetSelectedIndex() const;
void SetSelection(int32_t nIndex);
void ClearSelection();
void MoveSelectedItemsTo(RSListCtrl& dest, int32_t coloumns);
protected:
BOOL PreTranslateMessage(MSG* pMsg) override;
void PreSubclassWindow() override;
private:
[[nodiscard]] BOOL IsItemSelected(int32_t item);
};
} // namespace xtr::ui