Restored from previous forum. Originally posted by GPI.
Sometimes the window must be redraw. For Example, if the window size has changed and the programm change the positions of gadgets. Win98SE destroy the gadged in this case.
so easy redraw the window after the resizegadget():
rec.rect
getclientrect_(WindowID(0),@rec) ;Get the window-Size
invalidaterect_(WindowID(0),@rec,#true) ;add the complete size to the update-list (#True=earse the background)
updatewindow_(WindowID(0)) ;and update
PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB
Restored from previous forum. Originally posted by ebs.
GPI,
I think this is an easier away:
RedrawWindow_(WindowID(), 0, 0, #RDW_INVALIDATE)
You can use #RDW_ERASE | #RDW_INVALIDATE if you want to erase the background too.
Eric
Originally posted by GPI
Sometimes the window must be redraw. For Example, if the window size has changed and the programm change the positions of gadgets. Win98SE destroy the gadged in this case.
so easy redraw the window after the resizegadget():
rec.rect
getclientrect_(WindowID(),@rec) ;Get the window-Size
invalidaterect_(WindowID(),@rec,#true) ;add the complete size to the update-list (#True=earse the background)
updatewindow_(WindowID()) ;and update
PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB
Restored from previous forum. Originally posted by ebs.
GPI,
That's odd! The description of RedrawWindow() in the AllAPI API-Guide says Windows 95 or later, but it might be wrong. If you can, please try one more version and let me know the result: