//  Beta release only.
//
//  Copyright(c) Ivyware Pty Ltd 2011  (all rights reserved)
//               MELBOURNE, VICTORIA, AUSTRALIA, 3130
//
//  Provided no fee is charged (either by the distributer or user)
//  permission to use, copy, modify, and distribute this software and
//  its documentation for any purpose and without fee is hereby granted,
//  provided that the above copyright notice appear in all copies and
//  that both that copyright notice and this permission notice appear
//  in supporting documentation.
//
//  No waranty or suitablity for purpose is implied.
//
//
//  P2PexploreCtrl prototypes and definitions.
//
#pragma   once

#include "P2Pevent.h"
#include "DlgToolBar.h"
#include "P2PmsgMFC.h"

///////////////////////////////////////////////////////////////////////
//  CP2PexploreCtrl dialog
class P2PmsgMFC_EXT CP2PexploreCtrl : public CDialog
{
	  DECLARE_DYNAMIC(CP2PexploreCtrl)
    // Contructors and destructor
    public:
	      CP2PexploreCtrl(CWnd* pParent = NULL);   // standard constructor
	    virtual
       ~CP2PexploreCtrl();
      BOOL
        Create (CWnd *pParent );

    // Dialog Data
    //	enum { IDD = IDD_P2Pevent };

    // Attributes
    public:
      CDlgToolBar     m_wndToolBar;
      CTreeCtrl      *m_pP2PeventTreeCtrl;
      P2PeventSinkID  m_nP2PeventSinkID;
      DWORD           m_dwP2PeventNotn;

    // MFC Virtuals
    protected:
	    virtual void
        DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
    public:
      virtual BOOL
        OnInitDialog ( );

    // MFC message map
    protected:
	  DECLARE_MESSAGE_MAP()
      afx_msg LRESULT
        OnP2PeventNOTN ( WPARAM wParam, LPARAM lParam );
      afx_msg void
        OnKickIdle ( );
      afx_msg LRESULT
        OnIdleUpdateCmdUI ( WPARAM wParam, LPARAM lParam );
      afx_msg void
        OnP2PeventClear ( );
      afx_msg void
        OnUpdateP2PeventClear ( CCmdUI *pCmdUI );
      afx_msg void
        OnP2PeventEVERR ( );
      afx_msg void
        OnUpdateP2PeventEVERR ( CCmdUI *pCmdUI );
      afx_msg void
        OnP2PeventEVDBG ( );
      afx_msg void
        OnUpdateP2PeventEVDBG ( CCmdUI *pCmdUI );
      afx_msg void
        OnP2PeventEVTRC ( );
      afx_msg void
        OnUpdateP2PeventEVTRC ( CCmdUI *pCmdUI );
};
