[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 338
  • 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

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

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