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_WND_BANNER_H__44965A78_BA2D_4C40_AADC_3564F4202F1A__INCLUDED_) 00007 #define AFX_WND_BANNER_H__44965A78_BA2D_4C40_AADC_3564F4202F1A__INCLUDED_ 00008 00009 #include "vmsImage_CtxFree.h" 00010 #if _MSC_VER > 1000 00011 #pragma once 00012 #endif 00013 00014 class CWnd_Banner : public CWnd 00015 { 00016 00017 public: 00018 CWnd_Banner(); 00019 00020 public: 00021 00022 public: 00023 //{{AFX_VIRTUAL(CWnd_Banner) 00024 //}}AFX_VIRTUAL 00025 00026 public: 00027 void Shutdown(); 00028 void SetBanner (LPCSTR pszFile, LPCSTR pszURL); 00029 BOOL Create (CWnd* pWndParent, int cy); 00030 virtual ~CWnd_Banner(); 00031 00032 protected: 00033 00034 int m_iCurrentFrame; 00035 00036 void Initialize(); 00037 BOOL m_bRunning; 00038 HDC m_hDCNow; 00039 CString m_strImgFile; 00040 volatile DWORD m_dwThrJob; 00041 00042 static DWORD WINAPI _threadImage (LPVOID lp); 00043 CString m_strURL; 00044 vmsImage_CtxFree m_img; 00045 //{{AFX_MSG(CWnd_Banner) 00046 afx_msg void OnPaint(); 00047 afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 00048 afx_msg void OnTimer(UINT nIDEvent); 00049 afx_msg void OnLButtonUp(UINT nFlags, CPoint point); 00050 //}}AFX_MSG 00051 DECLARE_MESSAGE_MAP() 00052 }; 00053 00054 //{{AFX_INSERT_LOCATION}//}} 00055 00056 #endif
1.5.6