summaryrefslogtreecommitdiff
path: root/include/m_gui.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2016-12-16 16:14:03 +0300
committerGeorge Hazan <ghazan@miranda.im>2016-12-16 16:14:03 +0300
commit4a3fcb3dbc6b928415d7b5500b4d32b795b86602 (patch)
tree429efe48437f364f32e181324f599d47239a2d9d /include/m_gui.h
parentf63ee92aad4b9b9e0dc4f57360137bfb8252badc (diff)
CCtrlPages::m_pages is not used anymore, all page data are bound to tabs only
Diffstat (limited to 'include/m_gui.h')
-rw-r--r--include/m_gui.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/m_gui.h b/include/m_gui.h
index 6450ec7164..f38764d05c 100644
--- a/include/m_gui.h
+++ b/include/m_gui.h
@@ -1200,9 +1200,9 @@ public:
void ActivatePage(int iPage);
int GetCount(void);
int GetDlgIndex(CDlgBase*);
-
CDlgBase* GetNthPage(int iPage);
-
+ void RemovePage(int iPage);
+
__forceinline CDlgBase* GetActivePage() const
{ return m_pActivePage;
}
@@ -1224,6 +1224,12 @@ private:
struct TPageInfo : public MZeroedObject
{
+ ~TPageInfo()
+ {
+ if (m_hIcon)
+ DestroyIcon(m_hIcon);
+ }
+
int m_pageId;
ptrW m_ptszHeader;
HICON m_hIcon;
@@ -1235,6 +1241,7 @@ private:
void ShowPage(CDlgBase *pDlg);
TPageInfo* GetCurrPage();
+ TPageInfo* GetItemPage(int iPage);
LIST<TPageInfo> m_pages;
};