Re: ActiveX control draws outside of it's window when IE scrolls?
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Wed, 12 Oct 2005 17:27:52 -0400
Buddy Smith <BuddySmith@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>> Bad idea, the latter one. Windowing and GDI systems are not
>> thread-safe, windowing is also thread-affine. You should do your
>> painting from the main UI thread. Prepare an off-screen bitmap in a
>> worker thread if you want, but BitBlt it to the screen on the UI
>> thread.
>
> Unfortunately I need to paint whenever a new image is available.
Post yourself a user-defined message. In the UI thread, in response to
this message, grab the DC with GetDC and paint to your heart's content.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- References:
- Re: ActiveX control draws outside of it's window when IE scrolls?
- From: Igor Tandetnik
- Re: ActiveX control draws outside of it's window when IE scrolls?
- Prev by Date: Re: ActiveX control draws outside of it's window when IE scrolls?
- Next by Date: Re: CoCreateInstance returns 8000401a when no user logged into the
- Previous by thread: Re: ActiveX control draws outside of it's window when IE scrolls?
- Next by thread: Re: CoCreateInstance returns 8000401a when no user logged into the
- Index(es):
Relevant Pages
|