As Alex wrote:
Quote Originally Posted by Alex F
Test hBitmap value after SendMessage for NULL
Did you check it to be not NULL?