Prev: Forcefully Remove USB Flash Drive
Next: SetWindowLongPtr fails when window is subclassed for some cases.
From: ScottMcP [MVP] on 11 May 2010 23:39
On May 11, 10:37 pm, Heck
> What makes it view-like? That's a broad question. What are the
> essential characteristics of a view, both abstractly and in
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.