WM_NCLBUTTONDOWN and Double Click

F

Franz

I have sent a WM_NCLBUTTONDOWN message when there is a left mouse down on my form. But if I do that, then my double click event
handler will not be called. Is there any method to solve that ?
Thanks.
 
M

Mike Bird

If that is the case, my advice would be to stop it. Don't convert a mouse
click into an NC mouse click, just do your own window movement code. On
mouse down, store the position of the window and capture the mouse input, on
mouse move while input captured move the window, on mouse up release the
capture.

Then your double-click problem will go away on it's own.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top