Does anyone have any idea what could cause our app to drag real slowly when
a user tries to move the app. Since we don't have a caption bar (it's a
skinned app) we're using the tried and true SendMessage(Handle,
WM_NCLBUTTONDOWN, HTCAPTION, 0); and have even tried the longhand approach
of moving the window based on mouseevents, however both results are the
same. Since our app's OnPaint doesn't get called, what other issues could
come into play?
All guesses appreciated.
Thanks,
Eddie
Eddie Berman - 23 Jul 2004 22:11 GMT
One additional bit - When using Spy++ to view the messages, it no longer
drags slowly. Once I turn msg logging off in Spy++, it's back to the
slowness.
What Fun!
-Eddie
> Does anyone have any idea what could cause our app to drag real slowly when
> a user tries to move the app. Since we don't have a caption bar (it's a
[quoted text clipped - 8 lines]
> Thanks,
> Eddie
Mick Doherty - 24 Jul 2004 00:54 GMT
Does it behave any better if you override WndProc() instead of using
SendMessage?
\\\
const int WM_NCHITTEST = 0x84;
const int HT_CAPTION = 0x2;
protected override void WndProc(ref System.Windows.Forms.Message m)
{
base.WndProc(ref m);
if (m.Msg == WM_NCHITTEST)m.Result=(IntPtr)HT_CAPTION;
}
///

Signature
Mick Doherty
http://dotnetrix.co.uk/nothing.html
> Does anyone have any idea what could cause our app to drag real slowly when
> a user tries to move the app. Since we don't have a caption bar (it's a
[quoted text clipped - 8 lines]
> Thanks,
> Eddie