00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008-2010 OpenDownloadManager.ORG 00004 */ 00005 00006 #if !defined(AFX_HFE_ADDRESS_H__F157DF67_3742_4B46_975C_12E9CD724673__INCLUDED_) 00007 #define AFX_HFE_ADDRESS_H__F157DF67_3742_4B46_975C_12E9CD724673__INCLUDED_ 00008 00009 #if _MSC_VER > 1000 00010 #pragma once 00011 #endif 00012 00013 #include "ComboBox_Ex.h" 00014 00015 class CHFE_Address : public CWnd 00016 { 00017 friend class CHFEWnd; 00018 friend class CHFE_FileList; 00019 00020 public: 00021 CHFE_Address(); 00022 00023 public: 00024 00025 public: 00026 00027 //{{AFX_VIRTUAL(CHFE_Address) 00028 //}}AFX_VIRTUAL 00029 00030 public: 00031 void ClearHistory(); 00032 00033 CString PopUrl(); 00034 00035 void PushUrl (LPCSTR pszUrl); 00036 00037 void UpdateUrl(); 00038 void ApplyLanguage(); 00039 00040 LPCSTR GetUrl(); 00041 BOOL Create (CWnd* pParent); 00042 virtual ~CHFE_Address(); 00043 00044 00045 protected: 00046 virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult); 00047 00048 void HfeGo(BOOL bPushUrl = TRUE); 00049 00050 afx_msg void OnHfeBack(); 00051 fs::list <CString> m_vAddrs; 00052 CImageList m_imgsBarGo, m_imgsBarBack, m_imgsBarBack_D; 00053 00054 void CreateBars(); 00055 CToolBar m_barGo; 00056 CToolBar m_barBack; 00057 CString m_strUrl; 00058 CRect m_rcUrl; 00059 void DrawUrlFrame (CDC* dc); 00060 CFont m_font; 00061 CComboBox_Ex m_wndUrl; 00062 00063 //{{AFX_MSG(CHFE_Address) 00064 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 00065 afx_msg void OnSize(UINT nType, int cx, int cy); 00066 afx_msg void OnPaint(); 00067 afx_msg void OnHfeGo(); 00068 //}}AFX_MSG 00069 DECLARE_MESSAGE_MAP() 00070 }; 00071 00072 //{{AFX_INSERT_LOCATION}//}} 00073 00074 #endif
1.5.6