Skip to content

Commit ffe4f1c

Browse files
author
ranjiewwen
committed
创建DIPDemo-first
1 parent bd712da commit ffe4f1c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+21604
-0
lines changed

ChildFrm.cpp

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
// ChildFrm.cpp : implementation of the CChildFrame class
2+
//
3+
4+
#include "stdafx.h"
5+
#include "DIPDemo.h"
6+
7+
#include "ChildFrm.h"
8+
9+
#ifdef _DEBUG
10+
#define new DEBUG_NEW
11+
#undef THIS_FILE
12+
static char THIS_FILE[] = __FILE__;
13+
#endif
14+
15+
/////////////////////////////////////////////////////////////////////////////
16+
// CChildFrame
17+
18+
IMPLEMENT_DYNCREATE(CChildFrame, CMDIChildWnd)
19+
20+
BEGIN_MESSAGE_MAP(CChildFrame, CMDIChildWnd)
21+
//{{AFX_MSG_MAP(CChildFrame)
22+
// NOTE - the ClassWizard will add and remove mapping macros here.
23+
// DO NOT EDIT what you see in these blocks of generated code !
24+
//}}AFX_MSG_MAP
25+
END_MESSAGE_MAP()
26+
27+
/////////////////////////////////////////////////////////////////////////////
28+
// CChildFrame construction/destruction
29+
30+
CChildFrame::CChildFrame()
31+
{
32+
// TODO: add member initialization code here
33+
34+
}
35+
36+
CChildFrame::~CChildFrame()
37+
{
38+
}
39+
40+
BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
41+
{
42+
// TODO: Modify the Window class or styles here by modifying
43+
// the CREATESTRUCT cs
44+
45+
if( !CMDIChildWnd::PreCreateWindow(cs) )
46+
return FALSE;
47+
48+
cs.style = WS_CHILD | WS_VISIBLE | WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU
49+
| FWS_ADDTOTITLE | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX;
50+
51+
return TRUE;
52+
}
53+
54+
void CChildFrame::ActivateFrame(int nCmdShow)
55+
{
56+
// TODO: Modify this function to change how the frame is activated.
57+
58+
nCmdShow = SW_SHOWMAXIMIZED;
59+
CMDIChildWnd::ActivateFrame(nCmdShow);
60+
}
61+
62+
63+
/////////////////////////////////////////////////////////////////////////////
64+
// CChildFrame diagnostics
65+
66+
#ifdef _DEBUG
67+
void CChildFrame::AssertValid() const
68+
{
69+
CMDIChildWnd::AssertValid();
70+
}
71+
72+
void CChildFrame::Dump(CDumpContext& dc) const
73+
{
74+
CMDIChildWnd::Dump(dc);
75+
}
76+
77+
#endif //_DEBUG
78+
79+
/////////////////////////////////////////////////////////////////////////////
80+
// CChildFrame message handlers

ChildFrm.h

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
// ChildFrm.h : interface of the CChildFrame class
2+
//
3+
/////////////////////////////////////////////////////////////////////////////
4+
5+
#if !defined(AFX_CHILDFRM_H__4B5DD00A_2541_4C9C_9E01_E9BDB74E9CB1__INCLUDED_)
6+
#define AFX_CHILDFRM_H__4B5DD00A_2541_4C9C_9E01_E9BDB74E9CB1__INCLUDED_
7+
8+
#if _MSC_VER > 1000
9+
#pragma once
10+
#endif // _MSC_VER > 1000
11+
12+
13+
class CChildFrame : public CMDIChildWnd
14+
{
15+
DECLARE_DYNCREATE(CChildFrame)
16+
public:
17+
CChildFrame();
18+
19+
// Attributes
20+
public:
21+
22+
// Operations
23+
public:
24+
25+
// Overrides
26+
// ClassWizard generated virtual function overrides
27+
//{{AFX_VIRTUAL(CChildFrame)
28+
public:
29+
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
30+
virtual void ActivateFrame(int nCmdShow);
31+
//}}AFX_VIRTUAL
32+
33+
// Implementation
34+
public:
35+
virtual ~CChildFrame();
36+
#ifdef _DEBUG
37+
virtual void AssertValid() const;
38+
virtual void Dump(CDumpContext& dc) const;
39+
#endif
40+
41+
// Generated message map functions
42+
protected:
43+
//{{AFX_MSG(CChildFrame)
44+
// NOTE - the ClassWizard will add and remove member functions here.
45+
// DO NOT EDIT what you see in these blocks of generated code!
46+
//}}AFX_MSG
47+
DECLARE_MESSAGE_MAP()
48+
};
49+
50+
/////////////////////////////////////////////////////////////////////////////
51+
52+
//{{AFX_INSERT_LOCATION}}
53+
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
54+
55+
#endif // !defined(AFX_CHILDFRM_H__4B5DD00A_2541_4C9C_9E01_E9BDB74E9CB1__INCLUDED_)

0 commit comments

Comments
 (0)