-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIOChildFrm.cpp
More file actions
52 lines (40 loc) · 1.15 KB
/
IOChildFrm.cpp
File metadata and controls
52 lines (40 loc) · 1.15 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
// IOChildFrm.cpp : implementation file
//
#include "stdafx.h"
#include "wineve.h"
#include "IOChildFrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CIOChildFrm
IMPLEMENT_DYNCREATE(CIOChildFrm, CMDIChildWnd)
CIOChildFrm::CIOChildFrm()
{
}
CIOChildFrm::~CIOChildFrm()
{
}
static char *IOtitle="Terminal";
BEGIN_MESSAGE_MAP(CIOChildFrm, CMDIChildWnd)
//{{AFX_MSG_MAP(CIOChildFrm)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CIOChildFrm message handlers
void CIOChildFrm::ActivateFrame(int nCmdShow)
{
CMenu *pSysMenu=GetSystemMenu(FALSE);
pSysMenu->EnableMenuItem(6,MF_BYPOSITION|MF_GRAYED);
SetIcon(LoadIcon(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDI_ICON7)),TRUE);
CMDIChildWnd::ActivateFrame(nCmdShow);
}
BOOL CIOChildFrm::PreCreateWindow(CREATESTRUCT& cs)
{
cs.style=WS_OVERLAPPEDWINDOW|WS_MINIMIZE|WS_CHILD;
cs.lpszName=IOtitle;
return CMDIChildWnd::PreCreateWindow(cs);
}