Re: How to add items to CListViews?
On Nov 27, 1:53 pm, Joseph M. Newcomer <newco...@flounder.com> wrote:
OnCHildNotify sounds strange. Show the relevant lines of your message =
maps.
=
joe
On Wed, 26 Nov 2008 23:49:30 -0800 (PST), vakiti <vakiti1...@gmail.com> w=
rote:
On Nov 26, 7:48 pm, Ajay Kalra <ajayka...@yahoo.com> wrote:
i can't use listctrl inside formview because of my requirement.
What requirement is that.
.i have
already working with Clistviews which is working fine
That may be true but that has absolutely no impact on using a listview
in a formview. It doesnt make sense. Its not hard to use a CListCtrl
instead. You are going to be wasting time and effort if you try a
listview in a formview.
--
Ajay
Hi,
i have tried with Clistctrl inside formview with LVS_OWNERDATA
style..in my listview its firing LVN_GETDISPINFO notification message
in OnChildNotify() to fetch data from large database and to display
data in listview.
in Clistctrl case where i need to implement to get data from
database.i wrote it under onchildnotify() but its not working..
plz don't suggest why u r using LVS_OWNERDATA style...i have to use..
plz help me..
thanx...
Joseph M. Newcomer [MVP]
email: newco...@flounder.com
Web:http://www.flounder.com
MVP Tips:http://www.flounder.com/mvp_tips.htm- Hide quoted text -
- Show quoted text -
Hi,
I will show the ListView changes which i have already...
virtual BOOL OnChildNotify(UINT message, WPARAM wParam, LPARAM lParam,
LRESULT* pLResult);
void GetDispInfo(LVITEM* pItem);
In OnChildNotify()
if(message == WM_NOTIFY)
{
NMHDR* phdr = (NMHDR*)lParam;
// these 3 notifications are only sent by virtual listviews
switch(phdr->code)
{
case LVN_GETDISPINFO:
{
NMLVDISPINFO* pLvdi;
pLvdi = (NMLVDISPINFO*)lParam;
GetDispInfo(&pLvdi->item);
}
if(pResult != NULL)
{
*pResult = 0;
}
break;
default:
return CListView::OnChildNotify(message,
wParam, lParam, pResult);
}
In GetDispInfo() i was reading data from database..if i take ListView
in FormView always goes to default case..
thanx..