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

CChildWnd Class Reference

#include <WndChild.h>

Inheritance diagram for CChildWnd:

CChatWnd CPanelWnd CTrafficWnd CBaseMatchWnd CDiscoveryWnd CDownloadsWnd CHelpWnd CHomeWnd CHostCacheWnd CLibraryWnd CMediaWnd CNeighboursWnd CPacketWnd CPluginWnd CSearchMonitorWnd CSearchPadWnd CSecurityWnd CSystemWnd CUploadsWnd List of all members.

Public Member Functions

 CChildWnd ()
virtual ~CChildWnd ()
CMainWndGetMainWnd ()
CWindowManagerGetManager ()
BOOL IsActive (BOOL bFocused=FALSE)
BOOL IsPartiallyVisible ()
BOOL TestPoint (const CPoint &ptScreen)
void TrackPopupMenu (LPCTSTR pszMenu, const CPoint &point, UINT nDefaultID=0)
BOOL LoadState (LPCTSTR pszName=NULL, BOOL bDefaultMaximise=TRUE)
BOOL SaveState (LPCTSTR pszName=NULL)
BOOL SetAlert (BOOL bAlert=TRUE)
void SizeListAndBar (CWnd *pList, CWnd *pBar)
virtual void OnSkinChange ()
virtual void OnQuerySearch (CQuerySearch *pSearch)
virtual BOOL OnQueryHits (CQueryHit *pHits)
virtual BOOL OnPush (GGUID *pClientID, CConnection *pConnection)
virtual HRESULT GetGenericView (IGenericView **ppView)
virtual BOOL OnDropFiles (CStringList &pFiles, const CPoint &ptScreen, BOOL bDrop)
virtual BOOL Create (UINT nID, BOOL bVisible=TRUE)
virtual BOOL OnCmdMsg (UINT nID, int nCode, void *pExtra, AFX_CMDHANDLERINFO *pHandlerInfo)

Public Attributes

UINT m_nResID
BOOL m_bTabMode
BOOL m_bGroupMode
CChildWndm_pGroupParent
float m_nGroupSize
BOOL m_bPanelMode
BOOL m_bAlert
CSkinWindowm_pSkin

Protected Member Functions

afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnDestroy ()
afx_msg BOOL OnEraseBkgnd (CDC *pDC)
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnSysCommand (UINT nID, LPARAM lParam)
afx_msg void OnMDIActivate (BOOL bActivate, CWnd *pActivateWnd, CWnd *pDeactivateWnd)
afx_msg void OnNcRButtonUp (UINT nHitTest, CPoint point)
afx_msg void OnNcCalcSize (BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR *lpncsp)
afx_msg UINT OnNcHitTest (CPoint point)
afx_msg void OnNcPaint ()
afx_msg BOOL OnNcActivate (BOOL bActive)
afx_msg void OnNcLButtonDown (UINT nHitTest, CPoint point)
afx_msg void OnNcLButtonUp (UINT nHitTest, CPoint point)
afx_msg void OnNcMouseMove (UINT nHitTest, CPoint point)
afx_msg void OnNcLButtonDblClk (UINT nHitTest, CPoint point)
afx_msg LONG OnSetText (WPARAM wParam, LPARAM lParam)

Static Private Attributes

static CChildWndm_pCmdMsg = NULL

Constructor & Destructor Documentation

CChildWnd::CChildWnd  ) 
 

Definition at line 66 of file WndChild.cpp.

CChildWnd::~CChildWnd  )  [virtual]
 

Definition at line 79 of file WndChild.cpp.


Member Function Documentation

BOOL CChildWnd::Create UINT  nID,
BOOL  bVisible = TRUE
[virtual]
 

Definition at line 86 of file WndChild.cpp.

References LoadString(), m_nResID, and NULL.

Referenced by CBrowseHostWnd::CBrowseHostWnd(), CPacketWnd::CPacketWnd(), and CDownloadTabBar::Create().

HRESULT CChildWnd::GetGenericView IGenericView **  ppView  )  [virtual]
 

Reimplemented in CBaseMatchWnd, CLibraryWnd, and CPluginWnd.

