-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPropDlg.hpp
41 lines (34 loc) · 1.22 KB
/
PropDlg.hpp
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
#pragma once
#include <afxtempl.h>
#include "resource.h"
#include "DlgResizeHelper.h"
void GetObjectProperties(CComPtr<IDispatchEx> object, CArray<DISPID> &raDispIDs,
CArray<CStringW> &rasNames, CArray<CStringW> &rasValues);
// A dialog box for displaying an object's properties and their values.
//
class CPropDlg : public CDialog {
private:
enum { IDD = IDD_PROPERTIES };
CListCtrl m_propList;
CComPtr<IDispatchEx> m_object;
CStringW m_titleDesc;
DlgResizeHelper m_resizeHelper;
CStringW getPropName(int idx);
void updateButtons();
public:
CPropDlg(CStringW titleDesc, CWnd* pParent = NULL);
void setObject(CComPtr<IDispatchEx> obj);
DECLARE_MESSAGE_MAP()
virtual void DoDataExchange(CDataExchange* pDX);
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg UINT OnNcHitTest(CPoint point);
afx_msg void OnClose();
afx_msg void OnDestroy();
afx_msg void OnOk();
afx_msg void OnLvnItemActivateProplist(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnLvnItemchangedProplist(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnBnClickedPropertiesButton();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
};