Click here to Skip to main content
15,893,381 members
Articles / Desktop Programming / MFC

Control Center for Windows 2K and more extended

Rate me:
Please Sign up or sign in to vote.
4.55/5 (34 votes)
26 Jan 20046 min read 124.6K   1.5K   48  
Control Center for Windows 2K and more
#pragma once
#include "afxwin.h"


// CUserInformation dialog

class CUserInformation : public CDialog
{
	DECLARE_DYNAMIC(CUserInformation)

protected:
	// the display data
	NET_DISPLAY_USER User;
	// the user name
	CEdit m_UserName;
	// the full name
	CEdit m_FullName;
	// the user description
	CEdit m_UserDesc;
	// the id number
	CEdit m_UserID;
	// is the account disabled
	CButton m_AcctDisable;
	// no password is required
	CButton m_NoPassReqd;
	// can the user change password
	CButton m_CannotChangePass;
	// is the account locked out
	CButton m_IsAcctLockedOut;
	// no password required
	CButton m_PassNotExpire;
	// the account is trusted for delegation
	CButton m_TrustedForDelegation;
	// encrypted text passwords required
	CButton m_TextPwdAllowed;
	// is the account senesitive
	CButton m_AcctSensitive;
	// is smart card required
	CButton m_SmartCardReqd;
	// has the password expired
	CButton m_PwdExpired;


	// fill in the user details
	void SetUserDetails();
public:
	CUserInformation(NET_DISPLAY_USER USer,CWnd* pParent = NULL);   // standard constructor
	virtual ~CUserInformation();

// Dialog Data
	enum { IDD = IDD_NETUSERINFO };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnBnClickedButton2();
	afx_msg void OnPaint();
};

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
Engineer
India India
This is just a beginning. I’m yet to decide the distance I have to travel.
I’m a 2nd year B. Tech. Student and I’ve started Visual programming about a year ago. Lets hope I can continue that for the rest of 2 and a half more years.

Comments and Discussions