Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

A Complete FTP Server

, 30 May 2005
This article presents a fully functional implementation of a FTP server.
#if !defined(AFX_USERACCOUNTPAGE_H__74AB3DE7_DEB4_42EA_AB60_E1829079F245__INCLUDED_)

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "DialogResize.h"
#include "UserManager.h"
#include "IconButton.h"

class CUserAccountPage : public CDialogResize
// Construction
	void SetModified(BOOL bModified = TRUE);
	BOOL UpdateAccount(int nSelIndex = -1);
	BOOL m_bModified;

	CArray<CUser, CUser&> m_UserArray;
	CUserAccountPage(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	CIconButton	m_btnWizard;
	CIconButton	m_btnUpdate;
	CIconButton	m_btnEdit;
	CIconButton	m_btnDel;
	CIconButton	m_btnAdd;
	CListCtrl	m_UsersList;
	BOOL	m_bDisableAccount;
	CString	m_strHomeDirectory;
	CString	m_strPassword;
	BOOL	m_bAllowCreateDirectory;
	BOOL	m_bAllowDelete;
	BOOL	m_bAllowRename;
	BOOL	m_bAllowUpload;
	BOOL	m_bAllowDownload;
	void OnDisableAccount();

// Overrides
	// ClassWizard generated virtual function overrides
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

// Implementation
	void OnSelchangeUserlist();
	int m_nPreviousIndex;
	CString m_strUserName;
	CImageList m_ImageList;
	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnAddUser();
	afx_msg void OnEditUser();
	afx_msg void OnDelUser();
	afx_msg void OnDblclkUsers(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnWizard();
	afx_msg void OnClickUsers(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnKeydownUsers(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnUpdate();
	afx_msg void OnBrowse();
	afx_msg void OnSomethingChanged();
	void OnUpdateModified(CCmdUI* pCmdUI);


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

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


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


About the Author

Pablo van der Meer
Web Developer
Netherlands Netherlands
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150331.1 | Last Updated 30 May 2005
Article Copyright 2002 by Pablo van der Meer
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid