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 ()

注解

只要新控件需要参数,但使用UpdateStylesCreateParams的调用就会调用方法。RecreateHandleThe RecreateHandle method is called whenever parameters are needed for a new control, but using a call from UpdateStyles to CreateParams is insufficient. 此方法还调用DestroyHandleCreateHandle ,并RecreatingHandletrue设置为。This method also calls DestroyHandle and CreateHandle and sets RecreatingHandle to true.

适用于

另请参阅