CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2003
    Location
    Toronto, ON
    Posts
    88

    What control to derive from?

    Hello...

    I have a splitter window view in which I want to be able to add a series of 'audio tracks', as in, I want to be able to add as many track views as I want, one under the other. Each of these tracks will have functionality built in, ie. the ability to scroll, mute, etc. What I want to know is how I should go about implementing such a thing. What class is best to derive this from. Should I use a listview? Any suggestions. Keep in mind:

    1. Add a track to the window
    2. Remove a track

    Here is a picture of what I'm trying to implement:

    http://www.freefunfiles.com/software...creenshot.html

    Phil

  2. #2
    Join Date
    Oct 2003
    Location
    Toronto, ON
    Posts
    88
    By the way, don't worry about the actual audio aspect; that's not a problem. I'm only concerned with the GUI aspect.

  3. #3
    Join Date
    May 1999
    Location
    Southern California
    Posts
    12,266
    I don't know, but since there are not any other answers, you might consider using an owner-drawn list box (CListBox, not CListCtrl). I don't know how to do that, but there are samples and such that should help. There probably are also some CodeGuru articles that should help.
    "Signature":
    My web site is Simple Samples.
    C# Corner Editor

  4. #4
    Join Date
    Oct 2003
    Location
    Toronto, ON
    Posts
    88
    Thanks for the tip, actually I already decided to derive a CView class and just draw during the OnPaint method, it seems to be working fine with that.

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