Definition at line 522 of file WndChild.cpp.

References NULL.

CMainWnd * CChildWnd::GetMainWnd  ) 
 

Definition at line 97 of file WndChild.cpp.

Referenced by GetManager(), IsActive(), OnCmdMsg(), OnNcRButtonUp(), and SetAlert().

CWindowManager * CChildWnd::GetManager  ) 
 

Definition at line 102 of file WndChild.cpp.

References GetMainWnd().

Referenced by CBaseMatchWnd::CheckExisting(), CTrafficWnd::FindFreeUnique(), CPluginWnd::OnCreate(), OnCreate(), OnDestroy(), OnMDIActivate(), CBaseMatchWnd::OnSearchDownload(), CBaseMatchWnd::OnSearchDownloadNow(), CNeighboursWnd::OpenPacketWnd(), CUploadsWnd::PreTranslateMessage(), and CDownloadsWnd::PreTranslateMessage().

BOOL CChildWnd::IsActive BOOL  bFocused = FALSE  ) 
 

Definition at line 107 of file WndChild.cpp.

References GetMainWnd(), m_pGroupParent, and NULL.

Referenced by CUploadsWnd::OnTimer(), CHomeWnd::OnTimer(), CDownloadsWnd::OnTimer(), CChatWnd::OnTimer(), and CHostCacheWnd::PreTranslateMessage().

BOOL CChildWnd::IsPartiallyVisible  ) 
 

Definition at line 122 of file WndChild.cpp.

References TestPoint().

Referenced by CSecurityWnd::OnTimer(), CSearchWnd::OnTimer(), CNeighboursWnd::OnTimer(), CLibraryWnd::OnTimer(), CHostCacheWnd::OnTimer(), and CDiscoveryWnd::OnTimer().

BOOL CChildWnd::LoadState LPCTSTR  pszName = NULL,
BOOL  bDefaultMaximise = TRUE
 

Definition at line 166 of file WndChild.cpp.

References CSettings::LoadWindow(), m_bPanelMode, m_bTabMode, m_nGroupSize, NULL, OnSkinChange(), Settings, and theApp.

Referenced by CUploadsWnd::OnCreate(), CSystemWnd::OnCreate(), CSecurityWnd::OnCreate(), CSearchPadWnd::OnCreate(), CSearchMonitorWnd::OnCreate(), CSearchWnd::OnCreate(), CPacketWnd::OnCreate(), CNeighboursWnd::OnCreate(), CMediaWnd::OnCreate(), CLibraryWnd::OnCreate(), CHostCacheWnd::OnCreate(), CHitMonitorWnd::OnCreate(), CHelpWnd::OnCreate(), CDownloadsWnd::OnCreate(), CDiscoveryWnd::OnCreate(), CChatWnd::OnCreate(), and CBrowseHostWnd::OnCreate().

BOOL CChildWnd::OnCmdMsg UINT  nID,
int  nCode,
void *  pExtra,
AFX_CMDHANDLERINFO *  pHandlerInfo
[virtual]
 

Reimplemented in CBaseMatchWnd, CBrowseHostWnd, CChatWnd, CDownloadsWnd, CHelpWnd, CLibraryWnd, CMediaWnd, CNeighboursWnd, and CUploadsWnd.

Definition at line 268 of file WndChild.cpp.

References GetMainWnd(), m_pCmdMsg, and NULL.

Referenced by CUploadsWnd::OnCmdMsg(), CNeighboursWnd::OnCmdMsg(), CMediaWnd::OnCmdMsg(), CLibraryWnd::OnCmdMsg(), CHelpWnd::OnCmdMsg(), CDownloadsWnd::OnCmdMsg(), CChatWnd::OnCmdMsg(), and CBaseMatchWnd::OnCmdMsg().

int CChildWnd::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Reimplemented in CBaseMatchWnd, CBrowseHostWnd, CChatWnd, CDiscoveryWnd, CDownloadsWnd, CHelpWnd, CHitMonitorWnd, CHomeWnd, CHostCacheWnd, CLibraryWnd, CMediaWnd, CNeighboursWnd, CPacketWnd, CPanelWnd, CPluginWnd, CSearchWnd, CSearchMonitorWnd, CSearchPadWnd, CSecurityWnd, CSystemWnd, CTrafficWnd, and CUploadsWnd.

