Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / July 2004

Tip: Looking for answers? Try searching our database.

What would cause a window to drag realy slowely?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eddie Berman - 23 Jul 2004 22:06 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.