COpenGL::OnSize![]()
virtual void OnSize( UINT nType, int cx, int cy );
Parameters
| nType |
Specifies the type of resizing requested. This parameter can be one of the following values: SIZE_MAXIMIZED Window has been maximized. SIZE_MINIMIZED Window has been minimized. SIZE_RESTORED Window has been resized, but neither SIZE_MINIMIZED nor SIZE_MAXIMIZED applies. SIZE_MAXHIDE Message is sent to all pop-up windows when some other window is maximized. SIZE_MAXSHOWMessage is sent to all pop-up windows when some other window has been restored to its former size. |
| cx | Specifies the new width of the client area. |
| cy | Specifies the new height of the client area. |
Remarks
The application should pass WM_SIZE events information from the object window to the COpenGL object by using the OnSize method function. The OnSize method function sets rendering context transformations according to cx, cy parameters and the current window resize mode.
Example
class COglSampleView : public CView
{
// specify operations or attributes as desired …
public:
COpenGL m_OpenGL;
// specify operations or attributes as desired …
};
void COglSampleView::OnSize(UINT nType, int cx, int cy)
{
CView::OnSize(nType, cx, cy);
// COpenGL object resize window event processing
m_OpenGL.OnSize( nType, cx, cy );
}
See Also
PreCreateWindow, OnCreate, OnDestroy, SetWindowResizingMode, GetWindowResizingMode
![]()
| © 2001 Solid Graphics, All rights reserved. |
| To view this site, we require use of either Netscape Navigator 4.0 or higher or Internet Explorer 4.0 or higher. |