[040794]: ExpPWListDlg.h Maximize Restore History

Download this file

ExpPWListDlg.h    50 lines (39 with data), 1.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
#pragma once
#include "afxcmn.h"
#include "resource.h"
#include "corelib/MyString.h"
#include "corelib/sha256.h"
// Expired password Entry structure for CList
struct ExpPWEntry {
CMyString group;
CMyString title;
CMyString user;
CMyString expiryascdate; // "Day Mon DD HH:MM:SS YYYY" - format displayed in ListCtrl
CMyString expiryexpdate; // "YYYY/MM/DD HH:MM:SS" - format copied to clipboard - best for sorting
time_t expirytttdate;
};
// CExpPWListDlg dialog
class CExpPWListDlg : public CDialog
{
public:
CExpPWListDlg(CWnd* pParent = NULL,
const CString& a_filespec = ""); // standard constructor
virtual ~CExpPWListDlg();
// Dialog Data
enum { IDD = IDD_DISPLAY_EXPIRED_ENTRIES };
CList<ExpPWEntry, ExpPWEntry&>* m_pexpPWList;
CListCtrl m_expPWListCtrl;
CString m_message;
int m_iSortedColumn;
BOOL m_bSortAscending;
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnInitDialog();
virtual void OnOK();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedCopyExpToClipboard();
afx_msg void OnHeaderClicked(NMHDR* pNMHDR, LRESULT* pResult);
private:
static int CALLBACK CompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
};