August 29th, 2011, 09:49 AM
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();
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)?
Tags for this Thread
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!