CBHostedDialog.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(CBHOSTEDDIALOG_H)
11 #define CBHOSTEDDIALOG_H
12 
13 // CBHostedDialog.h : header file
14 //
15 
16 #include "CBModelessDialog.h"
17 #include <Mstn\MdlApi\mdl.h>
18 
19 // Disable warning messages 4266 - no override available for virtual member function from base 'type'; function is hidden
20 #pragma warning( disable : 4266 )
21 
23 // CBHostedDialog dialog
24 //
25 // CBHostedDialog is the base class for any MFC modeless dialog to be combined with a MicroStation MDL dialog.
26 //
27 
29 {
30 protected:
31 
32 // Construction
33 public:
35  (
36  UINT nID,
37  MSWindowP pParent
38  );
39 
40  virtual ~CBHostedDialog();
41 
42  virtual StatusInt Create();
43 
44  // Called by the secondary dialog hook
45  virtual BOOL OnDialogUpdate
46  (
47  DialogMessage *dmP
48  );
49 
50  virtual BOOL GetAttachPoint
51  (
52  Point2d *pAttachPoint /* <= offset for attaching the native content */
53  );
54 
55 // Dialog Data
56  //{{AFX_DATA(CBHostedDialog)
57  //}}AFX_DATA
58 
59 
60 // Overrides
61  // ClassWizard generated virtual function overrides
62  //{{AFX_VIRTUAL(CBHostedDialog)
63  protected:
64  //}}AFX_VIRTUAL
65 
66 // Implementation
67 protected:
68 
69  // Generated message map functions
70  //{{AFX_MSG(CBHostedDialog)
71  virtual BOOL OnInitDialog();
72  afx_msg void OnDestroy();
73  //}}AFX_MSG
74  DECLARE_MESSAGE_MAP()
75 };
76 
77 //{{AFX_INSERT_LOCATION}}
78 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
79 
80 #endif // !defined(CBHOSTEDDIALOG_H)
Definition: CBHostedDialog.h:28
afx_msg void OnDestroy()
virtual StatusInt Create()
Definition: CBModelessDialog.h:44
virtual BOOL GetAttachPoint(Point2d *pAttachPoint)
virtual ~CBHostedDialog()
virtual BOOL OnInitDialog()
int StatusInt
Definition: Bentley.h:222
Dialog Message Structure.
Definition: dlogitem.h:884
virtual BOOL OnDialogUpdate(DialogMessage *dmP)
CBHostedDialog(UINT nID, MSWindowP pParent)

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