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