CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Controls Guidlines

    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


  2. #2
    Join Date
    May 1999
    Posts
    36

    Re: Controls Guidlines

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured