?? creatgraphdlg.cpp
字號:
// CreatGraphDlg.cpp : implementation file
//
#include "stdafx.h"
#include "BFSearch.h"
#include "CreatGraphDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCreatGraphDlg dialog
CCreatGraphDlg::CCreatGraphDlg(CWnd* pParent /*=NULL*/)
: CDialog(CCreatGraphDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CCreatGraphDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
CCreatGraphDlg::~CCreatGraphDlg()
{
delete m_pCreatWnd;
}
void CCreatGraphDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CCreatGraphDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CCreatGraphDlg, CDialog)
//{{AFX_MSG_MAP(CCreatGraphDlg)
ON_BN_CLICKED(ID_EDIT_POINT, OnEditPoint)
ON_BN_CLICKED(ID_EDIT_EDGE, OnEditEdge)
ON_BN_CLICKED(ID_SHOW_GRAPH, OnShowGraph)
ON_BN_CLICKED(ID_OK, OnOk)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCreatGraphDlg message handlers
BOOL CCreatGraphDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
RECT rect;
m_pCreatWnd= new CMoveWnd(IDC_GRAPH_CREAT, m_G);
m_pCreatWnd->Create(NULL,NULL,WS_CHILD|WS_VISIBLE,rect,this,0,NULL);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CCreatGraphDlg::OnEditPoint()
{
// TODO: Add your control notification handler code here
if(m_pCreatWnd->m_Status != 'V')
{
m_pCreatWnd->m_Status = 'V';
m_pCreatWnd->Invalidate();
}
}
void CCreatGraphDlg::OnEditEdge()
{
// TODO: Add your control notification handler code here
if(m_pCreatWnd->m_Status != 'E')
{
m_pCreatWnd->m_Status = 'E';
m_pCreatWnd->m_From = TRUE;
m_pCreatWnd->Invalidate();
}
}
void CCreatGraphDlg::OnShowGraph()
{
// TODO: Add your control notification handler code here
if(m_pCreatWnd->m_Status != 'D')
{
m_pCreatWnd->m_Status = 'D';
m_pCreatWnd->ChangeDWnd();
m_pCreatWnd->m_From = TRUE;
m_pCreatWnd->Invalidate();
}
}
void CCreatGraphDlg::OnOk()
{
// TODO: Add your control notification handler code here
CDialog::OnOK();
}
void CCreatGraphDlg::OnCancel()
{
// TODO: Add extra cleanup here
CDialog::OnCancel();
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -