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 1:08:31 PM(UTC)
sunnyabcd

Rank: Member

Reputation:

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

Thanks: 8 times
Was thanked: 2 time(s) in 2 post(s)
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));
thanks 1 user thanked sunnyabcd for this useful post.
IvanYH on 10/7/2020(UTC)
Rob  
#2 Posted : Friday, June 12, 2020 6:42:46 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,349
United States
Location: Tampa, FL

Thanks: 28 times
Was thanked: 416 time(s) in 354 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 2 users thanked Rob for this useful post.
sunnyabcd on 6/13/2020(UTC), IvanYH on 10/7/2020(UTC)
sunnyabcd  
#3 Posted : Saturday, June 13, 2020 2:30:27 AM(UTC)
sunnyabcd

Rank: Member

Reputation:

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

Thanks: 8 times
Was thanked: 2 time(s) in 2 post(s)
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.
thanks 1 user thanked sunnyabcd for this useful post.
IvanYH on 10/7/2020(UTC)
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.