diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2005-07-14 18:37:44 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2005-07-14 18:37:44 +0000 |
commit | f39c10eb760c5f283b9a999eddb0418efa462732 (patch) | |
tree | 85ad8f90c879f123587332339bff511ac52a7f88 /cppe/demo/IceE/chat/ChatConfigDlg.cpp | |
parent | More mods to the chat demo (diff) | |
download | ice-f39c10eb760c5f283b9a999eddb0418efa462732.tar.bz2 ice-f39c10eb760c5f283b9a999eddb0418efa462732.tar.xz ice-f39c10eb760c5f283b9a999eddb0418efa462732.zip |
Make hitting return send text
Diffstat (limited to 'cppe/demo/IceE/chat/ChatConfigDlg.cpp')
-rw-r--r-- | cppe/demo/IceE/chat/ChatConfigDlg.cpp | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/cppe/demo/IceE/chat/ChatConfigDlg.cpp b/cppe/demo/IceE/chat/ChatConfigDlg.cpp index cbc12ed6e71..b8eb089dcb9 100644 --- a/cppe/demo/IceE/chat/ChatConfigDlg.cpp +++ b/cppe/demo/IceE/chat/ChatConfigDlg.cpp @@ -143,33 +143,10 @@ CChatConfigDlg::OnQueryDragIcon() void
CChatConfigDlg::OnLogin()
{
- // - // Read the username. - // - int len = _useredit->LineLength(); - _useredit->GetLine(0, _user.GetBuffer(len), len); - _user.ReleaseBuffer(len); - - // - // Read the password. - // - len = _passedit->LineLength(); - _passedit->GetLine(0, _password.GetBuffer(len), len); - _password.ReleaseBuffer(len); - - // - // Read the host. - // - len = _hostedit->LineLength(); - _hostedit->GetLine(0, _host.GetBuffer(len), len); - _host.ReleaseBuffer(len); - - // - // Read the port. - // - len = _portedit->LineLength(); - _portedit->GetLine(0, _port.GetBuffer(len), len); - _port.ReleaseBuffer(len); + _useredit->GetWindowText(_user); + _passedit->GetWindowText(_password); + _hostedit->GetWindowText(_host); + _portedit->GetWindowText(_port); bool success = false; try |