Click here to Skip to main content
15,886,199 members
Articles / Desktop Programming / MFC

Exile 1.8 - The Password Manager

Rate me:
Please Sign up or sign in to vote.
4.57/5 (51 votes)
6 Mar 20058 min read 255.3K   7.4K   111  
Yet another password manager.
#if !defined(AFX_NEWDIALOG_H__B49F0379_6F85_4C92_98F1_D5C86B1762AE__INCLUDED_)
#define AFX_NEWDIALOG_H__B49F0379_6F85_4C92_98F1_D5C86B1762AE__INCLUDED_

#include "StaticHyperlinkEx.h"	// Added by ClassView
#include "Title.h"
#include "predefined.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// NewDialog.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CNewDialog dialog

class CNewDialog : public CDialog
{
// Construction
public:
	int m_nKeySize;
	CNewDialog(CWnd* pParent = NULL);   // standard constructor
	~CNewDialog();

	//
	// Password Generator Settings
	//
	BOOL m_bDecimalDigits;
	BOOL m_bLowercase;
	BOOL m_bPunctuation;
	BOOL m_bSpecial;
	BOOL m_bUppercase;
	int m_nPasswordLength;

// Dialog Data
	//{{AFX_DATA(CNewDialog)
	enum { IDD = IDD_NEW_DIALOG };
	CString	m_strMasterPassword;
	int		m_nRounds;
	CString	m_strUserName;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CNewDialog)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CNewDialog)
	virtual void OnOK();
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangeKeysize();
	afx_msg void OnMasterpasswordTitle();
	afx_msg void OnPasswordcontextGeneratepassword();
	afx_msg void OnPasswordcontextHidepassword();
	afx_msg void OnPasswordcontextShowpassword();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void SwitchPassword();
	BOOL m_bPassword;
	CStaticHyperlinkEx m_ctrlPassword;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_NEWDIALOG_H__B49F0379_6F85_4C92_98F1_D5C86B1762AE__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Russian Federation Russian Federation
I'll think about it later on...

Comments and Discussions