From: ScottMcP [MVP] on
On May 11, 10:37 pm, Heck
<heckja...(a)> wrote:
> What makes it view-like?  That's a broad question.  What are the
> essential characteristics of a view, both abstractly and in
> implementation?

A view (CView and its derivations) fills all the space left over in
the frame window after toolbars, status bar, and any edge controls
(CDialogBar) are positioned.

The view's essential implementation detail is that it has an ID that
CMainframe uses to find it so it can manage the view's size and
position. When the frame window is resized it repositons/resizes all
the edge bars and then fills the remaining space with the view.

Another major feature of a view is its WM_PAINT handler can change the
view's coordinate system before calling OnDraw. This supports zoom,
offset and print preview.