Control.RecreateHandle 方法

定义

强制为控件重新创建句柄。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.

适用于

另请参阅