Click here to Skip to main content
16,004,782 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralReal time monitoring Pin
jooo11-Oct-04 14:50
jooo11-Oct-04 14:50 
GeneralCListCtrl, OnBegintrack Pin
Vancouver11-Oct-04 14:06
Vancouver11-Oct-04 14:06 
GeneralRe: CListCtrl, OnBegintrack Pin
alex.barylski11-Oct-04 17:54
alex.barylski11-Oct-04 17:54 
GeneralRe: CListCtrl, OnBegintrack Pin
Vancouver11-Oct-04 18:43
Vancouver11-Oct-04 18:43 
GeneralRe: CListCtrl, OnBegintrack Pin
Adi Narayana11-Oct-04 23:48
Adi Narayana11-Oct-04 23:48 
GeneralRe: CListCtrl, OnBegintrack Pin
Vancouver11-Oct-04 19:35
Vancouver11-Oct-04 19:35 
GeneralRe: CListCtrl, OnBegintrack Pin
Blake Miller15-Dec-04 10:09
Blake Miller15-Dec-04 10:09 
GeneralOnBegintrack, OnEndtrack Pin
Vancouver15-Dec-04 12:02
Vancouver15-Dec-04 12:02 
Hi,

first of all, if you want to process these messages on the level of the list control, then don't use message reflection, because the list control is the parent of the header control.

Second, the embedded CHeaderCtrl's control id is always zero, so the filter in On_Notify has to be zero as well.

Because the wizard would generate reflecting message mapping, which is wrong here,
you have to record the message handlers by hand between the end of the message map generated by the wizard
//}}AFX_MSG_MAP
and
END_MESSAGE_MAP()

like

ON_NOTIFY(HDN_BEGINTRACKA, 0, Your_Begintrack)
ON_NOTIFY(HDN_BEGINTRACKW, 0, Your_Begintrack)
ON_NOTIFY(HDN_ENDTRACKA, 0, Your_Endtrack)
ON_NOTIFY(HDN_ENDTRACKW, 0, Your_Endtrack)

Furthermore, you have to declare the functions following
//}}AFX_VIRTUAL
in the class definition of your list control:

afx_msg void Your_Begintrack(NMHEADER *nmheader, LRESULT *pResult);
afx_msg void Your_Endtrack(NMHEADER *nmheader, LRESULT *pResult);

(you are free to decide the names of the functions).

This should suffice.
GeneralRe: OnBegintrack, OnEndtrack Pin
Blake Miller16-Dec-04 3:48
Blake Miller16-Dec-04 3:48 
Generalvector question... Pin
RobJones11-Oct-04 13:49
RobJones11-Oct-04 13:49 
GeneralRe: vector question... Pin
Bob Stanneveld11-Oct-04 23:44
Bob Stanneveld11-Oct-04 23:44 
GeneralRe: vector question... Pin
Jim Crafton12-Oct-04 5:25
Jim Crafton12-Oct-04 5:25 
GeneralCan't update a textbox Pin
V5Dave11-Oct-04 13:28
V5Dave11-Oct-04 13:28 
GeneralRe: Can't update a textbox Pin
RobJones11-Oct-04 13:54
RobJones11-Oct-04 13:54 
GeneralStill Can't update a textbox Pin
V5Dave11-Oct-04 14:30
V5Dave11-Oct-04 14:30 
GeneralRe: Still Can't update a textbox Pin
RobJones11-Oct-04 17:39
RobJones11-Oct-04 17:39 
GeneralRe: Still Can't update a textbox Pin
RobJones11-Oct-04 17:50
RobJones11-Oct-04 17:50 
GeneralRe: Still Can't update a textbox Pin
V5Dave11-Oct-04 18:12
V5Dave11-Oct-04 18:12 
QuestionUsing Text Object Model for CRichEditCtrl manipulation? Pin
Jonathan Lee Brown11-Oct-04 12:39
Jonathan Lee Brown11-Oct-04 12:39 
Generalmouse events Pin
agentnem11-Oct-04 10:53
agentnem11-Oct-04 10:53 
GeneralRe: mouse events Pin
RobJones11-Oct-04 13:59
RobJones11-Oct-04 13:59 
GeneralRe: mouse events Pin
Anonymous11-Oct-04 14:08
Anonymous11-Oct-04 14:08 
GeneralRe: mouse events Pin
RobJones11-Oct-04 17:47
RobJones11-Oct-04 17:47 
GeneralRe: mouse events Pin
RobJones11-Oct-04 18:06
RobJones11-Oct-04 18:06 
Generalcant type into edit box Pin
Tim Rosser11-Oct-04 9:57
Tim Rosser11-Oct-04 9:57 

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.