Click to See Complete Forum and Search --> : Controls Guidlines


May 5th, 1999, 05:25 AM
I am new user of VC 6.0, facing the problem of using contrls. Some are simple, some have "control" in their name and some have "view" in their name. So what is the differences b/w simple,control and view controls. What should i use or what are dis/advantages of these kinds of contorl

Harvey Hawes
May 5th, 1999, 11:30 AM
Hi,

If I understand the question...

It's pretty simple actually. I'm guessing that you are talking about CListCtrl and CListView type things. You can think of a control as a window that you place in something. For example a CListCtrl can go in a Dialog Window. ComboBoxes go in Dialogs or Toolbars, or views etc.

A view, in MFC lingo, can be pictured easiest in an SDI app (single document interface). The view is what "fills" a Frame (CFrameWnd). In an MDI app, the view fills a child window...

In essence, use a CListCtrl if you want to put it in a dialog. Use a CListView if you want to make the whole application look like a list control. Views are derived from CView and hence have already built in Printing support, among other things. Controls are derived from CWnd, and therefore have different (less) inherent functionality.


HTH,

Harvey Hawes

Software Engineer
BioScience Analysis Software Ltd.

Masters Candidate
Cardiovascular/Respiratory Sciences
Faculty of Medicine
University of Calgary
Calgary, Alberta, Canada