Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CStaic Click event

Posted on 2000-03-23
3
Medium Priority
?
330 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 200 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

877 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