المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Solving a repaint problem in VS2005 [modified]



C++ Programming
10-23-2009, 08:30 AM
http://www.barakasoft.com/script/Forums/Images/smiley_doh.gif I have solved this in non-wizard generated applications by creating a virtual window in CMAinWin::CMainWin just after Create() is called using CDC and CBitmap. I use CClientDC to dreate the device context. However when I try to add this code to the wizard generated code in what I think is the same part of the code it compiles and links fine but I an assertion error at run-time. I hope this makes sense, I have been pounding my head for 3 days now. I could just settle for what I have but I would really like to use the new stuff. this is in MFC single document.

Is CClientDC the proper class to use for getting the device context for the main window?

If so, where in the new project do I create my virtual window?
I've tried every where I could think of with the same results.

Thanks for any help

Terry S.

SimpleCodr

modified on Thursday, October 22, 2009 2:05 PM