Definition at line 248 of file WndChild.cpp.

References GetManager(), m_bAlert, and OnSkinChange().

Referenced by CTrafficWnd::OnCreate(), CPanelWnd::OnCreate(), and CChatWnd::OnCreate().

void CChildWnd::OnDestroy  )  [protected]
 

Reimplemented in CBaseMatchWnd, CBrowseHostWnd, CChatWnd, CDiscoveryWnd, CDownloadsWnd, CHelpWnd, CHitMonitorWnd, CHostCacheWnd, CLibraryWnd, CMediaWnd, CNeighboursWnd, CPacketWnd, CSearchWnd, CSearchMonitorWnd, CSearchPadWnd, CSecurityWnd, CSystemWnd, CTrafficWnd, and CUploadsWnd.

Definition at line 261 of file WndChild.cpp.

References GetManager().

Referenced by CUploadsWnd::OnDestroy(), CTrafficWnd::OnDestroy(), CSystemWnd::OnDestroy(), CSecurityWnd::OnDestroy(), CSearchPadWnd::OnDestroy(), CSearchMonitorWnd::OnDestroy(), CPacketWnd::OnDestroy(), CNeighboursWnd::OnDestroy(), CMediaWnd::OnDestroy(), CLibraryWnd::OnDestroy(), CHostCacheWnd::OnDestroy(), CHelpWnd::OnDestroy(), CDownloadsWnd::OnDestroy(), CDiscoveryWnd::OnDestroy(), CChatWnd::OnDestroy(), and CBaseMatchWnd::OnDestroy().

BOOL CChildWnd::OnDropFiles CStringList &  pFiles,
const CPoint &  ptScreen,
BOOL  bDrop
[virtual]
 

Reimplemented in CMediaWnd.

Definition at line 528 of file WndChild.cpp.

BOOL CChildWnd::OnEraseBkgnd CDC *  pDC  )  [protected]
 

Definition at line 283 of file WndChild.cpp.

void CChildWnd::OnMDIActivate BOOL  bActivate,
CWnd *  pActivateWnd,
CWnd *  pDeactivateWnd
[protected]
 

Reimplemented in CBaseMatchWnd, CDownloadsWnd, CHomeWnd, CLibraryWnd, CSearchWnd, CSearchPadWnd, and CUploadsWnd.

Definition at line 360 of file WndChild.cpp.

References GetManager(), m_bAlert, m_bGroupMode, and SetAlert().

Referenced by CUploadsWnd::OnMDIActivate(), CSearchPadWnd::OnMDIActivate(), CLibraryWnd::OnMDIActivate(), CHomeWnd::OnMDIActivate(), CDownloadsWnd::OnMDIActivate(), and CBaseMatchWnd::OnMDIActivate().

BOOL CChildWnd::OnNcActivate BOOL  bActive  )  [protected]
 

Reimplemented in CMediaWnd, and CPanelWnd.

Definition at line 413 of file WndChild.cpp.

References m_pSkin, NULL, and CSkinWindow::OnNcActivate().

Referenced by CPanelWnd::OnNcActivate().

void CChildWnd::OnNcCalcSize BOOL  bCalcValidRects,
NCCALCSIZE_PARAMS FAR *  lpncsp
[protected]
 

Reimplemented in CPanelWnd.

Definition at line 389 of file WndChild.cpp.

References m_pSkin, and CSkinWindow::OnNcCalcSize().

Referenced by CPanelWnd::OnNcCalcSize().

UINT CChildWnd::OnNcHitTest CPoint  point  )  [protected]
 

Reimplemented in CPanelWnd.

Definition at line 397 of file WndChild.cpp.

References m_bPanelMode, m_pSkin, and CSkinWindow::OnNcHitTest().

Referenced by CPanelWnd::OnNcHitTest().

void CChildWnd::OnNcLButtonDblClk UINT  nHitTest,
CPoint  point
[protected]
 

