HwndSource.CreateHandleRef Metodo

Definizione

Ottiene l'handle della finestra per l'oggetto HwndSource. L'handle della finestra viene incluso in un pacchetto come parte di una HandleRef struttura.

public:
 System::Runtime::InteropServices::HandleRef CreateHandleRef();
public System.Runtime.InteropServices.HandleRef CreateHandleRef();
member this.CreateHandleRef : unit -> System.Runtime.InteropServices.HandleRef
Public Function CreateHandleRef () As HandleRef

Valori restituiti

Struttura che contiene l'handle della finestra per questo HwndSourceoggetto .

Commenti

È possibile usare l'handle ottenuto da CreateHandleRef per fare riferimento HwndSource al da codice Win32. Usare l'handle per operazioni quali la gestione dei messaggi e il comportamento della finestra.

Per ottenere solo l'handle, usare Handle.

Si applica a

Vedi anche