1 #if !defined(AFX_NAMINGTREECTRL_H__1F34ADC2_B0D8_11D3_BF27_00C0F03C565A__INCLUDED_)
2 #define AFX_NAMINGTREECTRL_H__1F34ADC2_B0D8_11D3_BF27_00C0F03C565A__INCLUDED_
6 #endif // _MSC_VER > 1000
7 // NamingTreeCtrl.h : header file
9 #include "orbsvcs/CosNamingC.h"
12 /////////////////////////////////////////////////////////////////////////////
13 // CNamingTreeCtrl window
15 class CNamingTreeCtrl
: public CTreeCtrl
23 void SetpORB(CORBA::ORB_ptr pORB
);
26 CNamingObject
* GetTreeObject(HTREEITEM hItem
= 0);
27 void ClearChildren(HTREEITEM hItem
= 0);
28 void ListContext(HTREEITEM hItem
);
29 void Resolve(CosNaming::NamingContext_ptr pRootContext
);
31 // ClassWizard generated virtual function overrides
32 //{{AFX_VIRTUAL(CNamingTreeCtrl)
34 virtual LRESULT
WindowProc(UINT message
, WPARAM wParam
, LPARAM lParam
);
39 virtual ~CNamingTreeCtrl();
41 // Generated message map functions
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();
61 void Refresh(HTREEITEM hItem
);
63 void ListBindingList(HTREEITEM hItem
, CosNaming::NamingContext_ptr pContext
, CosNaming::BindingList_var
& bl
);
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_)