CMvcAtlWndViewport Class
class CMvcAtlWndViewport: public _Base, public CEventRouterMapWrapper, public IVisualWindow
Mixes a window class with an MVC viewport and handles WM_SIZE messages by setting the viewport size.Defined in: MvcAtl.h
Class Template Arguments
_Viewport
Viewport class to derive from
_Base
ATL window class to derive from
Class Members
virtual BOOL Create(HWND hWndParent, LPRECT rc)
Creates the viewport given a parent window and a rectangle.
virtual HWND GetWindowHandle()
Return the window handle for the viewport.
virtual void OnPrepareDC(CDC* pDC)
Prepare device context for rendering.
virtual void OnCleanupDC(CDC* pDC)
Cleanup device context after rendering.
virtual CSize SetSize(int cx, int cy)
Set the width and height of the viewport.
CSize SetSize(const CSize& sz)
Set the width and height of an object.
virtual CPoint SetOrigin(int x, int y)
Set the origin of an object.
virtual CPoint MoveOrigin(int xOff,int yOff)
Move the origin of an object by a given X,Y offset.