RE: [GD-Windows] Detecting mouse exiting window?
Brought to you by:
vexxed72
From: Nicolas R. <nic...@fr...> - 2002-08-06 12:58:28
|
I guess the idea is: 1. To capture the mouse on first WM_MOUSEMOVE received by window (mouse enters) 2. To get each single mouse move message afterward.. Test if its outside of window.. If inside => 2 If outside => 3 3. Release mouse capture => 1 Nicolas. -----Original Message----- Brian Sharon Sent: lundi 5 aout 2002 18:45 Subject: RE: [GD-Windows] Detecting mouse exiting window? If your app captures the mouse all the time, it makes it pretty hard for the user to click on other windows... Capturing the mouse seems most useful for processing things like custom buttons and drag-and-drop behaviors, where you need to get mouse down messages and mouse up messages in pairs. When they mouse down, you capture the mouse; when they mouse up, you release it. --brian |