Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
The MFCWindow class is an MFC CWnd with the functionalities of a Win32Context. More...
#include <MFCWindow.hpp>
Public Member Functions | |
MFCWindow () | |
virtual | ~MFCWindow () |
bool | initMFCWindow (CWnd *parent, MFCWindow *share_context, const vl::String &title, const vl::OpenGLContextFormat &fmt, int x=0, int y=0, int width=640, int height=480) |
Creates the window and initializes the OpenGL rendering context. | |
HWND | hwnd () const |
Returns the Win32 window handle. | |
afx_msg void | OnPaint () |
afx_msg void | OnDestroy () |
afx_msg int | OnCreate (LPCREATESTRUCT lpCreateStruct) |
afx_msg void | OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags) |
afx_msg void | OnKeyUp (UINT nChar, UINT nRepCnt, UINT nFlags) |
afx_msg void | OnLButtonDblClk (UINT nFlags, CPoint point) |
afx_msg void | OnLButtonDown (UINT nFlags, CPoint point) |
afx_msg void | OnLButtonUp (UINT nFlags, CPoint point) |
afx_msg void | OnMButtonDblClk (UINT nFlags, CPoint point) |
afx_msg void | OnMButtonDown (UINT nFlags, CPoint point) |
afx_msg void | OnMButtonUp (UINT nFlags, CPoint point) |
afx_msg void | OnMouseMove (UINT nFlags, CPoint point) |
afx_msg BOOL | OnMouseWheel (UINT nFlags, short zDelta, CPoint pt) |
afx_msg void | OnRButtonDblClk (UINT nFlags, CPoint point) |
afx_msg void | OnRButtonDown (UINT nFlags, CPoint point) |
afx_msg void | OnRButtonUp (UINT nFlags, CPoint point) |
afx_msg void | OnSize (UINT nType, int cx, int cy) |
afx_msg void | OnDropFiles (HDROP hDropInfo) |
Protected Member Functions | |
void | destroyGLContext () |
void | countAndCapture () |
void | countAndRelease () |
Protected Attributes | |
int | mMouseDownCount |
Static Protected Attributes | |
static CString | mClassName |
The MFCWindow class is an MFC CWnd with the functionalities of a Win32Context.
Definition at line 47 of file MFCWindow.hpp.
vlMFC::MFCWindow::MFCWindow | ( | ) | [inline] |
Definition at line 50 of file MFCWindow.hpp.
References vl::Object::setAutomaticDelete().
MFCWindow::~MFCWindow | ( | ) | [virtual] |
Definition at line 82 of file MFCWindow.cpp.
bool MFCWindow::initMFCWindow | ( | CWnd * | parent, |
MFCWindow * | share_context, | ||
const vl::String & | title, | ||
const vl::OpenGLContextFormat & | fmt, | ||
int | x = 0 , |
||
int | y = 0 , |
||
int | width = 640 , |
||
int | height = 480 |
||
) |
Creates the window and initializes the OpenGL rendering context.
Definition at line 94 of file MFCWindow.cpp.
References vlWin32::Win32Context::hglrc(), and NULL.
HWND vlMFC::MFCWindow::hwnd | ( | ) | const [inline, virtual] |
Returns the Win32 window handle.
Implements vlWin32::Win32Context.
Definition at line 58 of file MFCWindow.hpp.
void MFCWindow::OnPaint | ( | ) |
Definition at line 140 of file MFCWindow.cpp.
References NULL.
void MFCWindow::OnDestroy | ( | ) |
Definition at line 134 of file MFCWindow.cpp.
int MFCWindow::OnCreate | ( | LPCREATESTRUCT | lpCreateStruct ) |
Definition at line 87 of file MFCWindow.cpp.
void MFCWindow::OnKeyDown | ( | UINT | nChar, |
UINT | nRepCnt, | ||
UINT | nFlags | ||
) |
Definition at line 159 of file MFCWindow.cpp.
References vl::Key_None, and vlEGL::translateKeyEvent().
void MFCWindow::OnKeyUp | ( | UINT | nChar, |
UINT | nRepCnt, | ||
UINT | nFlags | ||
) |
Definition at line 167 of file MFCWindow.cpp.
References vl::Key_None, and vlEGL::translateKeyEvent().
void MFCWindow::OnLButtonDblClk | ( | UINT | nFlags, |
CPoint | point | ||
) |
Definition at line 192 of file MFCWindow.cpp.
References vl::LeftButton.
void MFCWindow::OnLButtonDown | ( | UINT | nFlags, |
CPoint | point | ||
) |
Definition at line 198 of file MFCWindow.cpp.
References vl::LeftButton.
void MFCWindow::OnLButtonUp | ( | UINT | nFlags, |
CPoint | point | ||
) |
Definition at line 204 of file MFCWindow.cpp.
References vl::LeftButton.
void MFCWindow::OnMButtonDblClk | ( | UINT | nFlags, |
CPoint | point | ||
) |
Definition at line 210 of file MFCWindow.cpp.
References vl::MiddleButton.
void MFCWindow::OnMButtonDown | ( | UINT | nFlags, |
CPoint | point | ||
) |
Definition at line 216 of file MFCWindow.cpp.
References vl::MiddleButton.
void MFCWindow::OnMButtonUp | ( | UINT | nFlags, |
CPoint | point | ||
) |
Definition at line 222 of file MFCWindow.cpp.
References vl::MiddleButton.
void MFCWindow::OnMouseMove | ( | UINT | nFlags, |
CPoint | point | ||
) |
Definition at line 228 of file MFCWindow.cpp.
BOOL MFCWindow::OnMouseWheel | ( | UINT | nFlags, |
short | zDelta, | ||
CPoint | pt | ||
) |
Definition at line 233 of file MFCWindow.cpp.
void MFCWindow::OnRButtonDblClk | ( | UINT | nFlags, |
CPoint | point | ||
) |
Definition at line 239 of file MFCWindow.cpp.
References vl::RightButton.
void MFCWindow::OnRButtonDown | ( | UINT | nFlags, |
CPoint | point | ||
) |
Definition at line 245 of file MFCWindow.cpp.
References vl::RightButton.
void MFCWindow::OnRButtonUp | ( | UINT | nFlags, |
CPoint | point | ||
) |
Definition at line 251 of file MFCWindow.cpp.
References vl::RightButton.
void MFCWindow::OnSize | ( | UINT | nType, |
int | cx, | ||
int | cy | ||
) |
Definition at line 272 of file MFCWindow.cpp.
void MFCWindow::OnDropFiles | ( | HDROP | hDropInfo ) |
Definition at line 257 of file MFCWindow.cpp.
void MFCWindow::destroyGLContext | ( | ) | [protected] |
Definition at line 111 of file MFCWindow.cpp.
References NULL.
void MFCWindow::countAndCapture | ( | ) | [protected] |
Definition at line 175 of file MFCWindow.cpp.
void MFCWindow::countAndRelease | ( | ) | [protected] |
Definition at line 182 of file MFCWindow.cpp.
int vlMFC::MFCWindow::mMouseDownCount [protected] |
Definition at line 92 of file MFCWindow.hpp.
CString MFCWindow::mClassName [static, protected] |
Definition at line 93 of file MFCWindow.hpp.