Add: data parameter in Window::Close method.
This allows passing data when closing a window, e.g. to indicate how it was closed.
This commit is contained in:

committed by
Peter Nelson

parent
cda6f24fe8
commit
f379b31e28
@@ -488,7 +488,7 @@ public:
|
||||
static int SortButtonWidth();
|
||||
|
||||
void CloseChildWindows(WindowClass wc = WC_INVALID) const;
|
||||
virtual void Close();
|
||||
virtual void Close(int data = 0);
|
||||
static void DeleteClosedWindows();
|
||||
|
||||
void SetDirty() const;
|
||||
@@ -922,7 +922,7 @@ public:
|
||||
this->parent = parent;
|
||||
}
|
||||
|
||||
void Close() override;
|
||||
void Close([[maybe_unused]] int data = 0) override;
|
||||
};
|
||||
|
||||
Window *BringWindowToFrontById(WindowClass cls, WindowNumber number);
|
||||
|
Reference in New Issue
Block a user