CDHtmlDialog::GetElementText( _T("email"));
-
could u please help me out? i'm trying to the the value of a html form on OnButtonOK(). but i fail, i'm already about 48 hours on it and i can't find anyone who is beable to help. i tried news groups, the codeproject.com forum, tek-tips.com. i tried using msdn, goodle. bt i can't find good example abut retrieving value from html form thank for your time. kind regards, Marco // firstw32mfcDlg.cpp : implementation file // #include "stdafx.h" #include "firstw32mfc.h" #include "firstw32mfcDlg.h" #include ".\firstw32mfcdlg.h" #include //#include #include #ifdef _DEBUG #define new DEBUG_NEW #endif // CAboutDlg dialog used for App About class CAboutDlg : public CDialog { public: CAboutDlg(); // Dialog Data enum { IDD = IDD_ABOUTBOX }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support // Implementation protected: DECLARE_MESSAGE_MAP() }; CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD) { } void CAboutDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); } BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) END_MESSAGE_MAP() // Cfirstw32mfcDlg dialog BEGIN_DHTML_EVENT_MAP(Cfirstw32mfcDlg) DHTML_EVENT_ONCLICK(_T("ButtonOK"), OnButtonOK) DHTML_EVENT_ONCLICK(_T("ButtonCancel"), OnButtonCancel) //DHTML_EVENT_ONCHANGE(_T("email"), OnChangeEdit1 ) //DHTML_EVENT_ONCHANGE(_T("password"), OnEnChangeEdit2 ) END_DHTML_EVENT_MAP() Cfirstw32mfcDlg::Cfirstw32mfcDlg(CWnd* pParent /*=NULL*/) : CDHtmlDialog(Cfirstw32mfcDlg::IDD, Cfirstw32mfcDlg::IDH, pParent) //, m_EDIT1(0) //, m_EDIT2(0) { m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); } void Cfirstw32mfcDlg::DoDataExchange(CDataExchange* pDX) { CDHtmlDialog::DoDataExchange(pDX); DDX_DHtml_ElementInnerText(pDX, _T("email"), EDIT1); DDX_DHtml_ElementInnerText(pDX, _T("password"), EDIT2); DDX_DHtml_ElementInnerText(pDX, _T("Temp_Text1"), m_EDIT1); DDX_DHtml_ElementInnerText(pDX, _T("Temp_Text2"), m_EDIT2); } BEGIN_MESSAGE_MAP(Cfirstw32mfcDlg, CDHtmlDialog) ON_WM_SYSCOMMAND() //}}AFX_MSG_MAP END_MESSAGE_MAP() // Cfirstw32mfcDlg message handlers BOOL Cfirstw32mfcDlg::OnInitDialog() { CDHtmlDialog::OnInitDialog(); // Add "About..." menu item to system menu. // IDM_ABOUTBOX must be in the system command range. ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX); ASSERT(IDM_ABOUTBOX < 0xF000); CMenu* pSysMenu = GetSystemMenu(FALSE); if (pSysMenu != NULL) { CS