Hi,
The problem is, that after i draw my stuff on the device using Direct3D, the painting even in Window Mode, repaint the Form on my Drawings....I found a few solutions, each one have its own disadvantages:
1. overriding the paint event:
protected override void WndProc(ref Message m)
(if anyone interested i can show how its done)
but then when i try some Surface StrechRectangle things, it dosen;t draw them for me on the screen.
2. I tried to use:
this.SetStyle(ControlStyles.UserPaint, true);
or
this.SetStyle(ControlStyles.AllPaitningInWmPaint, true);
or both of them together.
but then i get the screen to flicker much, or the problem is not solved.
Any ideas?
I dont want to have a loop the redraws again the whole buffer all the time.
Thanks, Leonardo
The problem is, that after i draw my stuff on the device using Direct3D, the painting even in Window Mode, repaint the Form on my Drawings....I found a few solutions, each one have its own disadvantages:
1. overriding the paint event:
protected override void WndProc(ref Message m)
(if anyone interested i can show how its done)
but then when i try some Surface StrechRectangle things, it dosen;t draw them for me on the screen.
2. I tried to use:
this.SetStyle(ControlStyles.UserPaint, true);
or
this.SetStyle(ControlStyles.AllPaitningInWmPaint, true);
or both of them together.
but then i get the screen to flicker much, or the problem is not solved.
Any ideas?
I dont want to have a loop the redraws again the whole buffer all the time.
Thanks, Leonardo