I am really a beginner with MFC. I just want a few guidelines on how to use a ListCtrl in an SDI application. For example, getting input from the user and displaying it in the listctrl when a button is clicked. Please guide me.
Asked
Active
Viewed 523 times
0
-
1You must be more specific, otherwise your question will likely be closed very soon. – Jabberwocky Apr 09 '15 at 10:18
-
I know how to implement ListCtrl in Dialog based applications. But I don't know how to implement it in SDI application. Pls guide on the steps to achieve it. – BeginnerWin32 Apr 09 '15 at 10:35
1 Answers
1
In SDI application I would use CListView
-derived class for main view. This class has been designed to be used in SDI/MDI apps and supports standard MFC document-view architecture. The CListView
class internally uses CListCtrl, but it does automatic resizing and other handy things, you can also get direct access to embedded list ctrl by calling CListView::GetListCtrl()
method that returns CListCtrl*
.

Andrew Komiagin
- 6,446
- 1
- 13
- 23