CBModelessFrame.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(CBMODELESSFRAME_H)
11 #define CBMODELESSFRAME_H
12 
13 // Bentley defines & includes
14 //
15 #if !defined (winNT)
16 #define winNT
17 #endif
18 
19 #define NO_BOOLEAN_TYPE
20 
21 #include <Mstn\MdlApi\mdl.h>
23 
24 class CBModelessDialog;
25 
27 // CBModelessFrame frame
28 //
29 // CBModelessFrame is the class used as a frame for a MicroStation modeless dialog.
30 //
31 
32 class CBModelessFrame : public CWnd
33 {
34 private:
35  MSWindowP m_pWindow;
36  CBModelessDialog *m_pChildBox;
37 
38 
39 // Attributes
40 public:
42  (
43  UINT nID,
44  const _TCHAR *title,
45  bool bResizeable,
46  int iDefaultWidth,
47  int iDefaultHeight,
48  CBModelessDialog *pChildBox
49  );
50 
51  virtual ~CBModelessFrame();
52 
53  void OnEscapeKey(LPMSG);
54 
55  void OnFunctionKey(LPMSG);
56 
57  MSWindowP GetMSWindow()
58  {
59  return m_pWindow;
60  }
61 
62 // Operations
63 public:
64 
65 // Overrides
66  // ClassWizard generated virtual function overrides
67  //{{AFX_VIRTUAL(CBModelessFrame)
68  //}}AFX_VIRTUAL
69 
70 // Implementation
71 protected:
72 
73  // Generated message map functions
74  //{{AFX_MSG(CBModelessFrame)
75  afx_msg void OnSize(UINT nType, int cx, int cy);
76  afx_msg void OnSizing(UINT fwSide, LPRECT pRect);
77  afx_msg void OnSetFocus(CWnd* pOldWnd);
78  afx_msg int OnMouseActivate( CWnd* pDesktopWnd, UINT nHitTest, UINT message );
79  afx_msg void OnDestroy();
80  afx_msg void OnMouseMove( UINT nFlags, CPoint point );
81  afx_msg void OnSysCommand(UINT nID, LPARAM);
82  afx_msg void OnLButtonDown( UINT nFlags, CPoint point );
83  afx_msg void OnLButtonUp( UINT nFlags, CPoint point );
84  afx_msg void OnRButtonDown( UINT nFlags, CPoint point );
85  afx_msg void OnRButtonUp( UINT nFlags, CPoint point );
86  afx_msg void OnMButtonDown( UINT nFlags, CPoint point );
87  afx_msg void OnMButtonUp( UINT nFlags, CPoint point );
88  //}}AFX_MSG
89  DECLARE_MESSAGE_MAP()
90 };
91 
93 
94 //{{AFX_INSERT_LOCATION}}
95 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
96 
97 #endif // !defined(CBMODELESSFRAME_H)
virtual ~CBModelessFrame()
afx_msg void OnMButtonDown(UINT nFlags, CPoint point)
LONG_PTR LPARAM
Definition: msnativewindow.h:40
afx_msg void OnLButtonUp(UINT nFlags, CPoint point)
afx_msg void OnDestroy()
afx_msg void OnSizing(UINT fwSide, LPRECT pRect)
CBModelessFrame(UINT nID, const _TCHAR *title, bool bResizeable, int iDefaultWidth, int iDefaultHeight, CBModelessDialog *pChildBox)
afx_msg void OnSysCommand(UINT nID, LPARAM)
void OnEscapeKey(LPMSG)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point)
afx_msg int OnMouseActivate(CWnd *pDesktopWnd, UINT nHitTest, UINT message)
MSWindowP GetMSWindow()
Definition: CBModelessFrame.h:57
void OnFunctionKey(LPMSG)
Definition: CBModelessDialog.h:44
afx_msg void OnMButtonUp(UINT nFlags, CPoint point)
afx_msg void OnRButtonDown(UINT nFlags, CPoint point)
afx_msg void OnSetFocus(CWnd *pOldWnd)
afx_msg void OnMouseMove(UINT nFlags, CPoint point)
Definition: CBModelessFrame.h:32
afx_msg void OnRButtonUp(UINT nFlags, CPoint point)
afx_msg void OnSize(UINT nType, int cx, int cy)

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