Solved

CStaic Click event

Posted on 2000-03-23
3
307 Views
Last Modified: 2013-11-20
Is there a way to capture the click event of a CStatic object??
0
Comment
Question by:meetze
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
MDarling earned 50 total points
ID: 2650097
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
 
LVL 3

Expert Comment

by:MDarling
ID: 2650101
for OnClick read BN_CLICK.

regards,
Mike.
0
 
LVL 3

Expert Comment

by:V_Bapat
ID: 2653156
Derive a class from CStatic, attach your class to the control and handle the click event in your class.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now