Replies: 2 comments 1 reply
-
See : https://devblogs.microsoft.com/oldnewthing/20190530-00/?p=102529 (you must include the right header...) |
Beta Was this translation helpful? Give feedback.
1 reply
-
Could "AI" be used to scan the code to include the necessary implement headers? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm developing an apllication in WinUI 3 and C++, but I'm stuck with a problem, but I think it must be something simple. I try to get the mouse position in the event OnPointerPressed. Here is my code for the handler function:
void MyWindow:OnPointerPressed(IInspectable const& sender, PointerRoutedEventArgs const& e)
{
auto tb = sender.try_as();
if (!tb) return;
}
I assign the event over a TextBlock and try to get the coordinates of muse click relative to that TextBlock, but this code doesn't compile. They tell me an error in the call to pp.Position(): C3779 'winrt::impl::consume_Windows_UI_Input_IPointerPointwinrt::Windows::UI::Input::IPointerPoint::Position': Can't use a function returning 'auto' before being defined'
Maybe it is simple, but I can't see how to get click position.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions