// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAINFRM_H__1B674E2C_7F84_4DF4_AAD9_6C47F42D7901__INCLUDED_)
#define AFX_MAINFRM_H__1B674E2C_7F84_4DF4_AAD9_6C47F42D7901__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "ChildView.h"

class CMainFrame : public CFrameWnd
{
	
public:
	CMainFrame();
protected: 
	DECLARE_DYNAMIC(CMainFrame)

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	void OnCutnPasteUI( CCmdUI* pCmdUI )
	{
		pCmdUI->Enable();
	}

	void OnCut() {
		m_wndView.GetDlgItem(1)->SendMessage(WM_CUT);
	}

	void OnCopy() {
		m_wndView.GetDlgItem(1)->SendMessage(WM_COPY);
	}

	void OnPaste() {
		m_wndView.GetDlgItem(1)->SendMessage(WM_PASTE);
	}
	
	void OnRestart() {
		m_wndView.Restart();
	}

	void OnStop() {
		m_wndView.Stop();
	}

	void OnClear() {
		m_wndView.ClearEdit();
	}

protected:  // control bar embedded members
	CStatusBar  m_wndStatusBar;
	CToolBar    m_wndToolBar;
public:
	CChildView    m_wndView;

// Generated message map functions
protected:
	//{{AFX_MSG(CMainFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSetFocus(CWnd *pOldWnd);
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MAINFRM_H__1B674E2C_7F84_4DF4_AAD9_6C47F42D7901__INCLUDED_)
