Re: update window or invalidate or something
From: Scott McPhillips [MVP] (scottmcp_at_mvps.org.nothere)
Date: 05/17/04
- Previous message: Janiv Ratson: "Re: update window or invalidate or something"
- In reply to: Janiv Ratson: "Re: update window or invalidate or something"
- Messages sorted by: [ date ] [ thread ]
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]
- Previous message: Janiv Ratson: "Re: update window or invalidate or something"
- In reply to: Janiv Ratson: "Re: update window or invalidate or something"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|