-
Notifications
You must be signed in to change notification settings - Fork 2
/
MDITabsDialogBar.h
56 lines (45 loc) · 1.39 KB
/
MDITabsDialogBar.h
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
#pragma once
//
// CMDITabsDialogBar
//
// Dialog bar that hosts a CMDITabs control
//
class CScriptDocument;
class CResourceDocument;
class CMDITabChildWnd;
class CMDITabsDialogBar : public CTabCtrl
{
public:
void AddTab(CFrameWnd *pFrame, MDITabType iType);
void RemoveTab(CFrameWnd *pFrame);
CScriptDocument *ActivateScript(ScriptId script);
CResourceDocument *ActivateResourceDocument(ResourceType type, WORD wNum);
void OnActivateTab(CFrameWnd *pFrame);
bool CanGoBack();
bool CanGoForward();
void GoBack();
void GoForward();
void OnUpdateTitles();
protected:
DECLARE_MESSAGE_MAP()
private:
CDocument *_GetIfKindOf(int i, const CRuntimeClass* pClass, CMDITabChildWnd **pActive) const;
CFrameWnd *_GetNextPrev(bool fNext);
void _GoBackForward(bool fForward);
LRESULT OnSizeParent(WPARAM wParam, LPARAM lParam);
int OnCreate(LPCREATESTRUCT lpCreateStruct);
void OnSelChange(NMHDR *pnmhdr, LRESULT *lResult);
void DrawItem(LPDRAWITEMSTRUCT);
void DrawItemBorder(LPDRAWITEMSTRUCT);
void DrawMainBorder(LPDRAWITEMSTRUCT);
void OnPaint();
BOOL OnEraseBkgnd(CDC *pDC);
CFont m_font;
CImageList m_imagelist;
CExtBitmap _tabBitmap[11];
CExtBitmap _tabBitmapNS[11];
typedef std::list<CFrameWnd*> travellog_list;
travellog_list _travelLog;
CFrameWnd *_pActiveTab;
bool _fNavigatingViaTravelLog;
};