137 lines
4.3 KiB
C++
137 lines
4.3 KiB
C++
#if !defined(AFX_FCADDRESS_H__90446D52_74BF_4D47_87CC_77E7A0A6A34B__INCLUDED_)
|
||
#define AFX_FCADDRESS_H__90446D52_74BF_4D47_87CC_77E7A0A6A34B__INCLUDED_
|
||
|
||
#if _MSC_VER > 1000
|
||
#pragma once
|
||
#endif // _MSC_VER > 1000
|
||
// FCAddress.h : header file
|
||
//
|
||
|
||
/////////////////////////////////////////////////////////////////////////////
|
||
// CFCAddress dialog
|
||
#include "..\public\reportctrl\ReportCtrl.h"
|
||
#include "DLG_User_ModifyC.h" // Added by ClassView
|
||
#include "DLG_FindUser.h"
|
||
|
||
#define MENU_CADDRESS_ADD WM_USER+230 //添加管理员
|
||
#define MENU_CADDRESS_ADDGROUP WM_USER+231 //添加组
|
||
#define MENU_CADDRESS_MODIFY WM_USER+232 //修改
|
||
#define MENU_CADDRESS_DEL WM_USER+233 //删除
|
||
#define MENU_CADDRESS_FIND WM_USER+234 //删除
|
||
#define MENU_CADDRESS_FIND2 WM_USER+235 //删除
|
||
#define MENU_CADDRESS_ADDTOLIST WM_USER+236 //发送短信
|
||
#define MENU_CADDRESS_ADDTOLIST_FAX WM_USER+237 //发送短信
|
||
#define MENU_CADDRESS_ADDTOLIST_MMS WM_USER+238 //发送短信
|
||
#define MENU_CADDRESS_INPORT WM_USER+239 //删除
|
||
#define MENU_CADDRESS_EXPORT WM_USER+240 //发送短信
|
||
#define MENU_CADDRESS_REFRESH WM_USER+241 //删除
|
||
#define MENU_CADDRESS_LOG WM_USER+242 //删除
|
||
#define MENU_CADDRESS_LOG2 WM_USER+243 //删除
|
||
#define MENU_CADDRESS_BACK WM_USER+2442 //删除
|
||
#define MENU_CADDRESS_REBACK WM_USER+2443 //删除
|
||
|
||
|
||
|
||
#define MENU_CADDRESS_COPY WM_USER+245 //删除
|
||
#define MENU_CADDRESS_CUT WM_USER+246 //删除
|
||
#define MENU_CADDRESS_PASTE WM_USER+247 //删除
|
||
|
||
#define CADDRESS_COPYTYPE_COPY 0
|
||
#define CADDRESS_COPYTYPE_CUT 1
|
||
|
||
class CMainFrame;
|
||
class CProcessSocket;
|
||
class CFuncView;
|
||
class CFCAddress : public CDialog
|
||
{
|
||
public:
|
||
CMainFrame * m_pMainFrame;
|
||
CFuncView * m_pFuncView;
|
||
long m_lUserID;
|
||
TCHAR m_szGroupID[16];
|
||
TCHAR m_szLocal[128]; //当前用户组所处的位置
|
||
|
||
protected:
|
||
CProcessSocket * m_pSocket;
|
||
CImageList m_Image;
|
||
BOOL m_bRefresh; //是否已刷新过数据
|
||
CAdoRecordSet m_AdoRS;
|
||
BOOL m_bInit; //是否已初始化
|
||
BOOL m_bFind2; //属于查询出来的用户
|
||
|
||
//以下为了复制粘贴而定义的变量
|
||
long m_Copy_UserID; //复制源的组ID
|
||
TCHAR m_Copy_GroupID[32];
|
||
long m_Copy_Count; //复制源的记录数
|
||
long m_Copy_Type; //复制类型,copy或cut
|
||
CKAddress * m_Copy_Data; //复制源的数据
|
||
|
||
// Construction
|
||
public:
|
||
void ShowRMenu();
|
||
void GetLocal(TCHAR *pLocal, TCHAR *pGroupID);
|
||
long ShowUser(long lUserID,const TCHAR * pWhere=NULL,BOOL bGroupAll=false);
|
||
long GetCurrentSelected();
|
||
BOOL RefreshInfo();
|
||
BOOL ReShow(BOOL bRefresh=false);
|
||
BOOL ReHide();
|
||
CFCAddress(CWnd* pParent = NULL); // standard constructor
|
||
|
||
// Dialog Data
|
||
//{{AFX_DATA(CFCAddress)
|
||
enum { IDD = IDD_CADDRESS };
|
||
CReportCtrl m_wndList;
|
||
//}}AFX_DATA
|
||
|
||
|
||
// Overrides
|
||
// ClassWizard generated virtual function overrides
|
||
//{{AFX_VIRTUAL(CFCAddress)
|
||
protected:
|
||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||
//}}AFX_VIRTUAL
|
||
|
||
// Implementation
|
||
public:
|
||
CKAddress GetUserData(long lUserID);
|
||
BOOL AddUser(CKAddress user,BOOL bShow=true);
|
||
|
||
// Generated message map functions
|
||
//{{AFX_MSG(CFCAddress)
|
||
virtual void OnOK();
|
||
virtual void OnCancel();
|
||
virtual BOOL OnInitDialog();
|
||
afx_msg void OnSize(UINT nType, int cx, int cy);
|
||
afx_msg void OnTimer(UINT_PTR nIDEvent);
|
||
afx_msg void OnDblclkKaddressList(NMHDR* pNMHDR, LRESULT* pResult);
|
||
afx_msg void OnRclickKaddressList(NMHDR* pNMHDR, LRESULT* pResult);
|
||
afx_msg void OnKeydownKaddressList(NMHDR* pNMHDR, LRESULT* pResult);
|
||
afx_msg void OnDestroy();
|
||
//}}AFX_MSG
|
||
|
||
afx_msg LRESULT On_List_DropBegin( WPARAM wParam , LPARAM lParam );
|
||
afx_msg void On_User_Add();
|
||
afx_msg void On_User_AddGroup();
|
||
afx_msg void On_User_Modify();
|
||
afx_msg void On_User_Del();
|
||
afx_msg void On_User_Find();
|
||
afx_msg void On_User_AddToList();
|
||
afx_msg void On_User_Inport();
|
||
afx_msg void On_User_Export();
|
||
afx_msg void On_User_Refresh();
|
||
|
||
afx_msg void On_User_Copy();
|
||
afx_msg void On_User_Cut();
|
||
afx_msg void On_User_Paste();
|
||
|
||
afx_msg void On_User_Log();
|
||
afx_msg void On_User_Log2();
|
||
|
||
DECLARE_MESSAGE_MAP()
|
||
};
|
||
|
||
//{{AFX_INSERT_LOCATION}}
|
||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||
|
||
#endif // !defined(AFX_FCADDRESS_H__90446D52_74BF_4D47_87CC_77E7A0A6A34B__INCLUDED_)
|