MFC Dialog App Screen Refresh Question

This is a discussion on MFC Dialog App Screen Refresh Question within the Windows Programming forums, part of the Platform Specific Boards category; Greetings all, I have created a Dialog based MFC application that connects to the registry on remote machines and make ...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    1

    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.
    Scott

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    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
    Posts
    1,348
    Correct. One solution is a worker thread.

    Kuphryn

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, 09:52 PM
  2. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 10: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21