CBDockableDialog.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 #define CBDOCKABLEDIALOG_H
11 
12 // CBDockableDialog.h : header file
13 //
14 
15 #include "CBModelessDialog.h"
16 #include <Mstn\MdlApi\mdl.h>
17 
18 // Disable warning messages 4266 - no override available for virtual member function from base 'type'; function is hidden
19 #pragma warning( disable : 4266 )
20 
22 // CBDockableDialog dialog
23 //
24 // CBDockableDialog is the base class for any dockable dialog to be used in MicroStation.
25 //
26 
28 {
29 protected:
31 
32 // Construction
33 public:
35  (
36  UINT nID,
37  TCHAR *pTitle
38  );
39 
41  (
42  );
43 
44  virtual ~CBDockableDialog();
45 
46  virtual StatusInt Create();
47 
48  // Called by the secondary dialog hook
49  virtual BOOL GetDockedExtent
50  (
51  /* Return true if handled */
52  int iDockPosition, /* => DOCK_TOP, _LEFT, _BOTTOM, _RIGHT */
53  int *pExtentFlag, /* <= DOCKEXTENT_DONTCARE, _FULLWIDTHORHEIGHT, or _SPECIFIED */
54  Point2d *pDockExtent /* <= extent when in docked state */
55  );
56 
57  virtual BOOL OnDialogUpdate
58  (
59  DialogMessage *dmP
60  );
61 
62 // Dialog Data
63  //{{AFX_DATA(CBDockableDialog)
64  //}}AFX_DATA
65 
66 
67 // Overrides
68  // ClassWizard generated virtual function overrides
69  //{{AFX_VIRTUAL(CBDockableDialog)
70  protected:
71  //}}AFX_VIRTUAL
72 
73 // Implementation
74 protected:
75 
76  // Generated message map functions
77  //{{AFX_MSG(CBDockableDialog)
78  virtual BOOL OnInitDialog();
79  afx_msg void OnDestroy();
80  //}}AFX_MSG
81  DECLARE_MESSAGE_MAP()
82 };
83 
84 //{{AFX_INSERT_LOCATION}}
85 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
86 
bool m_bResizeable
Definition: CBDockableDialog.h:30
virtual BOOL OnDialogUpdate(DialogMessage *dmP)
Definition: CBDockableDialog.h:27
afx_msg void OnDestroy()
Definition: CBModelessDialog.h:44
virtual BOOL OnInitDialog()
virtual StatusInt Create()
int StatusInt
Definition: Bentley.h:222
Dialog Message Structure.
Definition: dlogitem.h:884
virtual BOOL GetDockedExtent(int iDockPosition, int *pExtentFlag, Point2d *pDockExtent)
virtual ~CBDockableDialog()

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