diff options
author | George Hazan <ghazan@miranda.im> | 2018-06-06 20:53:00 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-06-06 20:53:00 +0300 |
commit | f7d7c40c372287642424883fc64b95edeb4461c9 (patch) | |
tree | d71b7b7e5e1e0f2bbe10892dcccc59a7691faa33 /include | |
parent | 0ebf6eee52c36fe139edb77730a835479cf0de21 (diff) |
CCtrlPages::CheckRowCount() - new function to force tab resize when the number of rows is changed
Diffstat (limited to 'include')
-rw-r--r-- | include/m_gui.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/include/m_gui.h b/include/m_gui.h index d6ed08a7c6..bdabf4d323 100644 --- a/include/m_gui.h +++ b/include/m_gui.h @@ -1319,6 +1319,19 @@ class MIR_CORE_EXPORT CCtrlPages : public CCtrlBase {
typedef CCtrlBase CSuper;
+ HIMAGELIST m_hIml;
+ CDlgBase *m_pActivePage;
+ int m_numRows = 1;
+
+ struct TPageInfo;
+ void InsertPage(TPageInfo *pPage);
+ void ShowPage(CDlgBase *pDlg);
+
+ void CheckRowCount();
+ TPageInfo* GetCurrPage();
+ TPageInfo* GetItemPage(int iPage);
+ LIST<TPageInfo> m_pages;
+
public:
CCtrlPages(CDlgBase *dlg, int ctrlId);
@@ -1326,10 +1339,11 @@ public: void ActivatePage(int iPage);
int GetCount(void);
int GetDlgIndex(CDlgBase*);
- CDlgBase* GetNthPage(int iPage);
void RemovePage(int iPage);
void SwapPages(int idx1, int idx2);
+ CDlgBase* GetNthPage(int iPage);
+
__forceinline CDlgBase* GetActivePage() const
{ return m_pActivePage;
}
@@ -1344,19 +1358,6 @@ protected: void OnReset() override;
LRESULT CustomWndProc(UINT msg, WPARAM wParam, LPARAM lParam) override;
-
-private:
- HIMAGELIST m_hIml;
- CDlgBase *m_pActivePage;
-
- struct TPageInfo;
-
- void InsertPage(TPageInfo *pPage);
- void ShowPage(CDlgBase *pDlg);
-
- TPageInfo* GetCurrPage();
- TPageInfo* GetItemPage(int iPage);
- LIST<TPageInfo> m_pages;
};
/////////////////////////////////////////////////////////////////////////////////////////
|