Re: WM_SYSCOMMAND SC_MOVE eats up mouse events and mouse up is not fired

"tommy_h_tam" <[email protected]> Tue, 21 Aug 2012 16:51:01 -0000
Newsgroups gmane.comp.windows.wtl
Message-ID <[email protected]>
It is because I am hosting a web browser, and the web browser has an HTML element that expect onMouseUp event, and somehow onMouse up is not fired once I use WM_SYSCOMMAND.

So at the end of the SC_MOVE, tried to dispatch a WM_LBUTTONUP to the browser, but still browser element didn't get the mouse up event.

Therefore I also tried to use WM_NCHITTEST with WM_EXITSIZEMOVE and got the event, but once the browser is visible, WM_NCHITTEST is also not fired.

Still trying other approaches, will keep you post if I find any solution.



--- In [email protected], Igor Tandetnik <itandetnik@...> wrote:
>
> On 8/15/2012 11:13 PM, tommy_h_tam wrote:
> > My program is a chromeless window and I want to move the window when
> > user drag any part of my dialog. Once WM_SYSCOMMAND is used, all
> > subsequent mouse events are lost.
> 
> SC_MOVE initiates a modal message loop that processes mouse messages and 
> translates them into window movement. That's why those mouse messages 
> don't reach your normal message pump.
> 
> Why do you need individual mouse messages while the window is being 
> moved? What are you trying to achieve? Would WM_MOVING message serve 
> your purpose?
> -- 
> Igor Tandetnik
>



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/