Click here to Skip to main content
15,846,571 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I made a double click event on a graph in MFC form. However, the event only works when I double click on the background of the form; and doesn't work when I double click on the graph. How I can make a double click event on a graph?
Posted
Comments
Sergey Alexandrovich Kryukov 26-Oct-15 22:28pm    
You can create it by clicking on the same mouse button twice, with small delay between clicks, which can be performed with your finger.
—SA
Iain Clarke, Warrior Programmer 4-Nov-15 4:36am    
This question does not make a lot of sense. C# had forms. MFC has windows and dialogs. If you have a dialog box, and a graph control on it, then I am guessing you are adding a double click handler to your dialog box, when you should be adding a notify handler, with the notify code and control ID.
Without knowing what "graph" is, we can't really help you any more that that.
Do a search for ON_NOTIFY, and NM_DBLCLK, and some information about standard controls will show up for you.
Member 11583784 19-Nov-15 6:28am    
Thank you very much. It worked now ( Sorry for late reply).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900