BOOL Ctestwebbrowser2Dlg::OnInitDialog()
{
CDialog::OnInitDialog();
m_iNeedFresh = 0;
// Set the icon for this dialog. The framework does this automatically
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
m_iMyIE.Create(NULL,WS_CHILD|WS_VISIBLE,CRect(0,0,800,400),this,IDC_EXPLORER2);
return TRUE; // return TRUE unless you set the focus to a control
}
void Ctestwebbrowser2Dlg::OnBnClickedButton2()
{
// TODO: Add your control notification handler code here
m_iNeedFresh=1;
m_iMyIE.Navigate(_T("\\NandFlash\\1.html"),NULL,NULL,NULL,NULL);
}
void Ctestwebbrowser2Dlg::OnBnClickedButton1()
{
// TODO: Add your control notification handler code here
m_iNeedFresh =1;
m_iMyIE.Navigate(_T("\\NandFlash\\2.html"),NULL,NULL,NULL,NULL);
}
void Ctestwebbrowser2Dlg::DownloadCompleteExplorer2()
{
// TODO: Add your message handler code
if (m_iNeedFresh>0)
{
m_iNeedFresh = 0;
m_iMyIE.Refresh();
}
}