Re: Registry entries

new topic     » goto parent     » topic index » view thread      » older message » newer message

Robert B Pilkington wrote:


> PS, to David Cuny or anybody else who can help: In Win32lib, is there a
> way to refresh just a part of the window? I'm making a stopwatch program
> as my first Win32 program, and I just want to refresh the time, not
> repaint the entire window, including the buttons.

Ooops. Sorry, not yet. The paint request actually sends coordinates of the
area to refresh, but as of right now, Win32Lib doesn't use it. The "refresh"
command just invalidates the whole window.

It shouldn't be too difficult to change the code to take the invalidated
region into account. I can't test it (I'm in Win3.1 land for the immediate
future), but you should be able to write your own routine to invalidate only
a section of the window, instead of the whole thing. The force an onPaint.
That should take care of it (I'd give more details, but I don't have the
Win32 help file available).

You might want to bug me in a week or so - when I (hopefully) have a new
drive, and Win95 on my machine again.

-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu