Solved

ATL: How to get mouse event?

Posted on 1998-06-30
2
288 Views
Last Modified: 2013-11-20
I am developing an ActiveX control in VC++ ATL2.1.

I could not get WM_LBUTTONUP message when mouse button is released outside the control's client area.

( I could receive it when button is released within the client area)

How to receive it?

Thanks for any help.

Regards,
njug
0
Comment
Question by:njug
2 Comments
 
LVL 3

Accepted Solution

by:
Norbert earned 20 total points
ID: 1318567
There is a function SetCapture
It exists as SDK function , CWnd Function and CWindow Function.
You have to call it on WM_LBUTTONDOWN so all mouse messages are going to your window regardles if the mouse is inside or outside your window
to release the capture call ReleaseCapture when capture is no more needed
Probably in WM_LBUTTONUP message handler

0
 

Author Comment

by:njug
ID: 1318568
Thanks a lot!

It worked!

Regards,
njug
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Process filename extension 3 185
lucky13 challenge 11 145
fizzArray  challenge 1 83
Way to decrease size of apk file 9 69
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…
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.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

777 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