How to swallow the Click event in a dialog based on CAppDialog to stop it passing to the chart.


I've created a dialog based on CAppDialog.

When I click a control on the dialog, the mouse click passes through to the chart below.

I want to use the dialog to select an action , such as a radio group item the action, but only fires when the chart is clicked, not when the dialog is clicked.

How do I stop the event passing to the chart, or tell the difference between a click on the dialog and a click on the chart?


I suppose you need to filter this out by the coordinates of the dialog ad the mouse click event.