Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[040794]: EditDlg.h Maximize Restore History

Download this file

EditDlg.h    80 lines (67 with data), 1.9 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
// EditDlg.h
//-----------------------------------------------------------------------------
#include "afxwin.h"
class CItemData;
class CEditDlg
: public CDialog
{
public:
// default constructor
CEditDlg(CItemData *ci, CWnd* pParent = NULL);
virtual ~CEditDlg();
enum { IDD = IDD_EDIT };
CMyString m_defusername, m_username;
POSITION m_listindex;
bool m_IsReadOnly;
void ShowPassword();
void HidePassword();
private:
CItemData *m_ci; // The entry being edited
CMyString m_title;
CMyString m_group;
CMyString m_realpassword, m_oldRealPassword;
CMyString m_password, m_password2;
CMyString m_notes;
CMyString m_URL;
CMyString m_autotype;
CMyString m_ascCTime;
CMyString m_ascPMTime, m_ascATime, m_ascLTime, m_ascRMTime;
time_t m_tttLTime;
bool m_bIsModified;
// Password History related stuff
int m_NumPWHistory;
int m_MaxPWHistory;
bool m_ClearPWHistory;
BOOL m_SavePWHistory;
PWHistList m_PWHistList;
CMyString m_PWHistory;
bool m_isPwHidden;
// Are we showing more or less details?
bool m_isExpanded;
// following two are not directly derived from CItemData
CMyString m_oldascLTime;
int m_oldMaxPWHistory;
void ResizeDialog();
void UpdateHistory();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
afx_msg void OnShowpassword();
virtual void OnOK();
virtual BOOL OnInitDialog();
afx_msg void OnRandom();
afx_msg void OnHelp();
afx_msg void OnPasskeySetfocus();
afx_msg void OnPasskeyKillfocus();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedOk();
afx_msg void OnBnClickedMore();
afx_msg void OnBnClickedClearLTime();
afx_msg void OnBnClickedSetLTime();
afx_msg void OnBnClickedPwhist();
CButton m_MoreLessBtn;
};
//-----------------------------------------------------------------------------
// Local variables:
// mode: c++
// End: