G
Galen Somerville
I'm doing something wrong. I made up a test app and put the ZIP file on my
website
http://home.surewest.net/galen/index.html under Downloads.
Basically I have a Panel that will get continuous updates and I don't want
any flicker. In the test app it sets up a mem map and sets it to Black.
When the Button is clicked it calls a routine that puts tick marks at top
and bottom. The tick marks do not show up.
Below is the Paint event. If I remark out the BitBlt and un-remark the
e.Graphics line, the tick marks show up. But I know from experience that
this method cause flicker when doing a lot of updates.
I would appreciate any help I can get.
Thanks
GalenS
Private Sub PictDraw_Paint(ByVal sender As Object, _
ByVal e As System.Windows.Forms.PaintEventArgs) Handles PictDraw.Paint
If bitmapflg Then
'e.Graphics.DrawImage(PictMap, e.ClipRectangle, e.ClipRectangle,
GraphicsUnit.Pixel)
BitBlt(PictDrawhDC, 0, 0, 715, 255, PicDrawhDC, 0, 0, SrcCopy)
End If
End Sub
website
http://home.surewest.net/galen/index.html under Downloads.
Basically I have a Panel that will get continuous updates and I don't want
any flicker. In the test app it sets up a mem map and sets it to Black.
When the Button is clicked it calls a routine that puts tick marks at top
and bottom. The tick marks do not show up.
Below is the Paint event. If I remark out the BitBlt and un-remark the
e.Graphics line, the tick marks show up. But I know from experience that
this method cause flicker when doing a lot of updates.
I would appreciate any help I can get.
Thanks
GalenS
Private Sub PictDraw_Paint(ByVal sender As Object, _
ByVal e As System.Windows.Forms.PaintEventArgs) Handles PictDraw.Paint
If bitmapflg Then
'e.Graphics.DrawImage(PictMap, e.ClipRectangle, e.ClipRectangle,
GraphicsUnit.Pixel)
BitBlt(PictDrawhDC, 0, 0, 715, 255, PicDrawhDC, 0, 0, SrcCopy)
End If
End Sub