-
Notifications
You must be signed in to change notification settings - Fork 2
/
MDITabChildWnd.h
38 lines (30 loc) · 968 Bytes
/
MDITabChildWnd.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
#pragma once
//
// CMDITabChildWnd frame
//
// Implements "tabbing" by adding/removing itself to the tabs exposed by CMainFrame.
//
class CMDITabChildWnd : public CMDIChildWnd
{
DECLARE_DYNCREATE(CMDITabChildWnd)
public:
virtual int OnCreate(LPCREATESTRUCT lpCreateStruct);
virtual void OnDestroy();
virtual void OnMDIActivate(BOOL fActivate, CWnd *pActivate, CWnd *pDeactivate);
virtual void HookUpNonViews(CDocument *pDoc) {};
virtual MDITabType GetTabType() { return TAB_NONE; }
protected:
CMDITabChildWnd(); // protected constructor used by dynamic creation
virtual ~CMDITabChildWnd();
void _UpdateFrameTitle(CDocument *pDocument);
protected:
DECLARE_MESSAGE_MAP()
virtual void OnUpdateFrameTitle(BOOL bAddToTitle);
virtual void OnIdleUpdateCmdUI();
virtual BOOL PreCreateWindow(CREATESTRUCT &cs);
private:
void _RemoveSelf();
bool _fModifiedCache;
bool _fFirstTime;
bool _fRemovedSelf;
};