Fix UI restore when window is resized while in loading screen
[ryzomcore.git] / nelns / login_system / nel_launcher_windows_ext / BarTabsWnd.h
blobbaa38e74a2a1324d72bb4877b93328c27d3f0643
1 #if !defined(AFX_BARTABSWND_H__98F09036_59B0_4A99_B4B8_4F726BF8AF68__INCLUDED_)
2 #define AFX_BARTABSWND_H__98F09036_59B0_4A99_B4B8_4F726BF8AF68__INCLUDED_
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // BarTabsWnd.h : header file
8 //
9 #define TAB_W 60
10 #define TAB_H 25
12 /////////////////////////////////////////////////////////////////////////////
13 // CBarTabsWnd window
14 class CTabsObserver
16 public:
17 CTabsObserver() {}
19 virtual void OnTab(int iTab) {}
22 class CBarTabsWnd : public CWnd
24 public:
25 CBarTabsWnd();
26 void AddTab(int iID, int iIDFocus);
27 int GetNbTabs();
28 void SetFocusPos(int iTab);
29 int GetFocusPos();
30 void Move(int iX, int iY);
31 void SetObserver(CTabsObserver* pobs);
32 void Reset();
34 // Attributes
35 private:
36 int m_iTab;
37 CTabsObserver* m_pobs;
38 CPtrArray m_parrBmp;
39 CPtrArray m_parrBmpFocus;
41 // Operations
42 public:
44 // Overrides
45 // ClassWizard generated virtual function overrides
46 //{{AFX_VIRTUAL(CBarTabsWnd)
47 //}}AFX_VIRTUAL
49 // Implementation
50 public:
51 virtual ~CBarTabsWnd();
53 // Generated message map functions
54 protected:
55 //{{AFX_MSG(CBarTabsWnd)
56 afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
57 afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
58 afx_msg void OnPaint();
59 afx_msg void OnDestroy();
60 //}}AFX_MSG
61 DECLARE_MESSAGE_MAP()
64 /////////////////////////////////////////////////////////////////////////////
66 //{{AFX_INSERT_LOCATION}}
67 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
69 #endif // !defined(AFX_BARTABSWND_H__98F09036_59B0_4A99_B4B8_4F726BF8AF68__INCLUDED_)