UserSet.h
上传用户:yffx2008
上传日期:2014-10-12
资源大小:12414k
文件大小:2k
- #if !defined(AFX_USERSET_H__54090EA5_EB8B_4FD1_9BB5_7C7B448F5C0C__INCLUDED_)
- #define AFX_USERSET_H__54090EA5_EB8B_4FD1_9BB5_7C7B448F5C0C__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // UserSet.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CUserSet recordset
- #include <afxdb.h>
- class CUserSet : public CRecordset
- {
- public:
- CUserSet(CDatabase* pDatabase = NULL);
- DECLARE_DYNAMIC(CUserSet)
- // Field/Param Data
- //{{AFX_FIELD(CUserSet, CRecordset)
- CString m_user;
- CString m_Password;
- CString m_UserType;
- //}}AFX_FIELD
- public:
- void LoadUser(CTreeCtrl &m_CtrlTree,HTREEITEM hTreeItem);
- BOOL CheckLogin(CString strUser,CString strPassWord);
- BOOL CheckOldPassword(CString strUser,CString strPassword);
- void EditPassword(CString strUser,CString strPassword);
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CUserSet)
- public:
- virtual CString GetDefaultConnect(); // Default connection string
- virtual CString GetDefaultSQL(); // Default SQL for Recordset
- virtual void DoFieldExchange(CFieldExchange* pFX); // RFX support
- //}}AFX_VIRTUAL
- // Implementation
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_USERSET_H__54090EA5_EB8B_4FD1_9BB5_7C7B448F5C0C__INCLUDED_)