NI Home
Cart Cart | Help
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Mouse Wheel support

VERSION 4 Published

Created on: Mar 20, 2007 11:14 AM by Beta Community Content - Last Modified:  Mar 20, 2007 11:15 AM by Beta Community Content

This code shows how to use the Mouse Wheel to scroll text boxes.

This example shows how to use the mouse wheel to scroll text boxes. Of course, this code can beeasily adjusted to do other things with the mouse wheel, like scrolling trought the pictures of  a picture ring, graph zooming etc...
IMPORTANT NOTE: for WM_MOUSWHEEL to be defined, windows.h should be included, and _WIN32_WINNT should be at least defined to 0x0400. To make sure this last definition is made, open the Build Options window (can be found in the Options menu), and enter /D_WIN32_WINNT=0x0400 in the "Compiler Defines" field. 


REQUIREMENTS:
Application Software: LabWindows/CVI Base Package 8.0.1
Downloads:
Average User Rating
(0 ratings)




There are no comments on this document