Help with MFC controls
-
I am rather new to MFC and am currently trying to BS my way through it, but I am having a few problems. First, I am wanting to create a control that is similar to what you would find in Windows Task Manager (multi-column, vertical scrolling, selectable and sortable) but I can't seem to find the control that will work. Is this a modified ListBox or is it a custom control. I tried searching for it but don't really know what I'm looking for. Second, why doesn't my dialog use the theme of Windows. It does in the resource editor but not when run. I've tried googleing but again, I'm not really sure where I should be looking. Any help is appreciated. Thanks, Dustin
-
I am rather new to MFC and am currently trying to BS my way through it, but I am having a few problems. First, I am wanting to create a control that is similar to what you would find in Windows Task Manager (multi-column, vertical scrolling, selectable and sortable) but I can't seem to find the control that will work. Is this a modified ListBox or is it a custom control. I tried searching for it but don't really know what I'm looking for. Second, why doesn't my dialog use the theme of Windows. It does in the resource editor but not when run. I've tried googleing but again, I'm not really sure where I should be looking. Any help is appreciated. Thanks, Dustin
Have a look at the CListCtrl or better yet, the MFC Grid Control[^].
Maximilien Lincourt Your Head A Splode - Strong Bad
-
I am rather new to MFC and am currently trying to BS my way through it, but I am having a few problems. First, I am wanting to create a control that is similar to what you would find in Windows Task Manager (multi-column, vertical scrolling, selectable and sortable) but I can't seem to find the control that will work. Is this a modified ListBox or is it a custom control. I tried searching for it but don't really know what I'm looking for. Second, why doesn't my dialog use the theme of Windows. It does in the resource editor but not when run. I've tried googleing but again, I'm not really sure where I should be looking. Any help is appreciated. Thanks, Dustin
Dustin Henry wrote:
I am wanting to create a control that is similar to what you would find in Windows Task Manager (multi-column, vertical scrolling, selectable and sortable) but I can't seem to find the control that will work. Is this a modified ListBox or is it a custom control.
That's a List-View control: List-View Control Reference[^]
"If you can dodge a wrench, you can dodge a ball."
-
Dustin Henry wrote:
I am wanting to create a control that is similar to what you would find in Windows Task Manager (multi-column, vertical scrolling, selectable and sortable) but I can't seem to find the control that will work. Is this a modified ListBox or is it a custom control.
That's a List-View control: List-View Control Reference[^]
"If you can dodge a wrench, you can dodge a ball."
That looks to be exactly what I was looking for. Thanks for the help.
-
I am rather new to MFC and am currently trying to BS my way through it, but I am having a few problems. First, I am wanting to create a control that is similar to what you would find in Windows Task Manager (multi-column, vertical scrolling, selectable and sortable) but I can't seem to find the control that will work. Is this a modified ListBox or is it a custom control. I tried searching for it but don't really know what I'm looking for. Second, why doesn't my dialog use the theme of Windows. It does in the resource editor but not when run. I've tried googleing but again, I'm not really sure where I should be looking. Any help is appreciated. Thanks, Dustin
Dustin Henry wrote:
Is this a modified ListBox or is it a custom control.
Using Spy++, you'll note that it is a window belonging to the "SysListView32" class.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb