Solved

ListView : HDS_FILTERBAR

Posted on 2000-04-10
4
997 Views
Last Modified: 2010-05-19
I need to know the
HDS_FILTERBAR
HDS_FILTERCHANGE
HDS_FILTERBTNCLICK
HDFT_ISSTRING
HDFT_ISNUMBER
HDFT_HASNOVALUE, etc.
constants values and an example of using the filter bar in a header control in C SDK.

TIA,
Vince.
0
Comment
Question by:dm_14
  • 2
  • 2
4 Comments
 
LVL 14

Accepted Solution

by:
AlexVirochovsky earned 20 total points
ID: 2702920
Snippet from commctrl.h
....
// begin_r_commctrl

#define HDS_HORZ                0x0000
#define HDS_BUTTONS             0x0002
#if (_WIN32_IE >= 0x0300)
#define HDS_HOTTRACK            0x0004
#endif
#define HDS_HIDDEN              0x0008

#if (_WIN32_IE >= 0x0300)
#define HDS_DRAGDROP            0x0040
#define HDS_FULLDRAG            0x0080
#endif
#if (_WIN32_IE >= 0x0500)
#define HDS_FILTERBAR           0x0100
#endif

// end_r_commctrl

#if (_WIN32_IE >= 0x0500)

#define HDFT_ISSTRING       0x0000      // HD_ITEM.pvFilter points to a HD_TEXTFILTER
#define HDFT_ISNUMBER       0x0001      // HD_ITEM.pvFilter points to a INT

#define HDFT_HASNOVALUE     0x8000      // clear the filter, by setting this bit

#ifdef UNICODE
#define HD_TEXTFILTER HD_TEXTFILTERW
#define HDTEXTFILTER HD_TEXTFILTERW
#define LPHD_TEXTFILTER LPHD_TEXTFILTERW
#define LPHDTEXTFILTER LPHD_TEXTFILTERW
#else
#define HD_TEXTFILTER HD_TEXTFILTERA
#define HDTEXTFILTER HD_TEXTFILTERA
#define LPHD_TEXTFILTER LPHD_TEXTFILTERA
#define LPHDTEXTFILTER LPHD_TEXTFILTERA
#endif
......

Full commctrl.h i can send you.
(write your EMail).
Examples of using you can find in MSDN
Alex
0
 
LVL 2

Author Comment

by:dm_14
ID: 2703983
ok alex, mail the commctrl.h file to dm_14@hotmail.com

Could you please provide a link to an example of using the filter bar in MSDN (as I could't find an example) and the points are yours.

Vince.
0
 
LVL 14

Expert Comment

by:AlexVirochovsky
ID: 2705061
I 've sent. And now it is you example
http://codeguru.com/listview/LVFilterBar.shtml 

0
 
LVL 2

Author Comment

by:dm_14
ID: 2706388
You didn't find an example in MSDN did you ! The link you provided is the only one I had found on the net. I am suprised that no one had a better example.

Anyway, here are your points Alex.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now