Solved

ListView : HDS_FILTERBAR

Posted on 2000-04-10
4
1,003 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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
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 learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

832 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