WorkFrame.cpp
上传用户:maryhy001
上传日期:2007-05-02
资源大小:2317k
文件大小:2k
- // WorkFrame.cpp : implementation file
- //
- #include "stdafx.h"
- #include "trfAgent.h"
- #include "WorkFrame.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CWorkFrame
- IMPLEMENT_DYNCREATE(CWorkFrame, CFrameWnd)
- CWorkFrame::CWorkFrame()
- {
- }
- CWorkFrame::~CWorkFrame()
- {
- }
- BEGIN_MESSAGE_MAP(CWorkFrame, CFrameWnd)
- //{{AFX_MSG_MAP(CWorkFrame)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CWorkFrame message handlers
- BOOL CWorkFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
- {
- ASSERT(NULL != pContext);
- //////////////////////////////////////////////////////////////////////////
-
- if(!this->m_wndLRSplit.CreateStatic(this, 1, 2))
- {
- TRACE0("Failed to create m_wndLRSplit windown");
- return FALSE;
- }
-
- if(!this->m_wndLRSplit.CreateView(0, 0, RUNTIME_CLASS(CWorkspaceView), CSize(200, 0), pContext))
- {
- TRACE0("Failed to create m_pwndWorkspaceView windown");
- return FALSE;
- }
- this->m_pwndWorkspaceView = (CWorkspaceView*)m_wndLRSplit.GetPane(0, 0);
-
- if(!this->m_wndLRSplit.CreateView(0, 1, RUNTIME_CLASS(CFileTransFrame), CSize(0, 0), pContext))
- {
- TRACE0("Failed to create m_pwndFileTransView windown");
- return FALSE;
- }
- this->m_pwndFileTransView = (CFileTransFrame*)m_wndLRSplit.GetPane(0, 1);
-
- //////////////////////////////////////////////////////////////////////////
-
- this->RecalcLayout();
- return TRUE;
- }