?
Solved

REPAINT HELP!!!

Posted on 2003-03-05
2
Medium Priority
?
236 Views
Last Modified: 2010-04-17
I am using MFC and wish to know how to 'repaint' each object on the screen of my application, becuase my aplication processes information in the background i cannot go to another program without my program loosing focus as it were, any help would be welcome.
0
Comment
Question by:Neo1
2 Comments
 
LVL 10

Accepted Solution

by:
substand earned 150 total points
ID: 8075102
MFC should have created several classes for you. Say your project name was "proj", then MFC created a class called "projView" whose implementation is in "projView.cpp".

You need to edit a method in that file called "OnDraw"

it appears like:

void projView::OnDraw(CDC* pDC)
{
     projDoc* pDoc = GetDocument();
     ASSERT_VALID(pDoc);
     // TODO: add draw code for native data here
     

     


}

I think you need to redraw all your info in that function.
0
 

Author Comment

by:Neo1
ID: 8549058
Excellent thanks
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
No other job is as rewarding and demanding as building an iPhone app is. It is not really in the hands of the developer for the success of an iPhone app. Many factors operate jointly for every iOS application's success in the market.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Simple Linear Regression

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question