Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

WndChild.h

Go to the documentation of this file.
00001 //
00002 // WndChild.h
00003 //
00004 // Copyright (c) Shareaza Development Team, 2002-2005.
00005 // This file is part of SHAREAZA (www.shareaza.com)
00006 //
00007 // Shareaza is free software; you can redistribute it
00008 // and/or modify it under the terms of the GNU General Public License
00009 // as published by the Free Software Foundation; either version 2 of
00010 // the License, or (at your option) any later version.
00011 //
00012 // Shareaza is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 // GNU General Public License for more details.
00016 //
00017 // You should have received a copy of the GNU General Public License
00018 // along with Shareaza; if not, write to the Free Software
00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020 //
00021 
00022 #if !defined(AFX_WNDCHILD_H__082500C0_14CD_4066_95F9_DA21AD8C7E72__INCLUDED_)
00023 #define AFX_WNDCHILD_H__082500C0_14CD_4066_95F9_DA21AD8C7E72__INCLUDED_
00024 
00025 #pragma once
00026 
00027 #include "CtrlCoolBar.h"
00028 #include "LiveListSizer.h"
00029 
00030 class CMainWnd;
00031 class CWindowManager;
00032 class CQuerySearch;
00033 class CQueryHit;
00034 class CBuffer;
00035 class CConnection;
00036 class CSkinWindow;
00037 
00038 
00039 class CChildWnd : public CMDIChildWnd
00040 {
00041 // Construction
00042 public:
00043         CChildWnd();
00044         virtual ~CChildWnd();
00045 
00046         DECLARE_DYNCREATE(CChildWnd)
00047 
00048 // Attributes
00049 public:
00050         UINT                    m_nResID;
00051         BOOL                    m_bTabMode;
00052         BOOL                    m_bGroupMode;
00053         CChildWnd*              m_pGroupParent;
00054         float                   m_nGroupSize;
00055         BOOL                    m_bPanelMode;
00056         BOOL                    m_bAlert;
00057         CSkinWindow*    m_pSkin;
00058 private:
00059         static CChildWnd*       m_pCmdMsg;
00060 
00061 // Operations
00062 public:
00063         CMainWnd*               GetMainWnd();
00064         CWindowManager* GetManager();
00065         BOOL                    IsActive(BOOL bFocused = FALSE);
00066         BOOL                    IsPartiallyVisible();
00067         BOOL                    TestPoint(const CPoint& ptScreen);
00068         void                    TrackPopupMenu(LPCTSTR pszMenu, const CPoint& point, UINT nDefaultID = 0);
00069         BOOL                    LoadState(LPCTSTR pszName = NULL, BOOL bDefaultMaximise = TRUE);
00070         BOOL                    SaveState(LPCTSTR pszName = NULL);
00071         BOOL                    SetAlert(BOOL bAlert = TRUE);
00072         void                    SizeListAndBar(CWnd* pList, CWnd* pBar);
00073 public:
00074         virtual void    OnSkinChange();
00075         virtual void    OnQuerySearch(CQuerySearch* pSearch);
00076         virtual BOOL    OnQueryHits(CQueryHit* pHits);
00077         virtual BOOL    OnPush(GGUID* pClientID, CConnection* pConnection);
00078         virtual HRESULT GetGenericView(IGenericView** ppView);
00079         virtual BOOL    OnDropFiles(CStringList& pFiles, const CPoint& ptScreen, BOOL bDrop);
00080 
00081 // Overrides
00082 public:
00083         //{{AFX_VIRTUAL(CChildWnd)
00084         public:
00085         virtual BOOL Create(UINT nID, BOOL bVisible = TRUE);
00086         virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
00087         //}}AFX_VIRTUAL
00088 
00089 // Implementation
00090 protected:
00091         //{{AFX_MSG(CChildWnd)
00092         afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00093         afx_msg void OnDestroy();
00094         afx_msg BOOL OnEraseBkgnd(CDC* pDC);
00095         afx_msg void OnSize(UINT nType, int cx, int cy);
00096         afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
00097         afx_msg void OnMDIActivate(BOOL bActivate, CWnd* pActivateWnd, CWnd* pDeactivateWnd);
00098         afx_msg void OnNcRButtonUp(UINT nHitTest, CPoint point);
00099         afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp);
00100         afx_msg UINT OnNcHitTest(CPoint point);
00101         afx_msg void OnNcPaint();
00102         afx_msg BOOL OnNcActivate(BOOL bActive);
00103         afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
00104         afx_msg void OnNcLButtonUp(UINT nHitTest, CPoint point);
00105         afx_msg void OnNcMouseMove(UINT nHitTest, CPoint point);
00106         afx_msg void OnNcLButtonDblClk(UINT nHitTest, CPoint point);
00107         //}}AFX_MSG
00108         afx_msg LONG OnSetText(WPARAM wParam, LPARAM lParam);
00109         DECLARE_MESSAGE_MAP()
00110 
00111 };
00112 
00113 //{{AFX_INSERT_LOCATION}}
00114 
00115 #define IDC_PANEL       101
00116 
00117 
00118 #endif // !defined(AFX_WNDCHILD_H__082500C0_14CD_4066_95F9_DA21AD8C7E72__INCLUDED_)

Generated on Thu Dec 15 10:39:51 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2