// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
// TODO: Add extra initialization here
CLoginDlg dlg;
if (dlg.DoModal() != IDOK)
OnOK();
else
//读取用户信息到curUser对象中
curUser.GetData(dlg.m_UserName);
return TRUE; // return TRUE unless you set the focus to a control
}