Re: Win32dib?

new topic     » goto parent     » topic index » view thread      » older message » newer message
doncole2009 said...

Thank you Derek,

Maybe if I said what I'm trying to do.

I want to repaint the window everytime I move the mouse.

But I don't want to repaint the whole window (#1) only a small portion of it.

I suppose this would require another window or bitmap or something.

I don't want any border on the second window.

I want it to look like all one window.

The second window will change size every time I move the mouse.

TIA.

Don Cole

Is the following relevant? It's not involving TWO windows, just one window with only part repainted:

[proc]
repaintRect ( window, x1, y1, x2, y2 )
Force window to be partially repainted.
Category: Graphics

This sends repaints at the specified portion of the window with the background color, erasing that portion of it. It then triggers an Paint event for that window, passing the erased area as parameters.

Example:

repaint only a portion of MyWindow
repaintRect( myWindow, 1, 1, 10, 10 )

If that doesn't do what you want, then a child window, positoned and sized as you wish, with style { WS_CHILD } should work, I think.

dan

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

Search



Quick Links

User menu

Not signed in.

Misc Menu