Quote:
> Sorry if the answer is too obious.
> In my app the user can drag an item with the mouse
> as long as the (mouse-) button is pressed. When the
> user leaves the window and releases the mouse button
> (outside the window) I don't get an "OnLButtonUp"
> message for my window (of course not).
> How am I informed that the mouse has left my window?
> I tried spy++ but I didn't find a message that
> would help me.
> Or is there a way to check the state of the mouse
> button as soo as the mouse enters the window again?
Martin,
Look into SetCapture() and ReleaseCapture().
This causes all mouse events to be sent to your window, regardless if the
mouse is on the window.
cU
--
http://djuga.home.ml.org
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Retriever 1.0 is out: http://retriever.home.ml.org
Shareware image viewer, thumbnailer & database
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~