Thread: MFC Dialog App Screen Refresh Question

  1. #1
    Registered User
    Join Date
    Oct 2002

    MFC Dialog App Screen Refresh Question

    Greetings all, I have created a Dialog based MFC application that connects to the registry on remote machines and make a few changes. I have created a single command button that runs all the reg changes. The reg changes take some time ( about 5 mins ) and during that time the dialog screen is never repainted. Is there a function i can call to force a repaint after each reg change?

    Thanks for your time.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    The reason why it isnt repainting is that the window's thread is busy doing whatever registry editing task you have given it.....You might want to consider moving the registry work to a seperate thread........that will free up your GUI to do whatever (reporting back progress...etc)

  3. #3
    Registered User
    Join Date
    Nov 2001
    Correct. One solution is a worker thread.


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WIndows programming?
    By hostensteffa in forum Windows Programming
    Replies: 7
    Last Post: 06-07-2002, 08:52 PM
  2. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM
  3. Dialog Window Initial Location :: MFC
    By kuphryn in forum C++ Programming
    Replies: 1
    Last Post: 04-06-2002, 10:34 AM
  4. Dialog app interface with web page...
    By Unregistered in forum Windows Programming
    Replies: 5
    Last Post: 01-29-2002, 08:41 PM
  5. just a quick clear screen question...
    By bobthefish3 in forum C Programming
    Replies: 6
    Last Post: 12-17-2001, 02:51 PM