diff options
author | George Hazan <george.hazan@gmail.com> | 2023-12-20 20:01:29 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-12-20 20:01:29 +0300 |
commit | 78cf4cb0dc9e9ec06a7a7fd12a77e8fdf229644d (patch) | |
tree | e73976ad77ea32fcf9022bafe6d4b81c9e9a32db /plugins/NewStory/src/history_array.h | |
parent | 14457811ab95419fd256d4fefd02d61a47603b7a (diff) |
code cleaning
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); |