OnPaint() works differently between 2K and XP? (post again)

  • Thread starter Thread starter weixiang
  • Start date Start date
W

weixiang

Hi,

I wrote a progam, which pop up a form that with OnPaint() overrided. It
works great in XP but bad in 2K. In 2K, most of the form content will not
be displayed until I drag the form a little. And I set a breakpoint to the
OnPaint... The breakpoint was hit when the form popuped... But if I shrink
the VS.NET to make it can't overlap with the popup form, the form content is
still not displayed after the OnPaint() returned. If I move the form a
little, the content will be displayed all right even without the former
breakpoint reached.

I tried that in both .NET framework 1.1 and 1.0.

Is that a bug of .NET framework in Windows 2K? How can I avoid this
problem?

And I wrote a small test program
http://weixiang.nease.net/data/TestOnPaint.rar

Thank you very much,
Wei Xiang
 
Back
Top