My code seems to be leaking memory. when i use HDM_GETITEMW, any thoughts?
hdItem.mask = ( HDI_FILTER ); // Set Mask
ZeroMemory( cFilter, sizeof( cFilter ) ); // Init Buffer For Filter
hdTFilter.pszText = cFilter; // Set Buffer For Filter
hdTFilter.cchTextMax = sizeof( cFilter ); // Set Size Of Buffer
hdItem.type = HDFT_ISSTRING; // Set String Filter Type
hdItem.pvFilter = &hdTFilter;
::SendMessage(pHeader -> m_hWnd, HDM_GETITEMW,iColNo, (LPARAM)&hdItem); // Get Item Filter Data
i downloaded this demo project, it is working on my system very well, but when i wrote my own code like this then there are so many errors like HDS_FILTERBAR , HDI_FILTER and hdItem.type = HDFT_ISSTRING not define. there are many other errors like this please helpe
my email id is
Posted by jtwine
on 02/03/2006 01:40pm
You need to have the updated SDK installed correctly to have those values available.
On button click I am creating ListBox & then selecting value to filter. The selected value is set in filter using SetItem(...). This is ok, I can delete some chars from set value but can't enter if more than 4 char in edit. I have found this problem when I have set value for column from list, otherwise u can edit with keyboard without any problem.
Hope any one have any solution?.
When my program calls pHeader->SetItem() I get an Access Violation in Comctl32.dll... is something going on with SetItem? I'm running VC++ 6 Standard, Win98 SE, IE6, and Office 2000 Pro.
Also, how do I filter the list? In your demo app (which works without an access violation) I enter a filter into the FilterBar (example: Car) and click on the filter icon, but it doesn't want to work... I still get all the Bucket items, for example.