-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathViewtab.h
More file actions
55 lines (48 loc) · 1.44 KB
/
Copy pathViewtab.h
File metadata and controls
55 lines (48 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef I_VIEWTAB__
#define I_VIEWTAB__
// viewtab.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CViewTab window
class CViewTab : public CWnd
{
private:
CStringArray m_szStrings;
CWnd * m_CommandTarget;
CDWordArray m_dwWidths;
CDWordArray m_iCommands;
CFont * GetFont(int iWeight);
void DrawTab(CDC& dc,int iLeft,int iWidth,CRect& r,HBRUSH hMiddle,LPCSTR szText);
int m_iSelectedTab;
// Construction
public:
CViewTab();
BOOL Create(CWnd *cmdTarget,CWnd* pParentWnd, DWORD dwStyle, UINT nID);
// Attributes
public:
void AddString(int iStringID,WPARAM Command,BOOL bActive);
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CViewTab)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CViewTab();
void SetActiveTab(int iTab);
// Generated message map functions
protected:
//{{AFX_MSG(CViewTab)
afx_msg void OnPaint();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg LONG OnHelpHitTest(UINT,LONG);
afx_msg LRESULT OnSizeParent(WPARAM wParam,LPARAM lParam);
afx_msg BOOL OnToolTipText(UINT,NMHDR * pNMHDR,LRESULT *pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
virtual int OnToolHitTest(CPoint point,TOOLINFO *pTI) const;
};
/////////////////////////////////////////////////////////////////////////////
#endif