Quote Originally Posted by syg19 View Post
"class DownloadCommand : public Command" so I would think it's not a CWnd derived class..right?
How can we know it?
This class Command appears to be some non-Microsoft class, so I have no idea what it is.

But if it is not CWnd derived - then using either CDC::GetDC or ::GetDC API does not make any sense unless the correct HWND (window handle) is used (passed in ::GetDC API.