mirror of
https://github.com/narzoul/DDrawCompat
synced 2024-12-30 08:55:36 +01:00
33 lines
693 B
C++
33 lines
693 B
C++
#pragma once
|
|
|
|
#include <list>
|
|
#include <vector>
|
|
|
|
#include <Overlay/LabelControl.h>
|
|
#include <Overlay/Window.h>
|
|
|
|
namespace Overlay
|
|
{
|
|
class ComboBoxControl;
|
|
class LabelControl;
|
|
|
|
class ComboBoxDropDown : public Window
|
|
{
|
|
public:
|
|
ComboBoxDropDown(ComboBoxControl& parent);
|
|
|
|
virtual void onNotify(Control& control) override;
|
|
|
|
std::vector<std::string> getValues() const { return m_values; }
|
|
void setValues(const std::vector<std::string>& values);
|
|
|
|
private:
|
|
virtual RECT calculateRect(const RECT& monitorRect) const override;
|
|
virtual void onLButtonDown(POINT pos) override;
|
|
|
|
ComboBoxControl& m_parent;
|
|
std::vector<std::string> m_values;
|
|
std::list<LabelControl> m_labels;
|
|
};
|
|
}
|