Results 1 to 10 of 10

Thread: SetPixel API???

  1. #1
    Guest
    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??

  2. #2
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    Set the .AutoRedraw to true and then use .Refresh to show
    the pixel



    About the only thing I know ...
    Courgettes.

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Another bonus question (and its hard)

    How do i make it with foreign applications withour having it remove the points?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  4. #4
    Guest
    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?

  5. #5
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    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.

  6. #6
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  7. #7
    Guest
    Even when I draw on a picture box, this same problem occurs.

  8. #8
    Guest
    Wait, nevermind, I used the refresh command and it works so don't worry about me

  9. #9
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Sam, I thought you was working on this problem?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  10. #10
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    yeah I was, I found out that none of the Ideas I had worked.

    It's not really an easy thing to do.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width