Definition at line 450 of file WndChild.cpp.

References m_pSkin, and CSkinWindow::OnNcLButtonDblClk().

void CChildWnd::OnNcLButtonDown UINT  nHitTest,
CPoint  point
[protected]
 

Reimplemented in CPanelWnd.

Definition at line 438 of file WndChild.cpp.

References m_pSkin, and CSkinWindow::OnNcLButtonDown().

Referenced by CPanelWnd::OnNcLButtonDown().

void CChildWnd::OnNcLButtonUp UINT  nHitTest,
CPoint  point
[protected]
 

Definition at line 444 of file WndChild.cpp.

References m_pSkin, and CSkinWindow::OnNcLButtonUp().

void CChildWnd::OnNcMouseMove UINT  nHitTest,
CPoint  point
[protected]
 

Reimplemented in CHostCacheWnd.

Definition at line 432 of file WndChild.cpp.

References m_pSkin, and CSkinWindow::OnNcMouseMove().

void CChildWnd::OnNcPaint  )  [protected]
 

Reimplemented in CPanelWnd.

Definition at line 405 of file WndChild.cpp.

References m_pSkin, and CSkinWindow::OnNcPaint().

Referenced by CPanelWnd::OnNcPaint().

void CChildWnd::OnNcRButtonUp UINT  nHitTest,
CPoint  point
[protected]
 

Definition at line 374 of file WndChild.cpp.

References CSettings::General, GetMainWnd(), GUI_WINDOWED, CSettings::sGeneral::GUIMode, and Settings.

BOOL CChildWnd::OnPush GGUID pClientID,
CConnection pConnection
[virtual]
 

Reimplemented in CBrowseHostWnd.

Definition at line 517 of file WndChild.cpp.

Referenced by CHandshake::OnPush().

BOOL CChildWnd::OnQueryHits CQueryHit pHits  )  [virtual]
 

Reimplemented in CHitMonitorWnd, and CSearchWnd.

Definition at line 512 of file WndChild.cpp.

Referenced by CNetwork::OnQueryHits().

void CChildWnd::OnQuerySearch CQuerySearch pSearch  )  [virtual]
 

Reimplemented in CSearchMonitorWnd.

Definition at line 508 of file WndChild.cpp.

Referenced by CNetwork::OnQuerySearch().

LONG CChildWnd::OnSetText WPARAM  wParam,
LPARAM  lParam
[protected]
 

Reimplemented in CPanelWnd.

Definition at line 456 of file WndChild.cpp.

References m_pSkin, NULL, and CSkinWindow::OnSetText().

void CChildWnd::OnSize UINT  nType,
int  cx,
int  cy
[protected]
 

Reimplemented in CBaseMatchWnd, CBrowseHostWnd, CChatWnd, CDiscoveryWnd, CDownloadsWnd, CHelpWnd, CHomeWnd, CHostCacheWnd, CLibraryWnd, CMediaWnd, CNeighboursWnd, CPacketWnd, CPanelWnd, CPluginWnd, CSearchWnd, CSearchMonitorWnd, CSearchPadWnd, CSecurityWnd, CSystemWnd, CTrafficWnd, and CUploadsWnd.

Definition at line 288 of file WndChild.cpp.

References m_pSkin, and CSkinWindow::OnSize().

Referenced by CTrafficWnd::OnSize(), CPanelWnd::OnSize(), and CChatWnd::OnSize().

void CChildWnd::OnSkinChange  )  [virtual]
 

Reimplemented in CBrowseHostWnd, CChatWnd, CDiscoveryWnd, CDownloadsWnd, CHelpWnd, CHitMonitorWnd, CHomeWnd, CHostCacheWnd, CLibraryWnd, CMediaWnd, CNeighboursWnd, CPacketWnd, CPluginWnd, CSearchWnd, CSearchMonitorWnd, CSearchPadWnd, CSecurityWnd, CSystemWnd, and CUploadsWnd.

Definition at line 476 of file WndChild.cpp.

