November 2nd, 2003, 03:36 PM
What control to derive from?
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:
November 2nd, 2003, 03:38 PM
By the way, don't worry about the actual audio aspect; that's not a problem. I'm only concerned with the GUI aspect.
November 4th, 2003, 01:47 PM
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.
November 4th, 2003, 03:47 PM
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.
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!