Can I use HBITMAP in another thread?

113 views Asked by At

If for example I used LoadImage() to load a bitmap from file in Thread A, can I use the returned HBITMAP in Thread B?

1

There are 1 answers

0
Jonathan Potter On BEST ANSWER

Yes you can, but remember a bitmap can only be selected into one DC at once. If you have two threads both drawing the same bitmap you'll need to coordinate access to it.