Click here to Skip to main content
15,915,833 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DS problem Pin
Mihail5-Jul-01 6:54
Mihail5-Jul-01 6:54 
Generalado and excel Pin
Gérald Mercet5-Jul-01 5:39
Gérald Mercet5-Jul-01 5:39 
GeneralRe: ado and excel Pin
User 98855-Jul-01 6:16
User 98855-Jul-01 6:16 
GeneralRe: ado and excel Pin
Carlos Antollini5-Jul-01 6:26
Carlos Antollini5-Jul-01 6:26 
GeneralRe: ado and excel Pin
5-Jul-01 21:41
suss5-Jul-01 21:41 
GeneralRe: ado and excel Pin
User 98856-Jul-01 12:07
User 98856-Jul-01 12:07 
GeneralRe: ado and excel Pin
5-Jul-01 7:23
suss5-Jul-01 7:23 
QuestionHeader notifications? Pin
5-Jul-01 4:53
suss5-Jul-01 4:53 
Hi All,

I have a CMyListCtrl (derived from) CListCtrl on a CMyPropertyPage (derived from CPropertyPage).

In CMyListCtrl I try to handle several header control notifications:

ON_NOTIFY(HDN_BEGINTRACK, 0, OnHeaderBeginTrack)
ON_NOTIFY(HDN_ENDTRACK, 0, OnHeaderEndTrack)
ON_NOTIFY(HDN_BEGINDRAG, 0, OnHeaderBeginDrag)
ON_NOTIFY(HDN_ENDDRAG, 0, OnHeaderEndDrag)
ON_NOTIFY(HDN_DIVIDERDBLCLK, 0, OnHeaderDividerDoubleClick)
ON_NOTIFY(HDN_ITEMCHANGING, 0, OnHeaderItemChanging)
ON_NOTIFY(HDN_ITEMCLICK, 0, OnHeaderItemClick)

The problem is I get some of the notifications, but not others.

I get the BEGIN/END TRACK/DRAG notifications, but I do NOT get the DIVIDERDBLCLK, ITEMCHANGING, or ITEMCLICK notifications?

I can use ON_NOTIFY_REFLECT(LVN_COLUMNCLICK, OnListColumnClick) in place of the HDN_ITEMCLICK notification, but I don't understand why I'm not getting the header notifications.

If I handle the HDN_DIVIDERDBLCLICK notification in CMyPropertyPage, I do get the notification, so it looks like the header control sends some of its notifications to the CListCtrl, and others to the CPropertyPage?

It also seems like by the time the HDN_DIVIDERDBLCLICK notification is received, the header (or listctrl) has already done the default resizing of the header columns, but that's what I wanted to customize.

Any ideas or suggestions?

Thanks - Sean McKinnon

mailto:sean.mckinnon@kvs.com
AnswerRe: Header notifications? Pin
Tomasz Sowinski5-Jul-01 5:15
Tomasz Sowinski5-Jul-01 5:15 
GeneralRe: Header notifications? Pin
9-Jul-01 5:03
suss9-Jul-01 5:03 
QuestionHow can I hide a list control item? Pin
5-Jul-01 2:50
suss5-Jul-01 2:50 
AnswerRe: How can I hide a list control item? Pin
Tomasz Sowinski5-Jul-01 4:06
Tomasz Sowinski5-Jul-01 4:06 
QuestionHow to Print data in MSFlexgrid control in an VC++/MFC Application? Pin
Aky5-Jul-01 2:43
Aky5-Jul-01 2:43 
Generalado Pin
Gérald Mercet4-Jul-01 22:23
Gérald Mercet4-Jul-01 22:23 
QuestionHow to change File Icon Pin
Muhammad Abid4-Jul-01 22:18
Muhammad Abid4-Jul-01 22:18 
GeneralRequest for Application skeleton code Pin
N.Bharadwaj4-Jul-01 18:58
N.Bharadwaj4-Jul-01 18:58 
GeneralSpec reqd for driver development Pin
N.Bharadwaj4-Jul-01 18:46
N.Bharadwaj4-Jul-01 18:46 
GeneralCatching Access Violations Pin
Nick Blumhardt4-Jul-01 16:27
Nick Blumhardt4-Jul-01 16:27 
GeneralRe: Catching Access Violations Pin
Nick Blumhardt4-Jul-01 17:42
Nick Blumhardt4-Jul-01 17:42 
GeneralActiveX controls in Internet Explorer Pin
Derek Waters4-Jul-01 16:21
Derek Waters4-Jul-01 16:21 
GeneralRe: ActiveX controls in Internet Explorer Pin
Michael Dunn4-Jul-01 16:26
sitebuilderMichael Dunn4-Jul-01 16:26 
GeneralRe: ActiveX controls in Internet Explorer Pin
Derek Waters5-Jul-01 14:52
Derek Waters5-Jul-01 14:52 
GeneralClassWizard "new Class from type lib" help Pin
4-Jul-01 14:01
suss4-Jul-01 14:01 
GeneralRe: ClassWizard Pin
Nick Van den Abbeele4-Jul-01 21:14
Nick Van den Abbeele4-Jul-01 21:14 
GeneralDAO FindFirst Pin
otvac4-Jul-01 13:58
otvac4-Jul-01 13:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.