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

備註

每當新控制項需要參數時,就會呼叫UpdateStyles CreateParams 方法,但使用RecreateHandle的呼叫不足。The RecreateHandle method is called whenever parameters are needed for a new control, but using a call from UpdateStyles to CreateParams is insufficient. 這個方法也會DestroyHandle呼叫CreateHandle和, RecreatingHandletrue將設為。This method also calls DestroyHandle and CreateHandle and sets RecreatingHandle to true.

適用於

另請參閱