Click here to Skip to main content
16,005,389 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
i want to add a docking pane (CDockablePane) to my app that contains several MFC controls like sliders, test edits, buttons, scroll bars, and a general purpose area i can draw in

the whole thing needs a list with a vertical scroll too. each column in the list is the same, a slider, a text edit and a button, but the length of the list is variable at run time.

i need to generate the list of controls programmatically, i.e. not using a dialog editor which produce a fixed layout


can someone suggest a sample example somewhere that i could get some ideas from or a bit of sample code?

thanks, steve
Posted
Updated 6-Aug-11 2:18am
v2

no relies but i did find a couple of interesting projects i'd like to share incase any one else is doing the same.

XListCtrl - A custom-draw list control with subitem formatting
XListCtrl - A custom-draw list control with subitem formatting[^]

this looks very powerful and very complex to understand and use, or build.

List Control Extended for Progress Control
[^]

this is super simple to understand, build and modify and it looks like you can easily use any control in the list control
 
Share this answer
 
I'm not sure, but maybe you could add a scroll-view on your dockable pane. Otherwise you could also add a CFormView on your pane. You can do it like this:
C++
class MyDockPane : CDockablePane
{
//Other declarations
protected:
CFormView m_wndFormView;
//More declarations
};
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900