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 方法,但是使用從 UpdateStyles 到 CreateParams 的呼叫不足。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,並將 RecreatingHandle 設定為 true
。This method also calls DestroyHandle and CreateHandle and sets RecreatingHandle to true
.