Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / utils / NamingViewer / NamingTreeCtrl.h
blob21885ca90ae25c431f6aeb026de3da1ccf9a6bae
1 #if !defined(AFX_NAMINGTREECTRL_H__1F34ADC2_B0D8_11D3_BF27_00C0F03C565A__INCLUDED_)
2 #define AFX_NAMINGTREECTRL_H__1F34ADC2_B0D8_11D3_BF27_00C0F03C565A__INCLUDED_
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // NamingTreeCtrl.h : header file
8 //
9 #include "orbsvcs/CosNamingC.h"
10 class CNamingObject;
12 /////////////////////////////////////////////////////////////////////////////
13 // CNamingTreeCtrl window
15 class CNamingTreeCtrl : public CTreeCtrl
17 // Construction
18 public:
19 CNamingTreeCtrl();
21 // Attributes
22 public:
23 void SetpORB(CORBA::ORB_ptr pORB);
24 // Operations
25 public:
26 CNamingObject* GetTreeObject(HTREEITEM hItem = 0);
27 void ClearChildren(HTREEITEM hItem = 0);
28 void ListContext(HTREEITEM hItem);
29 void Resolve(CosNaming::NamingContext_ptr pRootContext);
30 // Overrides
31 // ClassWizard generated virtual function overrides
32 //{{AFX_VIRTUAL(CNamingTreeCtrl)
33 protected:
34 virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
35 //}}AFX_VIRTUAL
37 // Implementation
38 public:
39 virtual ~CNamingTreeCtrl();
41 // Generated message map functions
42 protected:
43 //{{AFX_MSG(CNamingTreeCtrl)
44 afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
45 afx_msg void OnContextPopupViewreference();
46 afx_msg void OnItemexpanding(NMHDR* pNMHDR, LRESULT* pResult);
47 afx_msg void OnContextPopupRefresh();
48 afx_msg void OnContextPopupUnbind();
49 afx_msg void OnContextPopupDestroy();
50 afx_msg void OnContextPopupBindContext();
51 afx_msg void OnContextPopupBindobject();
52 afx_msg void OnDestroy();
53 afx_msg void OnContextpopupBindnewcontext();
54 afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult);
55 afx_msg void OnObjectpopupUnbind();
56 afx_msg void OnObjectpopupViewrefrence();
57 //}}AFX_MSG
59 DECLARE_MESSAGE_MAP()
61 void Refresh(HTREEITEM hItem);
62 void OnCopy();
63 void ListBindingList(HTREEITEM hItem, CosNaming::NamingContext_ptr pContext, CosNaming::BindingList_var& bl);
64 CMenu m_ContextPopup;
65 CMenu m_ObjectPopup;
66 CORBA::ORB_ptr m_pORB;
69 /////////////////////////////////////////////////////////////////////////////
71 //{{AFX_INSERT_LOCATION}}
72 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
74 #endif // !defined(AFX_NAMINGTREECTRL_H__1F34ADC2_B0D8_11D3_BF27_00C0F03C565A__INCLUDED_)