CStaic Click event

Is there a way to capture the click event of a CStatic object??
meetzeAsked:
Who is Participating?
 
MDarlingCommented:
Make sure the Notify style is set
for the CStatic object (do this via)
the resource editor.  Also give it a
unique ID not ID_STATIC.

That way you should be able to respond to OnClick using ClassWizard.

regards,
Mike.
0
 
MDarlingCommented:
for OnClick read BN_CLICK.

regards,
Mike.
0
 
V_BapatCommented:
Derive a class from CStatic, attach your class to the control and handle the click event in your class.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.