Solved

ATL: How to get mouse event?

Posted on 1998-06-30
2
297 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.

809 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