Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 345
  • Last Modified:

CStaic Click event

Is there a way to capture the click event of a CStatic object??
0
meetze
Asked:
meetze
  • 2
1 Solution
 
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.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now