try this
Posted: Sun Dec 28, 2003 11:48 pm
Setup a handler for
int the header file
afx_msg void OnMouseDownTChart(long Button, long Shift, long X, long Y);
in the cpp file...
BEGIN_EVENTSINK_MAP(C_TeeChartView, CView)
ON_EVENT(C_TeeChartView, IDC_TCHART1, 19 /* OnMouseDown */, OnMouseDownTChart, VTS_I4 VTS_I4 VTS_I4 VTS_I4)
....
END_EVENTSINK_MAP()
the handler
void OnMouseDownTChart(long Button, long Shift, long X, long Y) ;
The variable Button wil be set to left right middle etc.
Set a break point and clikc a button, you will soon figure the value in Button that equals RIgh Mouse button.
Good luck.
Hans W
int the header file
afx_msg void OnMouseDownTChart(long Button, long Shift, long X, long Y);
in the cpp file...
BEGIN_EVENTSINK_MAP(C_TeeChartView, CView)
ON_EVENT(C_TeeChartView, IDC_TCHART1, 19 /* OnMouseDown */, OnMouseDownTChart, VTS_I4 VTS_I4 VTS_I4 VTS_I4)
....
END_EVENTSINK_MAP()
the handler
void OnMouseDownTChart(long Button, long Shift, long X, long Y) ;
The variable Button wil be set to left right middle etc.
Set a break point and clikc a button, you will soon figure the value in Button that equals RIgh Mouse button.
Good luck.
Hans W