#include <FloatingInfoWnd.h>
Public Member Functions | |
| CFloatingInfoWnd () | |
| virtual | ~CFloatingInfoWnd () |
| void | HideAlways () |
| void | SetBlend (BYTE val) |
| void | TurnOffWindow () |
| void | NeedToShow (BOOL b) |
| void | SaveState () |
| void | AddDownloadToList (vmsDownloadSmartPtr dld, bool bUploadInfo) |
| void | RebuildList () |
| BOOL | Create () |
Protected Member Functions | |
| void | UpdateDownloadSpeed (int nItem) |
| int | FindIndex (vmsDownloadSmartPtr dld) |
| void | UpdateDownloadProgress (int nItem) |
| afx_msg int | OnCreate (LPCREATESTRUCT lpCreateStruct) |
| afx_msg void | OnClose () |
| afx_msg void | OnSize (UINT nType, int cx, int cy) |
| afx_msg void | OnGetMinMaxInfo (MINMAXINFO FAR *lpMMI) |
| afx_msg void | OnTimer (UINT nIDEvent) |
Protected Attributes | |
| BOOL | m_bHideAlways |
| CImageList | m_imgsList |
| CImageList | m_imgsList_sel |
| BOOL | m_bNeedToShow |
| BOOL | m_bWasFS |
| fsMutex | m_mxList |
| int | m_cxPercent |
| int | m_cxSpeed |
| CFloatingInfo_ListCtrlWnd | m_wndList |
| BYTE | m_blend |
| CFloatingWndDropTarget | m_drop |
Definition at line 17 of file FloatingInfoWnd.h.
| CFloatingInfoWnd::CFloatingInfoWnd | ( | ) |
| CFloatingInfoWnd::~CFloatingInfoWnd | ( | ) | [virtual] |
Definition at line 30 of file FloatingInfoWnd.cpp.
| void CFloatingInfoWnd::HideAlways | ( | ) |
Definition at line 282 of file FloatingInfoWnd.cpp.
References FALSE, m_bHideAlways, NeedToShow(), and TRUE.
Referenced by CMainFrame::OnClose().
| void CFloatingInfoWnd::SetBlend | ( | BYTE | val | ) |
Definition at line 275 of file FloatingInfoWnd.cpp.
References fsSetLayeredWindowAttributes(), fsSysGetOsMajorVersion(), LWA_ALPHA, and m_blend.
Referenced by Create(), CPrg_GeneralPage::OnApply(), CPrg_GeneralPage_FWDlg::OnCancel(), CPrg_GeneralPage::OnCancel(), and CPrg_GeneralPage_FWDlg::OnCustomdrawTrancparency2().
| void CFloatingInfoWnd::TurnOffWindow | ( | ) |
Definition at line 268 of file FloatingInfoWnd.cpp.
References _App, FALSE, NeedToShow(), and fsAppSettings::View_FloatingInfoWindow().
Referenced by CPrg_GeneralPage::OnApply(), OnClose(), and CMainFrame::OnDlinfobox().
| void CFloatingInfoWnd::NeedToShow | ( | BOOL | b | ) |
Definition at line 242 of file FloatingInfoWnd.cpp.
References _App, FALSE, fsAppSettings::FloatingWndsHideInFSMode(), fsIsSystemInFullScreenMode(), m_bHideAlways, and m_bNeedToShow.
Referenced by HideAlways(), CMainFrame::ShowFloatingInfoWindow(), and TurnOffWindow().
| void CFloatingInfoWnd::SaveState | ( | ) |
Definition at line 237 of file FloatingInfoWnd.cpp.
References _App, and fsAppSettings::View_SaveWndPlacement().
Referenced by CMainFrame::SaveState().
| void CFloatingInfoWnd::AddDownloadToList | ( | vmsDownloadSmartPtr | dld, | |
| bool | bUploadInfo | |||
| ) |
Definition at line 165 of file FloatingInfoWnd.cpp.
References CListCtrlEx::AddItem(), CDownloads_Tasks::GetFileName(), fsMutex::Lock(), m_mxList, m_wndList, MY_MAX_PATH, fsMutex::Unlock(), UpdateDownloadProgress(), and UpdateDownloadSpeed().
Referenced by RebuildList().
| void CFloatingInfoWnd::RebuildList | ( | ) |
Definition at line 133 of file FloatingInfoWnd.cpp.
References _DldsMgr, AddDownloadToList(), FALSE, fsDownloadsMgr::GetCount(), fsDownloadsMgr::GetDownload(), fsMutex::Lock(), m_mxList, m_wndList, and fsMutex::Unlock().
Referenced by OnTimer(), and CMainFrame::RebuidDownloadsList().
| BOOL CFloatingInfoWnd::Create | ( | ) |
Definition at line 86 of file FloatingInfoWnd.cpp.
References _App, fsAppSettings::DownloadsInfoWndBlend(), FALSE, fsSysGetOsMajorVersion(), L_ACTIVEDLDS, LS, NULL, SetBlend(), TRUE, fsAppSettings::View_ReadWndPlacement(), and WS_EX_LAYERED.
Referenced by CFloatingWndsThread::InitInstance().
| void CFloatingInfoWnd::UpdateDownloadSpeed | ( | int | nItem | ) | [protected] |
Definition at line 252 of file FloatingInfoWnd.cpp.
References BytesToXBytes(), CListCtrlEx::GetItemImage(), m_wndList, fsDownload::pMgr, and CListCtrlEx::SetItemText().
Referenced by AddDownloadToList(), and OnTimer().
| int CFloatingInfoWnd::FindIndex | ( | vmsDownloadSmartPtr | dld | ) | [protected] |
| void CFloatingInfoWnd::UpdateDownloadProgress | ( | int | nItem | ) | [protected] |
Definition at line 184 of file FloatingInfoWnd.cpp.
References CListCtrlEx::GetItemImage(), m_wndList, and CListCtrlEx::SetItemText().
Referenced by AddDownloadToList(), and OnTimer().
| int CFloatingInfoWnd::OnCreate | ( | LPCREATESTRUCT | lpCreateStruct | ) | [protected] |
Definition at line 44 of file FloatingInfoWnd.cpp.
References FALSE, IDB_DLDSINFO, IDB_DLDSINFO_SEL, CListCtrlEx::Initialize(), m_cxPercent, m_cxSpeed, m_drop, m_imgsList, m_imgsList_sel, m_wndList, NULL, SBMP, and CListCtrlEx::SetSelectedImages().
| void CFloatingInfoWnd::OnClose | ( | ) | [protected] |
| void CFloatingInfoWnd::OnSize | ( | UINT | nType, | |
| int | cx, | |||
| int | cy | |||
| ) | [protected] |
Definition at line 113 of file FloatingInfoWnd.cpp.
References m_cxPercent, m_cxSpeed, and m_wndList.
| void CFloatingInfoWnd::OnGetMinMaxInfo | ( | MINMAXINFO FAR * | lpMMI | ) | [protected] |
| void CFloatingInfoWnd::OnTimer | ( | UINT | nIDEvent | ) | [protected] |
Definition at line 203 of file FloatingInfoWnd.cpp.
References _App, BOOL, FALSE, fsAppSettings::FloatingWndsHideInFSMode(), fsIsSystemInFullScreenMode(), m_bHideAlways, m_bNeedToShow, m_bWasFS, m_wndList, RebuildList(), UpdateDownloadProgress(), and UpdateDownloadSpeed().
BOOL CFloatingInfoWnd::m_bHideAlways [protected] |
Definition at line 46 of file FloatingInfoWnd.h.
Referenced by HideAlways(), NeedToShow(), and OnTimer().
CImageList CFloatingInfoWnd::m_imgsList [protected] |
CImageList CFloatingInfoWnd::m_imgsList_sel [protected] |
BOOL CFloatingInfoWnd::m_bNeedToShow [protected] |
BOOL CFloatingInfoWnd::m_bWasFS [protected] |
fsMutex CFloatingInfoWnd::m_mxList [protected] |
Definition at line 53 of file FloatingInfoWnd.h.
Referenced by AddDownloadToList(), and RebuildList().
int CFloatingInfoWnd::m_cxPercent [protected] |
Definition at line 54 of file FloatingInfoWnd.h.
Referenced by OnCreate(), OnGetMinMaxInfo(), and OnSize().
int CFloatingInfoWnd::m_cxSpeed [protected] |
Definition at line 55 of file FloatingInfoWnd.h.
Referenced by OnCreate(), OnGetMinMaxInfo(), and OnSize().
CFloatingInfo_ListCtrlWnd CFloatingInfoWnd::m_wndList [protected] |
Definition at line 61 of file FloatingInfoWnd.h.
Referenced by AddDownloadToList(), FindIndex(), OnCreate(), OnSize(), OnTimer(), RebuildList(), UpdateDownloadProgress(), and UpdateDownloadSpeed().
BYTE CFloatingInfoWnd::m_blend [protected] |
CFloatingWndDropTarget CFloatingInfoWnd::m_drop [protected] |
1.5.6