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_FLOATINGWND_H__3135B822_307F_40AB_A070_F7906C9BCCB1__INCLUDED_) 00007 #define AFX_FLOATINGWND_H__3135B822_307F_40AB_A070_F7906C9BCCB1__INCLUDED_ 00008 00009 #include "FloatingWndDropTarget.h" 00010 #include "XInfoTip.h" 00011 #if _MSC_VER > 1000 00012 #pragma once 00013 #endif 00014 00015 class CFloatingWnd : public CFrameWnd 00016 { 00017 00018 protected: 00019 00020 public: 00021 CFloatingWnd(); 00022 00023 public: 00024 void HideAlways(); 00025 void SetBlend (BYTE val); 00026 00027 void UpdateTimer(); 00028 00029 void Show(BOOL bShow, BOOL bByUser = TRUE); 00030 00031 void SaveState(); 00032 BOOL Create(); 00033 virtual ~CFloatingWnd(); 00034 00035 //{{AFX_VIRTUAL(CFloatingWnd) 00036 //}}AFX_VIRTUAL 00037 00038 protected: 00039 BOOL m_bHideAlways; 00040 00041 void ShowTip(); 00042 CXInfoTip m_wndTip; 00043 BOOL m_bShown; 00044 BOOL m_bTimerSet; 00045 CFloatingWndDropTarget m_drop; 00046 BYTE m_blend; 00047 HICON m_hLogoIcon; 00048 class CMainFrame* m_pMainFrame; 00049 00050 //{{AFX_MSG(CFloatingWnd) 00051 afx_msg UINT OnNcHitTest(CPoint point); 00052 afx_msg void OnPaint(); 00053 afx_msg void OnNcRButtonUp(UINT nHitTest, CPoint point); 00054 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 00055 afx_msg void OnNcLButtonDblClk(UINT nHitTest, CPoint point); 00056 afx_msg void OnClose(); 00057 afx_msg void OnTimer(UINT nIDEvent); 00058 afx_msg void OnMoving(UINT fwSide, LPRECT pRect); 00059 //}}AFX_MSG 00060 DECLARE_MESSAGE_MAP() 00061 }; 00062 00063 //{{AFX_INSERT_LOCATION}//}} 00064 00065 #endif
1.5.6