|
-
August 29th, 2011, 10:25 AM
#3
Re: GetDC not calculating toolbar offset
 Originally Posted by VladimirF
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|