CBModalDialog.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(CBMODALDIALOG_H)
11 #define CBMODALDIALOG_H
12 
13 // CBModalDialog.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 // CBModalDialog dialog
28 //
29 // CBModalDialog is the base class for any MicroStation native modal dialog.
30 //
31 
32 class CBModalDialog : public CDialog
33 {
34 protected:
35 
36  UINT m_nID;
37  MSWindowP m_pWindow;
38 
39 // Construction
40 public:
41 
42  HHOOK m_hHook;
43 
45  (
46  UINT nID,
47  int screen = 0
48  );
49 
50  virtual ~CBModalDialog();
51 
52  void SetHelpInfo (UINT helpInfo);
53 
54  void SetMsgProcHook (bool bSet);
55  inline HHOOK GetMsgProcHook () { return m_hHook; }
56 
57  void OnFunctionKey(LPMSG);
58 
59 // Dialog Data
60  //{{AFX_DATA(CBModalDialog)
61  // NOTE: the ClassWizard will add data members here
62  //}}AFX_DATA
63 
64 
65 // Overrides
66  // ClassWizard generated virtual function overrides
67  //{{AFX_VIRTUAL(CBModalDialog)
68  protected:
69  //}}AFX_VIRTUAL
70 
71 // Implementation
72 protected:
73 
74  // Generated message map functions
75  //{{AFX_MSG(CBModalDialog)
76  virtual BOOL OnInitDialog();
77  afx_msg void OnDestroy();
78  //}}AFX_MSG
79  DECLARE_MESSAGE_MAP()
80 };
81 
82 //{{AFX_INSERT_LOCATION}}
83 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
84 
85 #endif // !defined(CBMODALDIALOG_H)
UINT m_nID
Definition: CBModalDialog.h:36
HHOOK GetMsgProcHook()
Definition: CBModalDialog.h:55
Definition: CBModalDialog.h:32
void OnFunctionKey(LPMSG)
MSWindowP m_pWindow
Definition: CBModalDialog.h:37
virtual BOOL OnInitDialog()
void SetHelpInfo(UINT helpInfo)
void SetMsgProcHook(bool bSet)
virtual ~CBModalDialog()
afx_msg void OnDestroy()
HHOOK m_hHook
Definition: CBModalDialog.h:42
CBModalDialog(UINT nID, int screen=0)

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