Re: Need help with Edit Box
It is simple. I always use UpdateData(TRUE) and then whatever member variable you have set up for the edit box (using Class Wizard) now contains whatever is in the edit box. To use it with a button, all you need to use in the function is that line. Such as this-
void CDialogDlg::OnButton3()
{
UpdateData(TRUE);
CString Password = m_Edit;
//m_Edit being the member variable for the
// edit box
SavePasswordToRegistry(Password);
}
Lorn "ljp" Potter
Trolltech Qtopia Community Liaison
irc.freenode.net #qtopia, #qt