PC Review


Reply
Thread Tools Rate Thread

Lost MouseMove messages

 
 
bryanbassett@gmail.com
Guest
Posts: n/a
 
      20th Dec 2007
I have a custom WinForms control that allows the user to draw with a
black pen in the control area. I use OnMouseDown, OnMouseMove,
OnMouseUp to get the points and draw a line between each point.

I find that if another control in my app uses a lot of UI thread time
(renders a jpeg in the OnPaint), that I completely lose a whole bunch
of MouseMove points. I would expect them to stay queued and I would
process them once the jpeg is done. But instead I get a huge gap in
the points.

Can someone confirm this is expected behavior? At what level
(Windows, WinForms) is it occurring?

I am running on Windows CE 5 using the Compact Framework 2.0. I also
used CF 3.5.

Bryan
 
Reply With Quote
 
 
 
 
Rob
Guest
Posts: n/a
 
      20th Dec 2007
"(E-Mail Removed)" wrote:
> I find that if another control in my app uses a lot of UI thread time
> (renders a jpeg in the OnPaint), that I completely lose a whole bunch
> of MouseMove points.


This is expected behavior on the desktop. The window manager coalesces
WM_MOUSEMOVE messages and delivers only the latest one. I expect it's the
same on CE.

See
http://msdn2.microsoft.com/en-us/library/ms645601(VS.85).aspx#_win32_Mouse_Messages

I would render the jpeg in the background and then just display the latest
available version in OnPaint.

> I am running on Windows CE 5 using the Compact Framework 2.0. I also
> used CF 3.5.


You might want to check with a CE group to see if there are other solutions
for your scenario other than handling mousemoves (such as the Tablet API on
the desktop).

--Rob
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MouseMove =?Utf-8?B?TWFydGlu?= Microsoft Access Forms 1 1st Dec 2004 06:29 AM
MOUSEMOVE flicker =?Utf-8?B?cHJhZXRvcmlhbjI2OQ==?= Microsoft Access Forms 0 22nd Sep 2004 08:53 PM
MouseMove Fysh Microsoft Access Form Coding 3 3rd Sep 2004 06:32 PM
MouseMove Tim Microsoft Access Forms 5 16th Jan 2004 11:08 AM
MouseMove event help dchendrickson Microsoft Access Form Coding 4 16th Nov 2003 02:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:01 PM.