#pragma once #include "global.h" class Lrc { public: int postion; UIString text; Point point; Lrc(int postionInt, const UIString& text, Point point) { this->postion = postionInt; this->text = text; this->point = point; } ~Lrc() { int a = 0; } }; class LrcPanel : public Control { float offsetY = 0; Lrc* LrcNow = NULL; Timer* timer = NULL; int VerticalCenter = 0; std::vector LrcList; int marginVertical = 40; int FontHeight = 30; public: LrcPanel(); virtual ~LrcPanel(); void Task(); void ChangePostion(int postion); void OnBackgroundPaint(PaintEventArgs& arg)override; void LoadLrc(const UIString& lrcData); void Clear(); };