Quote Originally Posted by VladimirF View Post
What window are you drawing on? What is its relationship with toolbar window?
My guess is - you are drawing on the wrong window.

I'm pretty sure I'm drawing to the right window. I've also tried

pDC = GetWindowDC();

with the same problems.


How would I know if I'm drawing to the wrong window? It seems to be the same window. I can move it around and stuff. Also, if I move the tool bar from the top of the window to the bottom of the window the drawing matches exactly. All my 'new' draw calls are off by exactly the height of the toolbar.