GME  13
SVNDialogLogin.cpp
Go to the documentation of this file.
00001 // SVNDialogLogin.cpp : implementation file
00002 //
00003 
00004 #include "stdafx.h"
00005 #include "SVNDialogLogin.h"
00006 #include "afxdialogex.h"
00007 
00008 
00009 // CSVNDialogLogin dialog
00010 
00011 IMPLEMENT_DYNAMIC(CSVNDialogLogin, CDialogEx)
00012 
00013 CSVNDialogLogin::CSVNDialogLogin(CWnd* pParent /*=NULL*/)
00014         : CDialogEx(CSVNDialogLogin::IDD, pParent)
00015         , realm(_T(""))
00016         , username(_T(""))
00017         , password(_T(""))
00018 {
00019 
00020 }
00021 
00022 CSVNDialogLogin::~CSVNDialogLogin()
00023 {
00024 }
00025 
00026 void CSVNDialogLogin::DoDataExchange(CDataExchange* pDX)
00027 {
00028         CDialogEx::DoDataExchange(pDX);
00029         DDX_Check(pDX, IDC_CHECK_PERMANENT, permanent);
00030         DDX_Text(pDX, IDC_EDIT_REALM, realm);
00031         DDX_Text(pDX, IDC_EDIT_USERNAME, username);
00032         DDX_Text(pDX, IDC_EDIT_PASSWORD, password);
00033 }
00034 
00035 
00036 BEGIN_MESSAGE_MAP(CSVNDialogLogin, CDialogEx)
00037 //      ON_BN_CLICKED(IDC_CHECK_SAVECREDS, &CSVNDialogLogin::OnBnClickedCheckSavecreds)
00038 END_MESSAGE_MAP()
00039 
00040 
00041 // CSVNDialogLogin message handlers
00042 
00043 
00044 //void CSVNDialogLogin::OnBnClickedCheckSavecreds()
00045 //{
00046 //      // TODO: Add your control notification handler code here
00047 //}
00048 
00049 
00050 BOOL CSVNDialogLogin::OnInitDialog()
00051 {
00052         CDialogEx::OnInitDialog();
00053 
00054         GetDlgItem(IDC_CHECK_PERMANENT)->EnableWindow(permanentEnabled);
00055         GetDlgItem(IDC_EDIT_PASSWORD)->EnableWindow(passwordEnabled);
00056 
00057         return TRUE;  // return TRUE unless you set the focus to a control
00058         // EXCEPTION: OCX Property Pages should return FALSE
00059 }