المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : DataGridView.DataSource WM_MOUSEMOVE [modified]



C# Programming
03-18-2010, 05:02 AM
Another member when using code in one of my articles came across a peculiarity that I'm trying to resolve.

It seems that whenever the DataSource of a DataGridView is changed, if the mouse is over the Control, a WM_MOUSEMOVE (0x0200) message is generated http://www.barakasoft.com/script/Forums/Images/smiley_confused.gif

Is there any reason why this would be the case, and any idea of a workaround as the component does something on that message so this situation is causing undesired and unexpected behaviour!?

The only quick workaround I can think of is to store and check against the previous lParam of this message to see if the mouse has actually moved - yuk! Dave
Binging is like googling, it just feels dirtier. (Pete O'Hanlon (http://www.codeproject.com/Members/Pete-OHanlon))
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn (http://www.codeproject.com/Members/Luc-Pattyn))
Why are you using VB6? Do you hate yourself? (Christian Graus (http://www.codeproject.com/script/Membership/View.aspx?mid=6556))modified on Wednesday, March 17, 2010 5:03 PM