Maybe it's an idea to subclass the class from which DetailSummaryWdg is created..
Then adding a Type variable to that class (int or something)
#define TYPE_DETAIL_SUMMARY 1010 // or something else you like
class DetailSummaryWidget : public BaseClass
{
public:
DetailSummaryWidget(...);
~DetailSummaryWidget();
...
int Type;
...
};
DetailSummaryWidget::DetailSummaryWidget(...)
:BaseClass(...)
{
Type = TYPE_DETAIL_SUMMARY;
}
#define TYPE_DETAIL_SUMMARY 1010 // or something else you like
class DetailSummaryWidget : public BaseClass
{
public:
DetailSummaryWidget(...);
~DetailSummaryWidget();
...
int Type;
...
};
DetailSummaryWidget::DetailSummaryWidget(...)
:BaseClass(...)
{
Type = TYPE_DETAIL_SUMMARY;
}
To copy to clipboard, switch view to plain text mode
When traversing the windows in the workspace, you can check on that particular Type variable if the window needs to be closed.
Just an idea Maybe there are more ways....
Bookmarks