Solved

ListView : HDS_FILTERBAR

Posted on 2000-04-10
4
990 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

707 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

15 Experts available now in Live!

Get 1:1 Help Now