Solved

LButtonUp event from a button

Posted on 1998-11-10
1
511 Views
Last Modified: 2013-11-20
How do I catch the Left mouse button up event off of a button. I am using the classwizrad to catch the event
from the View.. but I cant find where to WM_LBUTTONUP is for
a button.  

All I see are options for BN_CLICKED or a BN_DOUBLECLICKED
Messages..

thanks
0
Comment
Question by:vinny5
1 Comment
 
LVL 1

Accepted Solution

by:
arunprakash earned 50 total points
Comment Utility
Here is what u need,
Normally the class wizard will only list the messages that are reflected from the control.
If u need to catch the additional messages.U need to do subclassing.

Create another CMyButton from CButton
Make ur control in the Dialog to be as a type of CMybutton (do by
               Add Variable and choose ur class instaed of the CButton)

hope this helps,
thanx,
bye
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

Suggested Solutions

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: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

744 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

10 Experts available now in Live!

Get 1:1 Help Now