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

x
?
Solved

LButtonUp event from a button

Posted on 1998-11-10
1
Medium Priority
?
524 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 150 total points
ID: 1324479
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.…

971 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