References CoolInterface, CreateMirroredIcon(), CCoolInterface::ExtractIcon(), CSkin::GetWindowSkin(), LoadString(), m_bAlert, CShareazaApp::m_bRTL, m_nResID, m_pSkin, NULL, CSkinWindow::OnSize(), Skin, and theApp.

Referenced by LoadState(), OnCreate(), CUploadsWnd::OnSkinChange(), CSystemWnd::OnSkinChange(), CSecurityWnd::OnSkinChange(), CSearchPadWnd::OnSkinChange(), CSearchMonitorWnd::OnSkinChange(), CSearchWnd::OnSkinChange(), CPacketWnd::OnSkinChange(), CNeighboursWnd::OnSkinChange(), CMediaWnd::OnSkinChange(), CLibraryWnd::OnSkinChange(), CHostCacheWnd::OnSkinChange(), CHomeWnd::OnSkinChange(), CHitMonitorWnd::OnSkinChange(), CHelpWnd::OnSkinChange(), CDownloadsWnd::OnSkinChange(), CDiscoveryWnd::OnSkinChange(), CChatWnd::OnSkinChange(), CBrowseHostWnd::OnSkinChange(), and CWindowManager::PostSkinChange().

void CChildWnd::OnSysCommand UINT  nID,
LPARAM  lParam
[protected]
 

Reimplemented in CMediaWnd, and CSearchWnd.

Definition at line 317 of file WndChild.cpp.

References m_bPanelMode, and m_bTabMode.

Referenced by CSearchWnd::OnSysCommand(), and CMediaWnd::OnSysCommand().

BOOL CChildWnd::SaveState LPCTSTR  pszName = NULL  ) 
 

Definition at line 210 of file WndChild.cpp.

References m_bPanelMode, m_bTabMode, m_nGroupSize, m_pGroupParent, NULL, CSettings::SaveWindow(), Settings, and theApp.

Referenced by CUploadsWnd::OnDestroy(), CSystemWnd::OnDestroy(), CSecurityWnd::OnDestroy(), CSearchPadWnd::OnDestroy(), CSearchMonitorWnd::OnDestroy(), CSearchWnd::OnDestroy(), CPacketWnd::OnDestroy(), CNeighboursWnd::OnDestroy(), CMediaWnd::OnDestroy(), CLibraryWnd::OnDestroy(), CHostCacheWnd::OnDestroy(), CHitMonitorWnd::OnDestroy(), CHelpWnd::OnDestroy(), CDownloadsWnd::OnDestroy(), CDiscoveryWnd::OnDestroy(), CChatWnd::OnDestroy(), and CBrowseHostWnd::OnDestroy().

BOOL CChildWnd::SetAlert BOOL  bAlert = TRUE  ) 
 

Definition at line 230 of file WndChild.cpp.

References GetMainWnd(), m_bAlert, and CMainWnd::OnUpdateFrameTitle().

Referenced by CChatWnd::OnCreate(), OnMDIActivate(), CBaseMatchWnd::OnTimer(), CChatFrame::OnTimer(), and CSearchWnd::Serialize().

void CChildWnd::SizeListAndBar CWnd *  pList,
CWnd *  pBar
 

Definition at line 303 of file WndChild.cpp.

References NULL.

Referenced by CUploadsWnd::OnSize(), CNeighboursWnd::OnSize(), CHostCacheWnd::OnSize(), and CBaseMatchWnd::OnSize().

BOOL CChildWnd::TestPoint const CPoint &  ptScreen  ) 
 

Definition at line 137 of file WndChild.cpp.

References NULL.

Referenced by IsPartiallyVisible().

void CChildWnd::TrackPopupMenu LPCTSTR  pszMenu,
const CPoint &  point,
UINT  nDefaultID = 0
 

Definition at line 161 of file WndChild.cpp.

References Skin, and CSkin::TrackPopupMenu().

