-
Notifications
You must be signed in to change notification settings - Fork 2
/
CursorChildFrame.cpp
63 lines (47 loc) · 1.3 KB
/
CursorChildFrame.cpp
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
56
57
58
59
60
61
62
63
// EditViewChildFrame.cpp : implementation file
//
#include "stdafx.h"
#include "SCIPicEditor.h"
#include "CursorChildFrame.h"
#include "RasterView.h"
// CCursorChildFrame
IMPLEMENT_DYNCREATE(CCursorChildFrame, CMDITabChildWnd)
CCursorChildFrame::CCursorChildFrame()
{
_pViewMainView = NULL;
}
CCursorChildFrame::~CCursorChildFrame()
{
}
BEGIN_MESSAGE_MAP(CCursorChildFrame, CMDITabChildWnd)
ON_WM_CREATE()
END_MESSAGE_MAP()
void CCursorChildFrame::HookUpNonViews(CDocument *pDoc)
{
}
int CCursorChildFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (__super::OnCreate(lpCreateStruct) == -1)
return -1;
return 0;
}
BOOL CCursorChildFrame::OnCmdMsg(UINT nID, int nCode, void *pExtra, AFX_CMDHANDLERINFO *pHandlerInfo)
{
BOOL fRet = __super::OnCmdMsg(nID, nCode, pExtra, pHandlerInfo);
if (!fRet)
{
// If unhandled, give it the main (even if it was non-active).
// NOTE: if it was active, it was already asked to handle it above.
// We could optimize for that case here, if desired.
if (GetActiveView())
{
fRet = GetActiveView()->OnCmdMsg(nID, nCode, pExtra, pHandlerInfo);
}
if (!fRet)
{
// Give to CommandType view?
}
}
return fRet;
}
// CCursorChildFrame message handlers