CChangePassword

Back to Classes Page

Parent Class: CDialog

Resource ID: IDD_CHANGE_PASSWORD_DIALOG

This dialog is shown when User clicks Tools-Change Password from menu.

Field Summary

Access Data Type Name
public CString m_OldPassword
public CString m_Password
public CString m_Password2
public CMessengerClientDoc * m_pParent

Constructor Summary

CChangePassword(CWnd* pParent /*=NULL*/)
CChangePassword(CMessengerClientDoc *pDoc, CWnd* pParent /*= NULL*/)

Destructor Summary

No destructor specified. Default destructor.

Method Summary

int IsPasswordValid(CString password, CString password2 /* = NULL*/)
protected: void OnCancel()
protected: void OnOK()

Field Detail

m_OldPassword
Old password, background variable for the dialog.

m_Password
New password entered by the user, background variable for the dialog.

m_Password2
New password typed again by the user, background variable for the dialog. Must match the m_Password variable's value exactly.

m_pParent
Pointer to the Document object.

Constructor Detail

CChangePassword(CWnd* pParent /*=NULL*/)
Default constructor. Never use this constructor.

CChangePassword(CMessengerClientDoc *pDoc, CWnd* pParent /*= NULL*/)
Points m_pParent to the Document object.

Destructor Detail

Method Detail

IsPasswordValid(CString password, CString password2 /* = NULL*/)
This method is identical to the method with the same signature in Registration Dialog.
Determines whether the password entered by the user is valid. The conditions for password validity are as follows:


OnCancel()


OnOK()


Back to Classes Page