StrokesPlus.net
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
sunnyabcd  
#1 Posted : Tuesday, June 9, 2020 7:08:31 AM(UTC)
sunnyabcd

Rank: Member

Reputation:

Groups: Approved
Joined: 4/9/2020(UTC)
Posts: 22

Thanks: 8 times
Hi, Rob and all
I use mouse wheel events, it works well except in the UWP programs.
e.g. : snip & Sketch , notepads( uwp program downloa from the microsoft store)
in these uwp programs , the mouse whell can not work.

the codes are :
//Default, pass mouse wheel message onto the original control
wheel.Control.PostMessage(host.cast(uint, 0x020A), new IntPtr(wheel.WParam), new IntPtr(wheel.LParam));
Rob  
#2 Posted : Friday, June 12, 2020 12:42:46 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 667
United States

Thanks: 13 times
Was thanked: 149 time(s) in 130 post(s)
That's an old piece of code which is not recommended. Use this instead:

Code:
sp.MouseWheel(wheel.Point, false, wheel.Delta);
thanks 1 user thanked Rob for this useful post.
sunnyabcd on 6/12/2020(UTC)
sunnyabcd  
#3 Posted : Friday, June 12, 2020 8:30:27 PM(UTC)
sunnyabcd

Rank: Member

Reputation:

Groups: Approved
Joined: 4/9/2020(UTC)
Posts: 22

Thanks: 8 times
Originally Posted by: Rob Go to Quoted Post
That's an old piece of code which is not recommended. Use this instead:

Code:
sp.MouseWheel(wheel.Point, false, wheel.Delta);


Thanks , Rob, this works well.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.