Referenced by CUploadsWnd::OnContextMenu(), CTrafficWnd::OnContextMenu(), CSystemWnd::OnContextMenu(), CSecurityWnd::OnContextMenu(), CSearchMonitorWnd::OnContextMenu(), CSearchWnd::OnContextMenu(), CNeighboursWnd::OnContextMenu(), CHostCacheWnd::OnContextMenu(), CHomeWnd::OnContextMenu(), CHitMonitorWnd::OnContextMenu(), CDownloadsWnd::OnContextMenu(), CDiscoveryWnd::OnContextMenu(), and CBrowseHostWnd::OnContextMenu().


Member Data Documentation

BOOL CChildWnd::m_bAlert
 

Definition at line 56 of file WndChild.h.

Referenced by CPluginWnd::OnCreate(), OnCreate(), OnMDIActivate(), CPluginWnd::OnSkinChange(), OnSkinChange(), CWndTabBar::OnUpdateCmdUI(), and SetAlert().

BOOL CChildWnd::m_bGroupMode
 

Definition at line 52 of file WndChild.h.

Referenced by CWindowManager::ActivateGrouped(), CWindowManager::AutoResize(), OnMDIActivate(), CPanelWnd::OnNcLButtonDown(), CPanelWnd::OnSetCursor(), and CWndTabBar::OnUpdateCmdUI().

BOOL CChildWnd::m_bPanelMode
 

Definition at line 55 of file WndChild.h.

Referenced by CWindowManager::AutoResize(), CWindowManager::Cascade(), CSkin::GetWindowSkin(), LoadState(), CWndTabBar::OnLButtonDown(), CBaseMatchWnd::OnMDIActivate(), CPanelWnd::OnNcActivate(), CPanelWnd::OnNcCalcSize(), CPanelWnd::OnNcHitTest(), OnNcHitTest(), CPanelWnd::OnNcPaint(), CWndTabBar::OnRButtonUp(), CPanelWnd::OnSetText(), CPanelWnd::OnSize(), CSearchWnd::OnSysCommand(), OnSysCommand(), CWndTabBar::OnUpdateCmdUI(), and SaveState().

BOOL CChildWnd::m_bTabMode
 

Definition at line 51 of file WndChild.h.

Referenced by LoadState(), OnSysCommand(), CWndTabBar::OnUpdateCmdUI(), CWindowManager::Open(), SaveState(), and CCoolMenuBarCtrl::UpdateWindowMenu().

float CChildWnd::m_nGroupSize
 

Definition at line 54 of file WndChild.h.

Referenced by CWindowManager::AutoResize(), LoadState(), CPanelWnd::PanelSizeLoop(), and SaveState().

UINT CChildWnd::m_nResID
 

Definition at line 50 of file WndChild.h.

Referenced by Create(), CPluginWnd::OnSkinChange(), and OnSkinChange().

CChildWnd * CChildWnd::m_pCmdMsg = NULL [static, private]
 

Definition at line 60 of file WndChild.cpp.

Referenced by OnCmdMsg().

CChildWnd* CChildWnd::m_pGroupParent
 

Definition at line 53 of file WndChild.h.

Referenced by CWindowManager::ActivateGrouped(), CWindowManager::AutoResize(), CWindowManager::CreateTabbedWindows(), IsActive(), CPanelWnd::OnNcLButtonDown(), CPanelWnd::OnSetCursor(), CWndTabBar::OnUpdateCmdUI(), CMainWnd::OnUpdateTabNetwork(), CMainWnd::OnUpdateTabTransfers(), CPanelWnd::PanelSizeLoop(), and SaveState().

CSkinWindow* CChildWnd::m_pSkin
 

Definition at line 57 of file WndChild.h.

Referenced by CPanelWnd::OnNcActivate(), OnNcActivate(), CPanelWnd::OnNcCalcSize(), OnNcCalcSize(), CPanelWnd::OnNcHitTest(), OnNcHitTest(), OnNcLButtonDblClk(), CPanelWnd::OnNcLButtonDown(), OnNcLButtonDown(), OnNcLButtonUp(), OnNcMouseMove(), CPanelWnd::OnNcPaint(), OnNcPaint(), CPanelWnd::OnSetCursor(), CPanelWnd::OnSetText(), OnSetText(), CPanelWnd::OnSize(), OnSize(), CPluginWnd::OnSkinChange(), and OnSkinChange().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:04 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2