32 #ifndef MDIWindow_INCLUDE_ONCE 33 #define MDIWindow_INCLUDE_ONCE 56 HWND
hwnd()
const {
return m_hWnd; }
65 afx_msg
void OnPaint();
67 afx_msg
void OnDestroy();
69 afx_msg
void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
70 afx_msg
void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
71 afx_msg
void OnLButtonDblClk(UINT nFlags, CPoint point);
72 afx_msg
void OnLButtonDown(UINT nFlags, CPoint point);
73 afx_msg
void OnLButtonUp(UINT nFlags, CPoint point);
74 afx_msg
void OnMButtonDblClk(UINT nFlags, CPoint point);
75 afx_msg
void OnMButtonDown(UINT nFlags, CPoint point);
76 afx_msg
void OnMButtonUp(UINT nFlags, CPoint point);
77 afx_msg
void OnMouseMove(UINT nFlags, CPoint point);
78 afx_msg BOOL OnMouseWheel(UINT nFlags,
short zDelta, CPoint pt);
79 afx_msg
void OnRButtonDblClk(UINT nFlags, CPoint point);
80 afx_msg
void OnRButtonDown(UINT nFlags, CPoint point);
81 afx_msg
void OnRButtonUp(UINT nFlags, CPoint point);
82 afx_msg
void OnSize(UINT nType,
int cx,
int cy);
84 afx_msg
void OnDropFiles(HDROP hDropInfo);
88 BOOL PreCreateWindow(CREATESTRUCT&cs);
89 void destroyGLContext();
90 void countAndCapture();
91 void countAndRelease();
void setAutomaticDelete(bool autodel_on)
If set to true the Object is deleted when its reference count reaches 0.
void OnDraw(CDC *)
Don't forget to reimplement this!
The Win32Context class implements an OpenGLContext using the Win32 API.
The MFC bindings namespace.
The MDIWindow class is an MFC CView with the functionalities of a Win32Context (experimental).
HWND hwnd() const
Returns the Win32 window handle.
static CString mClassName