Control.RecreateHandle Control.RecreateHandle Control.RecreateHandle Control.RecreateHandle Method

定义

强制为控件重新创建句柄。Forces the re-creation of the handle for the control.

protected:
 void RecreateHandle();
protected void RecreateHandle ();
member this.RecreateHandle : unit -> unit
Protected Sub RecreateHandle ()

注解

RecreateHandle只要参数所需的一个新控件,调用方法使用从调用,但UpdateStylesCreateParams是不够的。The RecreateHandle method is called whenever parameters are needed for a new control, but using a call from UpdateStyles to CreateParams is insufficient. 此方法也会调用DestroyHandleCreateHandle,并设置RecreatingHandletrueThis method also calls DestroyHandle and CreateHandle and sets RecreatingHandle to true.

适用于

另请参阅