CBPropertySheet.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------------------+
2 |
3 | Supplied under applicable software license agreement.
4 |
5 | Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
6 |
7 +---------------------------------------------------------------------------------------*/
8 #pragma once
9 
10 #if !defined(CBPROPERTYSHEET_H)
11 #define CBPROPERTYSHEET_H
12 
13 // CBPropertySheet.h : header file
14 //
15 
16 // Bentley defines & includes
17 //
18 #if !defined (winNT)
19 #define winNT
20 #endif
21 
22 #define NO_BOOLEAN_TYPE
23 
24 #include <Mstn\MdlApi\mdl.h>
25 
27 // CBPropertySheet dialog
28 //
29 // CBPropertySheet is the base class for any MicroStation native property sheet.
30 //
31 
32 class CBPropertySheet : public CPropertySheetEx
33 {
34 protected:
35 
36  UINT m_nID;
37  MSWindowP m_pWindow;
38 
39 // Construction
40 public:
41  HHOOK m_hHook;
42 
44  (
45  UINT nIDCaption,
46  CWnd* pParentWnd = NULL,
47  int iSelectPage = 0
48  );
49 
51  (
52  UINT nIDCaption,
53  int screen = 0,
54  int iSelectPage = 0
55  );
56 
58  (
59  TCHAR* pCaption,
60  int screen = 0,
61  int iSelectPage = 0
62  );
63 
64  virtual ~CBPropertySheet();
65 
66  inline void SetID (int id) {m_nID = id;}
67 
68  void SetHelpInfo (UINT helpInfo);
69 
70  void SetMsgProcHook (bool bSet);
71  inline HHOOK GetMsgProcHook () { return m_hHook; }
72 
73  void OnFunctionKey(LPMSG);
74 
75 // Dialog Data
76  //{{AFX_DATA(CBPropertySheet)
77  // NOTE: the ClassWizard will add data members here
78  //}}AFX_DATA
79 
80 
81 // Overrides
82  // ClassWizard generated virtual function overrides
83  //{{AFX_VIRTUAL(CBPropertySheet)
84  protected:
85  //}}AFX_VIRTUAL
86 
87 // Implementation
88 protected:
89 
90  // Generated message map functions
91  //{{AFX_MSG(CBPropertySheet)
92  virtual BOOL OnInitDialog();
93  afx_msg void OnDestroy();
94  //}}AFX_MSG
95  DECLARE_MESSAGE_MAP()
96 };
97 
98 //{{AFX_INSERT_LOCATION}}
99 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
100 
101 #endif // !defined(CBPROPERTYSHEET_H)
102 
virtual BOOL OnInitDialog()
void SetMsgProcHook(bool bSet)
#define NULL
Definition: Bentley.h:157
Definition: CBPropertySheet.h:32
void OnFunctionKey(LPMSG)
CBPropertySheet(UINT nIDCaption, CWnd *pParentWnd=NULL, int iSelectPage=0)
virtual ~CBPropertySheet()
HHOOK m_hHook
Definition: CBPropertySheet.h:41
void SetID(int id)
Definition: CBPropertySheet.h:66
void SetHelpInfo(UINT helpInfo)
MSWindowP m_pWindow
Definition: CBPropertySheet.h:37
UINT m_nID
Definition: CBPropertySheet.h:36
afx_msg void OnDestroy()
HHOOK GetMsgProcHook()
Definition: CBPropertySheet.h:71

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.