-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPyEditorFrame.cpp
More file actions
42 lines (33 loc) · 855 Bytes
/
PyEditorFrame.cpp
File metadata and controls
42 lines (33 loc) · 855 Bytes
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
#include "stdafx.h"
#include "Resource.h"
#include "PyEditorFrame.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CPyEditorFrame, CMDIChildWnd)
CPyEditorFrame::CPyEditorFrame()
{
}
CPyEditorFrame::~CPyEditorFrame()
{
}
BEGIN_MESSAGE_MAP(CPyEditorFrame, CMDIChildWnd)
END_MESSAGE_MAP()
BOOL CPyEditorFrame::LoadFrame(UINT nIDResource, DWORD dwDefaultStyle,
CWnd* pParentWnd, CCreateContext* pContext)
{
if (!__super::LoadFrame(nIDResource, dwDefaultStyle, pParentWnd, pContext))
{
return FALSE;
}
AFX_MANAGE_STATE(AfxGetStaticModuleState());
CString strFullString;
if (strFullString.LoadString(nIDResource))
{
AfxExtractSubString(m_strTitle, strFullString, 0); // first sub-string
SetWindowText(m_strTitle);
}
return TRUE;
}