UI Interop
若要使用 UI Interop API 進行開發,您需要這些標頭。
- winrt/microsoft.ui.interop.h
- microsoft.ui.interop.h
- microsoft.ui.composition.interop.h
- microsoft.ui.input.inputcursor.interop
- microsoft.ui.dispatching.interop
- microsoft.ui.input.inputpretranslatesource.interop
如需這項技術的程式設計指引,請參閱 管理應用程式視窗。
功能
BeginDraw |
ContentPreTranslateMessage 在將訊息分派至 TranslateMessage 和 DispatchMessage 函式之前,先篩選視窗訊息。 |
CopySurface |
CreateGraphicsDevice |
CreateGraphicsDevice_Abi |
EndDraw |
GetDisplayIdFromMonitor 如果 hmonitor 自變數有效,則取得對應至指定 HMONITOR的 DisplayId。 |
GetIconFromIconId 取得對應至指定 IconId的 HICON,如果 iconId 自變數有效,而且系統具有代表圖標的 HICON。 |
GetIconIdFromIcon 取得對應至指定 HICON的 IconId,如果 hicon 自變數有效。 |
GetMonitorFromDisplayId 取得對應至指定 DisplayId的 HMONITOR,如果 displayId 自變數有效,而且系統具有代表顯示監視器的 HMONITOR。 |
GetRenderingDevice |
GetWindowFromWindowId 取得視窗句柄 (HWND),對應至指定的 WindowId,如果 windowId 自變數有效,而且系統具有代表視窗的 HWND。 |
GetWindowIdFromWindow 如果 hwnd 自變數有效,則取得對應至指定之視窗句柄的 WindowId。如果 hwnd 自變數有效,則為 。 |
OnDirectMessage 處理鍵盤輸入訊息,以在具有目前焦點的元素上預先轉譯處理。 |
OnTreeMessage 處理鍵盤輸入訊息,以在沒有目前焦點的元素上預先翻譯處理。 |
Resize |
ResumeDraw |
卷動 |
SetPreTranslateHandler 設定鍵盤輸入處理的預先傳輸處理程式。 |
SetRenderingDevice |
SuspendDraw |
TryRedirectForManipulation |