Click here to Skip to main content
15,896,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Check if mouse button is pressed? Pin
David Crow29-Apr-04 9:46
David Crow29-Apr-04 9:46 
GeneralRe: Check if mouse button is pressed? Pin
Maarten Kools29-Apr-04 9:50
professionalMaarten Kools29-Apr-04 9:50 
GeneralRe: Check if mouse button is pressed? Pin
Ravi Bhavnani29-Apr-04 9:57
professionalRavi Bhavnani29-Apr-04 9:57 
GeneralRe: Check if mouse button is pressed? Pin
Maarten Kools29-Apr-04 10:01
professionalMaarten Kools29-Apr-04 10:01 
GeneralRe: Check if mouse button is pressed? Pin
Ravi Bhavnani29-Apr-04 10:04
professionalRavi Bhavnani29-Apr-04 10:04 
GeneralRe: Check if mouse button is pressed? Pin
Joe Woodbury29-Apr-04 11:09
professionalJoe Woodbury29-Apr-04 11:09 
GeneralRe: Check if mouse button is pressed? Pin
Maarten Kools29-Apr-04 11:31
professionalMaarten Kools29-Apr-04 11:31 
GeneralRe: Check if mouse button is pressed? Pin
Joe Woodbury29-Apr-04 15:10
professionalJoe Woodbury29-Apr-04 15:10 
Windows is message driven so using a loop to monitor where the mouse is is self-defeating. You incur a performance penalty for no reason.

If you simply need to know when a mouse leaves a window, use TrackMouseEvent with the TME_LEAVE option.

If you are monitoring the mouse with the button down, the prescribed method is to use mouse capture so that the mouse message will be sent to that window.

As for overlapping windows; this is windows. Unless you have taken over the screen, there are all sorts of overlapping windows present. Your app is guaranteed to receive mouse messages only if you are capturing the mouse with the button down. (What if an other app pops up over the window which you are monitoring?)

Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke

GeneralActiveX Pin
Demian Panello29-Apr-04 8:43
Demian Panello29-Apr-04 8:43 
GeneralRe: ActiveX Pin
David Crow29-Apr-04 9:47
David Crow29-Apr-04 9:47 
GeneralPulling Integers from a Binary file.... Pin
mike-o29-Apr-04 8:12
mike-o29-Apr-04 8:12 
GeneralRe: Pulling Integers from a Binary file.... Pin
PJ Arends29-Apr-04 9:05
professionalPJ Arends29-Apr-04 9:05 
GeneralRe: Pulling Integers from a Binary file.... Pin
David Crow29-Apr-04 9:44
David Crow29-Apr-04 9:44 
GeneralWin32 Consol Apps Pin
Anonymous29-Apr-04 7:43
Anonymous29-Apr-04 7:43 
GeneralPassing username/pwd in WebBrowser request Pin
Ravi Bhavnani29-Apr-04 7:07
professionalRavi Bhavnani29-Apr-04 7:07 
GeneralRe: Passing username/pwd in WebBrowser request Pin
l a u r e n29-Apr-04 8:28
l a u r e n29-Apr-04 8:28 
GeneralRe: Passing username/pwd in WebBrowser request Pin
Ravi Bhavnani29-Apr-04 8:38
professionalRavi Bhavnani29-Apr-04 8:38 
GeneralRe: Passing username/pwd in WebBrowser request Pin
l a u r e n29-Apr-04 8:39
l a u r e n29-Apr-04 8:39 
GeneralRe: Passing username/pwd in WebBrowser request Pin
David Crow29-Apr-04 9:27
David Crow29-Apr-04 9:27 
QuestionWhen is MSVCP60.DLL required? Pin
Phenonymous29-Apr-04 5:59
sussPhenonymous29-Apr-04 5:59 
AnswerRe: When is MSVCP60.DLL required? Pin
jmkhael29-Apr-04 6:04
jmkhael29-Apr-04 6:04 
AnswerRe: When is MSVCP60.DLL required? Pin
Nemanja Trifunovic29-Apr-04 6:05
Nemanja Trifunovic29-Apr-04 6:05 
AnswerRe: When is MSVCP60.DLL required? Pin
Navin29-Apr-04 6:11
Navin29-Apr-04 6:11 
AnswerRe: When is MSVCP60.DLL required? Pin
Andrew Walker29-Apr-04 17:05
Andrew Walker29-Apr-04 17:05 
GeneralRe: When is MSVCP60.DLL required? Pin
Chintoo72330-Apr-04 14:17
Chintoo72330-Apr-04 14:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.