[r5083]: tags / V3_03 / PWHistDlg.h Maximize Restore History

Download this file

PWHistDlg.h    58 lines (48 with data), 1.5 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
// PWHisDlg.h CPWHistDlg
//-----------------------------------------------------------------
#pragma once
#include "afxwin.h"
class CItemData;
class CPWHistDlg : public CDialog
{
DECLARE_DYNAMIC(CPWHistDlg)
public:
CPWHistDlg(CWnd* pParent, bool IsReadOnly,
CMyString &HistStr, PWHistList &PWHistList,
int NumPWHistory, int &MaxPWHistory,
BOOL &SavePWHistory);
virtual ~CPWHistDlg();
// Dialog Data
enum { IDD = IDD_DLG_PWHIST };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnOK();
virtual BOOL OnInitDialog();
private:
const bool m_IsReadOnly;
// Following reference members from EditDlg
CMyString &m_HistStr;
PWHistList &m_PWHistList;
const int m_NumPWHistory;
int &m_MaxPWHistory;
BOOL &m_SavePWHistory;
CListCtrl m_PWHistListCtrl;
int m_iSortedColumn;
BOOL m_bSortAscending;
int m_oldMaxPWHistory;
bool m_ClearPWHistory;
afx_msg void OnCheckedSavePasswordHistory();
afx_msg void OnHeaderClicked(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnHistListClick(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnBnClickedPwhCopyAll();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedClearPWHist();
private:
static int CALLBACK CompareFunc(LPARAM lParam1, LPARAM lParam2,
LPARAM lParamSort);
};
//-----------------------------------------------------------------------------
// Local variables:
// mode: c++
// End: