CHTMLEditView message handlers OnModeEdit

By | 2014년 6월 23일

OnModeEdit

// CHTMLEditView message handlers

void CHTMLEditView::OnInitialUpdate(void)
{
    CHtmlEditView::OnInitialUpdate();

	m_bDesignMode = TRUE;
}

void CHTMLEditView::OnToggleBrowse(void)
{
	m_bDesignMode = !m_bDesignMode;
	SetDesignMode(m_bDesignMode);	
}

void CHTMLEditView::OnModeEdit(void)
{
	m_bDesignMode = TRUE;
	SetDesignMode(m_bDesignMode);
}

void CHTMLEditView::OnUpdateModeEdit(CCmdUI *pCmdUI)
{
	pCmdUI->SetCheck(m_bDesignMode);
}

void CHTMLEditView::OnModeView(void)
{
	m_bDesignMode = FALSE;
	SetDesignMode(m_bDesignMode);
}

void CHTMLEditView::OnUpdateModeView(CCmdUI *pCmdUI)
{
	pCmdUI->SetCheck(!m_bDesignMode);
}

Category: C++