Can I use HBITMAP in another thread?

142 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 best solutions below

0
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.