/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2002-2019, Open Design Alliance (the "Alliance"). // All rights reserved. // // This software and its documentation and related materials are owned by // the Alliance. The software may only be incorporated into application // programs owned by members of the Alliance, subject to a signed // Membership Agreement and Supplemental Software License Agreement with the // Alliance. The structure and organization of this software are the valuable // trade secrets of the Alliance and its suppliers. The software is also // protected by copyright law and international treaty provisions. Application // programs incorporating this software must include the following statement // with their copyright notices: // // This application incorporates Open Design Alliance software pursuant to a license // agreement with Open Design Alliance. // Open Design Alliance Copyright (C) 2002-2019 by Open Design Alliance. // All rights reserved. // // By use of this software, its documentation or related materials, you // acknowledge and accept the above terms. /////////////////////////////////////////////////////////////////////////////// // PasswordDlg.cpp : implementation file // #include "stdafx.h" #include "odamfcapp.h" #include "PasswordDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CPasswordDlg dialog CPasswordDlg::CPasswordDlg(CWnd* pParent /*=NULL*/) : CDialog(CPasswordDlg::IDD, pParent) { //{{AFX_DATA_INIT(CPasswordDlg) m_sFileName = _T(""); //}}AFX_DATA_INIT } void CPasswordDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CPasswordDlg) DDX_Control(pDX, IDC_EDIT_PWD, m_pswCtrl); DDX_Text(pDX, IDC_PASS_FILE_NAME, m_sFileName); //}}AFX_DATA_MAP if (pDX->m_bSaveAndValidate) { CString s; m_pswCtrl.GetWindowText( s ); #ifdef _UNICODE m_password = s; #else ODA_ASSERT( s.GetLength() < MAX_PATH ); wchar_t buffer[MAX_PATH] = {0}; ::OemToCharW( s, buffer ); m_password = buffer; #endif } } BEGIN_MESSAGE_MAP(CPasswordDlg, CDialog) //{{AFX_MSG_MAP(CPasswordDlg) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CPasswordDlg message handlers