Solved

CStaic Click event

Posted on 2000-03-23
3
313 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

831 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