Win32Interop.GetWindowFromWindowId(WindowId) method
Reference
Definition
Namespace: Microsoft.UI
Gets the window handle that corresponds to the specified windowId, if the provided windowId is valid and the system has an HWND
that represents the window.
public static IntPtr GetWindowFromWindowId(WindowId windowId);
Parameters
windowId
WindowId
The identifier for the window.
Returns
The window handle that corresponds to the specified windowId, if the provided windowId is valid and the system has an HWND
that represents the window. Otherwise, null
.
Applies to
Product | Introduced in |
---|---|
WinUI 3 | Windows App SDK 1.0 |
See also
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.
Windows developer
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru