[UI] Remove MAX_PATH limit from WM_DROPFILES
Also required const-ifying a file drop message.
This commit is contained in:
@@ -28,14 +28,14 @@ class UIEvent {
|
||||
|
||||
class FileDropEvent : public UIEvent {
|
||||
public:
|
||||
FileDropEvent(Window* target, wchar_t* filename)
|
||||
FileDropEvent(Window* target, const wchar_t* filename)
|
||||
: UIEvent(target), filename_(filename) {}
|
||||
~FileDropEvent() override = default;
|
||||
|
||||
wchar_t* filename() const { return filename_; }
|
||||
const wchar_t* filename() const { return filename_; }
|
||||
|
||||
private:
|
||||
wchar_t* filename_ = nullptr;
|
||||
const wchar_t* filename_ = nullptr;
|
||||
};
|
||||
|
||||
class KeyEvent : public UIEvent {
|
||||
|
||||
Reference in New Issue
Block a user