Re: update window or invalidate or something

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Scott McPhillips [MVP] (scottmcp_at_mvps.org.nothere)
Date: 05/17/04

  • Next message: John: "Re: CWinApp::SetRegistryKey"
    Date: Mon, 17 May 2004 08:28:36 -0500
    
    

    Janiv Ratson wrote:

    > Thanks all.
    > As U can C I M a newbie ...
    > But I tried using the timer, the problem was that the dialog did not get any
    > message, including WM_TIMER, so I couldn't use this method.
    > I'd really appreciate any help, but I think it is not a trivial task to make
    > both the MDI and the progress bar dialog repainted parallely.
    > It took me some time to figure that solution (it is based on a solution for
    > the same problem, which I got in this news group).
    >
    > A sample will be great help, also any kinda help,
    > Thanks again,
    > Janiv.

    Timers are very simple. You can make it work. Call SetTimer to start
    it (in the dialog OnInitDialog) and use the IDE/wizard to add a WM_TIMER
    message handler in the dialog. If you don't get the WM_TIMER message
    then (again) I would guess that you are still looping instead of
    returning so you can process messages. Comment out your processing,
    remove your attempt at a message loop. I.e. get the basic framework
    working, then add some processing on each WM_TIMER message.

    -- 
    Scott McPhillips [VC++ MVP]
    

  • Next message: John: "Re: CWinApp::SetRegistryKey"

    Relevant Pages

    • Re: update window or invalidate or something
      ... Janiv Ratson wrote: ... > As U can C I M a newbie ... ... > But I tried using the timer, the problem was that the dialog did not get any ... which I got in this news group). ...
      (microsoft.public.vc.mfc)
    • Newbie with a timer question
      ... so I am a newbie to java. ... I am trying to set up a timer that opens a new browser window every ... public class Reminder { ...
      (comp.lang.java)
    • Re: Redundant SUP720s single chassis
      ... Negative, not yet atleast. ... This guy I got is either a newbie or a part ... timer, piss pooor communications from him. ...
      (comp.dcom.sys.cisco)
    • Re: Windows Service : Timer - Should it work ???
      ... I am soldiering on with the other timer ... classes now and having not much more success. ... Regards - Mr Newbie ...
      (microsoft.public.dotnet.languages.vb)