00001
00002
00003
00004
00005
00006 #if !defined(AFX_HFEWND_H__1BCAA1E5_6ACC_458E_B378_DACBA9BDE111__INCLUDED_)
00007 #define AFX_HFEWND_H__1BCAA1E5_6ACC_458E_B378_DACBA9BDE111__INCLUDED_
00008
00009 #include "HFE_ListLog.h"
00010 #include "HFE_Address.h"
00011 #include "fsInternetFileListMgr.h"
00012 #include "fsEventsMgr.h"
00013 #include "plugins.h"
00014 #if _MSC_VER > 1000
00015 #pragma once
00016 #endif
00017
00018 class CHFEWnd : public CWnd
00019 {
00020 friend class CHFE_Log;
00021 friend class CHFE_FileList;
00022
00023 public:
00024 CHFEWnd();
00025
00026 public:
00027
00028 public:
00029
00030
00031
00032 public:
00033 static HMENU Plugin_GetViewMenu();
00034 static HMENU Plugin_GetMainMenu();
00035
00036 void LogFailedMessage (LPCSTR pszMsg);
00037 void ClearHistory();
00038
00039 static void Plugin_SetLanguage (wgLanguage, HMENU hMenuMain, HMENU);
00040 static void Plugin_GetPluginNames(LPCSTR *ppszLong, LPCSTR *ppszShort);
00041 static void Plugin_GetMenuViewItems(wgMenuViewItem **ppItems, int *cItems);
00042 static void Plugin_GetMenuImages(fsSetImage **ppImages, int *pcImages);
00043 static void Plugin_GetToolBarInfo(wgTButtonInfo **ppButtons, int *pcButtons);
00044 static HWND Plugin_CreateMainWindow (HWND hParent);
00045 afx_msg LRESULT OnAppQueryExit (WPARAM, LPARAM);
00046 afx_msg LRESULT OnAppExit (WPARAM, LPARAM);
00047
00048 void OnGo();
00049
00050 void SaveAll();
00051 fsInternetFileListMgr* GetMgr();
00052 BOOL Create (CWnd* pParent);
00053 virtual ~CHFEWnd();
00054
00055 protected:
00056
00057 afx_msg void OnLogShowCol (UINT uCmd);
00058 afx_msg void OnFilesListShowCol (UINT uCmd);
00059 void UpdateLogColMenu (CMenu* menu);
00060 void UpdateFilesListColMenu (CMenu* menu);
00061
00062 afx_msg LRESULT OnUpdateMenuView (WPARAM, LPARAM lp);
00063 void ApplyLanguageToMenuView(CMenu *menu);
00064
00065 afx_msg void OnShowLog ();
00066 afx_msg LRESULT OnUpdateToolBar (WPARAM wp, LPARAM);
00067
00068 static DWORD WINAPI _threadGoUrl (LPVOID lp);
00069 afx_msg LRESULT OnUpdateMenu (WPARAM, LPARAM lp);
00070 fsEventsMgr m_evMgr;
00071
00072 static void _EventsFunc (class fsInternetFileListMgr*, fsInternetFileListMgrEvent ev, LPVOID lp);
00073 fsInternetFileListMgr m_mgr;
00074 CHFE_ListLog m_wndListLog;
00075 CHFE_Address m_wndUrl;
00076
00077 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00078 afx_msg void OnDestroy();
00079 afx_msg void OnSize(UINT nType, int cx, int cy);
00080
00081 afx_msg void OnHfeRefresh();
00082
00083 afx_msg void OnHfeSettings();
00084
00085 afx_msg void OnHfeStop();
00086
00087 afx_msg void OnHfeDownload();
00088
00089 afx_msg void OnHfeOpenfolder();
00090
00091 afx_msg void OnHfeParentfolder();
00092
00093 afx_msg void OnHfeDisconnect();
00094 afx_msg void OnSetFocus(CWnd* pOldWnd);
00095
00096 DECLARE_MESSAGE_MAP()
00097 };
00098
00099
00100
00101 #endif