00001
00002
00003
00004
00005
00006 #if !defined(AFX_UPLOADSWND_H__10043ADB_1AF4_4035_8F21_703313BD9458__INCLUDED_)
00007 #define AFX_UPLOADSWND_H__10043ADB_1AF4_4035_8F21_703313BD9458__INCLUDED_
00008
00009 #if _MSC_VER > 1000
00010 #pragma once
00011 #endif
00012
00013 extern class CUploadsWnd *_pwndUploads;
00014
00015 #include "Uploader\CoreDll\dll.h"
00016 #include "vmsUploadsDllCaller.h"
00017
00018 class CUploadsWnd : public CWnd
00019 {
00020
00021 public:
00022 CUploadsWnd();
00023
00024 public:
00025
00026 public:
00027
00028
00029
00030 public:
00031 static BOOL LoadFumCoreDll(bool bShowUI = false);
00032 static HMENU Plugin_GetViewMenu();
00033 static HMENU Plugin_GetMainMenu();
00034
00035 vmsUploadsDll::vmsUploadsWnd *m_pwndUploads;
00036 void SaveAll();
00037 void ApplyLanguageToMenu(CMenu* menu);
00038 static void Plugin_SetLanguage(wgLanguage, HMENU hMenuMain, HMENU hMenuView);
00039 static void Plugin_GetPluginNames(LPCSTR *ppszLong, LPCSTR *ppszShort);
00040 static void Plugin_GetMenuViewItems(wgMenuViewItem **ppItems, int* );
00041 static void Plugin_GetMenuImages(fsSetImage **ppImages, int *pcImages);
00042 static void Plugin_GetToolBarInfo(wgTButtonInfo **ppButtons, int *pcButtons);
00043 static HWND Plugin_CreateMainWindow(HWND hWndParent);
00044 BOOL Create(CWnd *pWndParent);
00045 virtual ~CUploadsWnd();
00046
00047 protected:
00048 afx_msg void OnUploadsCmd (UINT nCmd);
00049
00050 static HMODULE m_hUploadsDll;
00051
00052 vmsUploadsDllCaller m_udc;
00053 afx_msg void OnLogShowCol (UINT nID);
00054 afx_msg void OnListShowCol (UINT nID);
00055 void UpdateListColMenu(CMenu *menu);
00056 void ApplyLanguageToMenuView(CMenu *menu);
00057 void UpdateLogColMenu (CMenu *menu);
00058 afx_msg LRESULT OnUpdateMenuView (WPARAM, LPARAM lp);
00059 afx_msg LRESULT OnInsert (WPARAM, LPARAM);
00060 int UpdateToolBar(UINT nID);
00061 afx_msg LRESULT OnUpdateToolBar (WPARAM wp, LPARAM);
00062 void UpdateMenu (CMenu *menu);
00063 afx_msg LRESULT OnUpdateMenu (WPARAM, LPARAM lp);
00064 afx_msg LRESULT OnAppQueryExit (WPARAM, LPARAM);
00065 afx_msg LRESULT OnAppExit (WPARAM, LPARAM);
00066
00067 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00068 afx_msg void OnSize(UINT nType, int cx, int cy);
00069
00070 DECLARE_MESSAGE_MAP()
00071 };
00072
00073
00074
00075 #endif