-
August 29th, 2011, 09:49 AM
#1
GetDC not calculating toolbar offset
I have an app with a floating / docking toolbar. This is a pretty big program. Recently I've added a new function that comes off of the toolbar. This involves some screen draws and screen captures. However, when I do a
pDC = GetDC();
and then
pDC->MoveTo(p1.x, p1.y);
pDC->LineTo(p2.x, p2.y);
the drawing is off, on the Y axis by the height of the toolbar! In other words, the offset of the toolbar to the screen is not being calculated. This is only happening in the 'new function'.
Anybody have any ideas (other than adding 60 to the Y of every call)?
Thanks!
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
|