What would cause a window to drag realy slowely?

  • Thread starter Thread starter Eddie Berman
  • Start date Start date
E

Eddie Berman

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
 
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 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;
}
///
 
Back
Top