Posted on 2003-03-05
Medium Priority
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.
Question by:Neo1
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
LVL 10

Accepted Solution

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();
     // TODO: add draw code for native data here



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

Author Comment

ID: 8549058
Excellent thanks

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 …
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