I believe you could use SelectObject for this.

Just to be sure though, what method are you using to get the bitmap into the buffer?