Click here to Skip to main content
15,881,248 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 254.8K   7.4K   111  
Yet another password manager.
#if !defined(AFX_OPTIONSDIALOG_H__A704A947_F7A8_4D2E_A66B_B7EBA67B4848__INCLUDED_)
#define AFX_OPTIONSDIALOG_H__A704A947_F7A8_4D2E_A66B_B7EBA67B4848__INCLUDED_

#include "Settings.h"	// Added by ClassView
#include "predefined.h"	// Added by ClassView
#include "PropertyBrowser.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// OptionsDialog.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// COptionsDialog dialog

class COptionsDialog : public CDialog
{
// Construction
public:
	void SetSettings(CSettings *pstSettings);
	int GetSortOrder() { return m_nSort; }
	void SetSortOrder(int nSort) { m_nSort = nSort; }
	COptionsDialog(CWnd* pParent = NULL);   // standard constructor
	void SetHotKey(WORD wModifiers, WORD wKeyCode) { m_wModifiers = wModifiers; m_wKeyCode = wKeyCode; }
	void GetHotKey(WORD &wModifiers, WORD &wKeyCode) { wModifiers = m_wModifiers; wKeyCode = m_wKeyCode; }
	CString m_strStorageName;

// Dialog Data
	//{{AFX_DATA(COptionsDialog)
	enum { IDD = IDD_OPTIONS_DIALOG };		
	//}}AFX_DATA
	BOOL m_bMinimizeToTray;
	BOOL m_bReloadLastStorage;
	BOOL m_bAutosave;
	BOOL m_bAutosort;
	BOOL m_bSmartType;
	BOOL m_bBackup;
	BOOL m_bMaintainFileAssociations;
	BOOL m_bReloadReadonly;
	BOOL m_bShellOpenReadOnly;
	BOOL m_bClipboardErasing;
	int m_nErasingTimeout; // Clipboard Erasing Timeout (seconds)

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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(COptionsDialog)
	virtual BOOL OnInitDialog();
	virtual void OnOK();	
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:		
	CSettings *m_pstSettings;
	CPropertyBrowser m_ctrlBrowser;
	int m_nSort;
	WORD m_wModifiers, m_wKeyCode;
};

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

#endif // !defined(AFX_OPTIONSDIALOG_H__A704A947_F7A8_4D2E_A66B_B7EBA67B4848__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