PDA

Click to See Complete Forum and Search --> : SetPixel API???


May 4th, 2000, 05:16 AM
I know I've asked this bfore but I never got a clear answer.
When you use the SetPixel method, how do you make it so that the pixels don't disappear when you draw on an hDC??

V(ery) Basic
May 5th, 2000, 12:37 AM
Set the .AutoRedraw to true and then use .Refresh to show
the pixel

:D

About the only thing I know :( ...

kedaman
May 5th, 2000, 02:18 AM
Another bonus question (and its hard)

How do i make it with foreign applications withour having it remove the points?

May 5th, 2000, 03:08 AM
Very Basic> But when the AutoRedraw is set to true, nothing appears at all. Is this suppose to happen? If I put the Refresh command after the setpixel, would the pixel not disappear then?

Sam Finch
May 5th, 2000, 07:48 PM
what exactly are you doing, getting it to work for a picture box is much easier than getting it to work for a form in another app.


Ked, I've told you, you need to subclass the other window, I think I might give up on doing this in pure VB, you'll have to learn C++ if you want to do this.

unless there's something in VB7 but that's still at least a year away.

kedaman
May 5th, 2000, 08:05 PM
I'm going to wait for VB7!!! But also i'm going to learn some C starting at autumn, when im going to Åbo academy, and also Sam, i won't need to work to get money hehe

May 5th, 2000, 09:19 PM
Even when I draw on a picture box, this same problem occurs.

May 5th, 2000, 10:16 PM
Wait, nevermind, I used the refresh command and it works so don't worry about me :)

kedaman
May 5th, 2000, 10:48 PM
Sam, I thought you was working on this problem?

Sam Finch
May 5th, 2000, 11:11 PM
yeah I was, I found out that none of the Ideas I had worked.

It's not really an easy thing to do.