Getting Desktop DC
Finally finish my screen capture program yesterday night. Now have to go back to the code to clean up some rubbish and refactor certain code base.
Thanks to one on my friend who pointed out to me that in order to get the desktop DC that you can draw on it, you have to use
GetDC(0)
or in managed code use
GetDC(IntPtr.Zero)
instead of the normal
GetDC(GetDesktopWindow())
Labels: programming
0 Comments:
Post a Comment
<< Home