Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ListView : HDS_FILTERBAR

Posted on 2000-04-10
4
Medium Priority
?
1,074 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 60 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

879 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