-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLogonDialog.cpp
41 lines (32 loc) · 963 Bytes
/
LogonDialog.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
////////////////////////////////////////////////////////////////////////////////
//! \file LogonDialog.cpp
//! \brief The LogonDialog class definition.
//! \author Chris Oldwood
#include "Common.hpp"
#include "LogonDialog.hpp"
#include "Resource.h"
////////////////////////////////////////////////////////////////////////////////
//! Default constructor.
LogonDialog::LogonDialog()
: CDialog(IDD_LOGON)
{
DEFINE_CTRL_TABLE
CTRL(IDC_USER, &m_usernameEditor)
CTRL(IDC_PASSWORD, &m_passwordEditor)
END_CTRL_TABLE
DEFINE_CTRLMSG_TABLE
END_CTRLMSG_TABLE
}
////////////////////////////////////////////////////////////////////////////////
//! Dialog initialisation handler.
void LogonDialog::OnInitDialog()
{
m_usernameEditor.Text(m_logon.m_user);
}
////////////////////////////////////////////////////////////////////////////////
//! OK button handler.
bool LogonDialog::OnOk()
{
m_logon.m_password = m_passwordEditor.Text();
return true;
}