?
Solved

REPAINT HELP!!!

Posted on 2003-03-05
2
Medium Priority
?
230 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Make the most of your online learning experience.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Progress
Suggested Courses

777 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