WebBrowsers, Dialogs, Kicking your computer...
Hey evrbdy. Merry Xmas from Jinx
I was looking for a bit of info that someone could he me out with. I'm building a small web browser with MSVC++ and have an event were a dialog (IDD_WWWDialogDlg) pops up and you enter a web address to goto. I've tried several different combos to try to get the DDX to work out and ended in sorrow when I kicked my computer, knocking it over, feeling somwhat better about it though. This is the basics of what I used:
Code:
void CJinxBrowserView::OnWwwDialog()
{
CWWWDialogDlg dlg(this);
dlg.DoModal();
if(IDOK //*<- OK button in the WwwDialog*// == TRUE)
{
GetDlgItemText(IDC_EDIT_URL, m_strWwwUrl);
Navigate2(_T(m_strWwwUrl)NULL,NULL);
}
}
Can some on spare a little help? Please?