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,並將 RecreatingHandle 設定為 trueThis method also calls DestroyHandle and CreateHandle and sets RecreatingHandle to true.

適用於

另請參閱