UI 互作
若要使用 UI 互作 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对应的 DisplayId(如果 hmonitor 参数有效)。 |
GetIconFromIconId 获取对应于指定 IconId的 HICON;如果 iconId 参数有效,并且系统具有表示图标的 HICON。 |
GetIconIdFromIcon 获取对应于指定 HICON的 IconId(如果 hicon 参数有效)。 |
GetMonitorFromDisplayId 获取与指定 DisplayId对应的 HMONITOR,如果 displayId 参数有效,并且系统具有表示显示监视器的 HMONITOR。 |
GetRenderingDevice |
GetWindowFromWindowId 获取对应于指定 WindowId的窗口句柄(HWND),如果 windowId 参数有效,并且系统具有表示窗口的 HWND。 |
GetWindowIdFromWindow 获取与指定窗口句柄(HWND)对应的 WindowId(如果 hwnd 参数有效)。 |
OnDirectMessage 处理键盘输入消息,以便对具有当前焦点的元素进行预翻译处理。 |
OnTreeMessage 处理键盘输入消息,以便对没有当前焦点的元素进行预翻译处理。 |
Resize |
ResumeDraw |
滚动 |
SetPreTranslateHandler 设置用于键盘输入处理的预传输处理程序。 |
SetRenderingDevice |
SuspendDraw |
TryRedirectForManipulation |