[ec62bb]: AddDlg.h Maximize Restore History

Download this file

AddDlg.h    89 lines (77 with data), 2.2 kB

 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/*
* Copyright (c) 2003-2006 Rony Shapiro <ronys@users.sourceforge.net>.
* All rights reserved. Use of the code is allowed under the
* Artistic License terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license.php
*/
#pragma once
/// \file AddDlg.h
//-----------------------------------------------------------------------------
#include "afxwin.h"
#include "ControlExtns.h"
class CAddDlg : public CDialog
{
// Construction
public:
CAddDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CAddDlg)
enum { IDD = IDD_ADD };
CMyString m_password, m_password2;
CMyString m_notes;
CMyString m_username;
CMyString m_title;
CMyString m_group;
CMyString m_URL;
CMyString m_autotype;
CMyString m_ascLTime;
time_t m_tttLTime;
BOOL m_SavePWHistory;
int m_MaxPWHistory;
void ShowPassword();
void HidePassword();
CComboBoxExtn m_ex_group;
CEditExtn m_ex_password, m_ex_password2;
CEditExtn m_ex_notes;
CEditExtn m_ex_username;
CEditExtn m_ex_title;
CEditExtn m_ex_URL;
CEditExtn m_ex_autotype;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAddDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
private:
bool m_isPwHidden;
// Are we showing more or less details?
bool m_isExpanded;
void ResizeDialog();
static CString CS_SHOW, CS_HIDE;
// Implementation
protected:
virtual BOOL OnInitDialog();
// Generated message map functions
//{{AFX_MSG(CAddDlg)
virtual void OnCancel();
virtual void OnOK();
afx_msg void OnHelp();
afx_msg void OnRandom();
afx_msg void OnShowpassword();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedOk();
afx_msg void OnBnClickedMore();
afx_msg void OnBnClickedClearLTime();
afx_msg void OnBnClickedSetLTime();
afx_msg void OnCheckedSavePasswordHistory();
CButton m_moreLessBtn;
};
//-----------------------------------------------------------------------------
// Local variables:
// mode: c++
// End: