Why do you need to get a DC ? You can only draw in the OnPaint, and in it you need to declare
to create a DC. Drawing outside the OnPaint is simply the wrong way to do it.Code:CPaintDC dc(this);
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 7 of 7
Threaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |