CTRL+mouse wheel to zoom in/out

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

CTRL+mouse wheel to zoom in/out

Postby tashimaya » Fri Dec 12, 2014 8:00 am

I'm using cefclient from cef_binary_3.2171.1949_windows32.

Tests -> Zoom In / Out / Reset commands work very well. I would also like to add support for zooming with CTRL + mouse wheel. I can catch what key(s) are pressed in OnKeyEvent() but I don't have access to CefMouseEvent there. Could anybody give me some pointer as to how I should go about implement zooming with mouse please?

Many thanks
tashimaya
Techie
 
Posts: 36
Joined: Fri Oct 10, 2014 7:18 am

Re: CTRL+mouse wheel to zoom in/out

Postby gonzobrains » Mon Dec 22, 2014 7:13 pm

Please let me know if you find a solution to this because I would like to intercept mouse/key combinations in OnPreKeyEvent().
gonzobrains
Techie
 
Posts: 15
Joined: Tue Nov 04, 2014 11:44 am

Re: CTRL+mouse wheel to zoom in/out

Postby tashimaya » Tue Dec 23, 2014 9:19 am

Perhaps you can catch "WM_MOUSEWHEEL" in your WndProc()?

http://msdn.microsoft.com/en-gb/library ... 85%29.aspx
tashimaya
Techie
 
Posts: 36
Joined: Fri Oct 10, 2014 7:18 am


Return to Support Forum

Who is online

Users browsing this forum: Majestic-12 [Bot] and 40 guests