Results 1 to 4 of 4

Thread: Refresh Window

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    I am using graphical methods(BitBlt) to draw some pictures on a form. The form is in an standard exe while the method is being called from an ActiveX Dll. The problem is that I want to refresh the target window every time after a bitblt method occurs. I have tried using UpdateWindow and RedrawWindow, but it was of no help(The methods have to be called from the dll).

  2. #2

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    I am trying to copy picture from a source in the dll to the main exe using bitblt. after every bitblt operation ,I need to refresh the destination window so that the result of the bitblt should be displayed immediately.

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    You don't need to refresh -- as soon as it's been blitted the image will appear there. Refreshing the window will cause it to redraw itself, wiping out the recently-blitted image.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    It isn't showing by itself. I have set the autoredraw property to true.

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