diff options
Diffstat (limited to 'plugins/NewStory/src/history_array.h')
-rw-r--r-- | plugins/NewStory/src/history_array.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/plugins/NewStory/src/history_array.h b/plugins/NewStory/src/history_array.h index 00b312172d..37aca66fb3 100644 --- a/plugins/NewStory/src/history_array.h +++ b/plugins/NewStory/src/history_array.h @@ -34,13 +34,12 @@ struct ItemData ItemData(); ~ItemData(); - ItemData* checkNext(ItemData *pPrev); - ItemData* checkPrev(ItemData *pPrev); - ItemData* checkPrevGC(ItemData *pPrev); + ItemData* checkNext(ItemData *pPrev, HWND hwnd); + ItemData* checkPrev(ItemData *pPrev, HWND hwnd); + ItemData* checkPrevGC(ItemData *pPrev, HWND hwnd); void checkCreate(HWND hwnd); void markRead(); - void setText(); - void setTextAndHwnd(HWND hwnd); + void setText(HWND hwnd); bool fetch(void); void fill(int tmpl); @@ -132,6 +131,7 @@ class HistoryArray LIST<wchar_t> strings; OBJLIST<ItemBlock> pages; int iLastPageCounter = 0; + MWindow hwndOwner = 0; ItemData& allocateItem(void); @@ -152,6 +152,9 @@ public: clear(); pages.insert(new ItemBlock()); } + void setOwner(MWindow hwnd) { + hwndOwner = hwnd; + } ItemData* get(int id, bool bLoad = false, bool bBack = false) const; ItemData* insert(int idx); |