
CListCtrl as child window of a SDI app without MFC Doc/View
Hi,
I would like to know how to use a CListCtrl as a child window in an SDI
applicatin without MFC Doc/View support.
I tryed to derivate the CChildWnd from CListCtrl instead of the wizard
default CWnd and call create function on CMainFrame::OnCreate() like this:
m_list.Create
(
WS_BORDER | WS_CHILD | WS_VISIBLE | LVS_REPORT | LVS_SINGLESEL |
LVS_SHOWSELALWAYS,
CRect(0, 0, 0, 0), this, 0x100
);
Off course I changed CMainFrame::OnSize() to make the CListCtrl to fit the
whole client area.
However, when I call CListCtrl functions to create columns and itens, they
does not work. The client area is filled in but no column is drawn.
Can somebody help me to implement this?
Thanks a lot for any assistance,
Vinicius