Skip to content

DoRecreateWindow - cWinControl

Recreates a window

Type: Procedure

Syntax

Procedure DoRecreateWindow

Call Example

Send DoRecreateWindow

Description

Send the DoRecreateWindow message to destroy the window and build it again. This is an advanced procedure and you should only need to send this when you have changed window-styles that Windows requires to rebuild the control for. For example, if you were to build a Windows' progressbar, you cannot dynamically change the way the bar is drawn between smooth and segmented. So, you would need to change the window-style and send this method.