MainFrm.h
上传用户:maryhy001
上传日期:2007-05-02
资源大小:2317k
文件大小:4k
- #ifndef _MAINFRAME_H
- #define _MAINFRAME_H
- #include "Mutex.h"
- #include "SafeVector.h"
- #include "SysLogView.h"
- #include "WorkFrame.h"
- #include "FileListRecv.h"
- #include "XTSplitterWnd.h"
- #include "ChatPanelBar.h"
- #include "..publicTrayIcon.h"
- class CMainFrame : public CFrameWnd
- {
- protected:
- CMainFrame();
- DECLARE_DYNCREATE(CMainFrame)
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMainFrame)
- public:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- virtual BOOL DestroyWindow();
- protected:
- virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CMainFrame();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
-
- public:
- CWorkFrame *m_pwndWorkFrame; //work frame window.
- CSysLogView *m_pwndSyslogView; //system log view.
-
- CProgressCtrl m_wndSendingProgCtrl; //sending file progress control.
- CChatPanelBar m_wndChatBar; //chat docking-bar control.
- protected:
- CToolBar m_wndToolBar; //toolbar object.
- CStatusBar m_wndStatusBar; //statusbar object.
- CXTSplitterWnd m_wndTBSplit; //Top-Bottom splitter window.
- CTrayIcon m_wndSysTray; //system tray icon manager object.
-
- protected:
- //{{AFX_MSG(CMainFrame)
- afx_msg void OnSysCommand( UINT nID, LPARAM lParam );
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnSystemSetting();
- afx_msg void OnFileAddfiles();
- afx_msg void OnFileDelfles();
- afx_msg void OnUpdateFileDelfles(CCmdUI* pCmdUI);
- afx_msg void OnSystemUsrlogin();
- afx_msg void OnUpdateSystemUsrlogin(CCmdUI* pCmdUI);
- afx_msg void OnUserRefusrlist();
- afx_msg void OnUserSearch();
- afx_msg void OnUserRename();
- afx_msg void OnFileHidesys();
- afx_msg void OnUserLocalusrinfo();
- afx_msg void OnFileSend();
- afx_msg void OnFileCancelSend();
- afx_msg void OnUpdateFileCancelSend(CCmdUI* pCmdUI);
- afx_msg void OnUpdateFileSend(CCmdUI* pCmdUI);
- afx_msg void OnSystemCrtusrgrp();
- afx_msg void OnSystemFtpSetting();
- afx_msg void OnConnectFtpSvr();
- afx_msg void OnUpdateFtpoperOpen(CCmdUI* pCmdUI);
- afx_msg void OnDisconnectFtpSvr();
- afx_msg void OnUpdateFtpoperClose(CCmdUI* pCmdUI);
- afx_msg void OnRefreshFtpDirs();
- afx_msg void OnUpdateFtpoperRefdirs(CCmdUI* pCmdUI);
- afx_msg void OnViewChatBar();
- afx_msg void OnUpdateViewChatBar(CCmdUI* pCmdUI);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
-
- afx_msg LRESULT OnSysTray(WPARAM wp, LPARAM lp); //UWM_SYSTRAY
- afx_msg LRESULT OnRefUserListNotify(WPARAM, LPARAM); //UWM_REFRESHUSRLST
- afx_msg LRESULT OnUpdateStatuBarNotify(WPARAM, LPARAM); //UWM_UPDATESTATUSBAR
- afx_msg LRESULT OnUpdateSystemLogInfo(WPARAM, LPARAM); //UWM_UPDATESYSLOGINF
- afx_msg LRESULT OnRecvedFileHeaderNotify(WPARAM, LPARAM); //UWM_RECVOR_UPDATE_RECVING_START
- afx_msg LRESULT OnRecvedFileBodyNotify(WPARAM, LPARAM); //UWM_RECVOR_UPDATE_RECVING_PROGRESS
- afx_msg LRESULT OnRecvedFileOverNotify(WPARAM, LPARAM); //UWM_RECVOR_UPDATE_ONEFILERECV_OK
- afx_msg LRESULT OnSendedFileHeaderNotify(WPARAM, LPARAM); //UWM_SNDER_UPDATE_SNDING_START
- afx_msg LRESULT OnSendedFileBodyNotify(WPARAM, LPARAM); //UWM_SNDER_UPDATE_SNDING_PROGRESS
- afx_msg LRESULT OnSendedFileOverNotify(WPARAM, LPARAM); //UWM_SNDER_UPDATE_ONEFILESEND_OK
- afx_msg LRESULT OnAddSendFileFrmShellNotify(WPARAM, LPARAM);//UWM_SHELLSNDTONOTIFY
- private:
- static DWORD CALLBACK RefreshUserListThread(LPVOID lpParameters);
- private:
- int m_nCurrentViewID; //current view index.
-
- CMutex m_sndsockmutex;
- int m_ncuripindx, //current dest ip.
- m_ncurfleindx; //current sending file index.
-
- safe_vector<AGINFO> m_pdestips; //dest ip address list that send file.
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif //_MAINFRAME_H