SetBackgroundColour(_T("wheat"));
pDoc = p_Doc;
wxLayoutConstraints* layout;
- SetAutoLayout(TRUE);
+ SetAutoLayout(true);
- m_Label1 = new wxStaticText(this, -1, _("User ID:"));
+ m_Label1 = new wxStaticText(this, wxID_ANY, _("User ID:"));
m_Label1->SetFont(* pDoc->ft_Doc);
layout = new wxLayoutConstraints;
layout->left.SameAs(this, wxLeft, 10);
int w;
m_Label1->GetSize(&w, &chSize);
- m_UserName = new wxTextCtrl(this, -1, _T(""));
+ m_UserName = new wxTextCtrl(this, wxID_ANY, _T(""));
m_UserName->SetFont(* pDoc->ft_Doc);
chSize = (int) (m_UserName->GetCharHeight()*ratio);
m_UserName->SetConstraints(layout);
- m_Label2 = new wxStaticText(this, -1, _("Password:"));
+ m_Label2 = new wxStaticText(this, wxID_ANY, _("Password:"));
m_Label2->SetFont(* pDoc->ft_Doc);
layout = new wxLayoutConstraints;
layout->left.SameAs(m_Label1, wxLeft);
layout->width.SameAs(m_Label1, wxWidth);
m_Label2->SetConstraints(layout);
- m_Password = new wxTextCtrl(this, -1, _T(""), wxDefaultPosition, wxDefaultSize, wxTE_PASSWORD);
+ m_Password = new wxTextCtrl(this, wxID_ANY, _T(""), wxDefaultPosition, wxDefaultSize, wxTE_PASSWORD);
m_Password->SetFont(* pDoc->ft_Doc);
layout = new wxLayoutConstraints;
layout->left.SameAs(m_UserName, wxLeft);
//----------------------------------------------------------------------------------------
void DlgUser::OnOk(wxCommandEvent& WXUNUSED(event) )
{
- //canceled = FALSE;
+ //canceled = false;
s_User = m_UserName->GetValue();
s_Password = m_Password->GetValue();
EndModal(wxID_OK);
//----------------------------------------------------------------------------------------
//void DlgUser::OnCancel(wxCommandEvent& WXUNUSED(event) )
// {
-// canceled = TRUE;
+// canceled = true;
// EndModal(wxID_CANCEL);
// }
//----------------------------------------------------------------------------------------