Click here to Skip to main content
11,706,979 members (58,577 online)
Click here to Skip to main content
Add your own
alternative version

Improve Zooming with Enhanced Mouse Wheels

, 19 Oct 2011 CPOL 20K 2.3K 27
How to give your users a better zooming experience with High Resolution Mouse Wheels.
// HiResScrollWheelDlg.h : header file

#pragma once

// CHiResScrollWheelDlg dialog
class CHiResScrollWheelDlg : public CDialog
// Construction
	CHiResScrollWheelDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data

	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

// Implementation
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	UINT m_nWheelDelta;
	UINT m_nTimeDelta;
	UINT m_nEventsPerClick;
	afx_msg void OnEnChangeEdit1();
	afx_msg void OnEnChangeEdit2();
	afx_msg void OnEnChangeEdit3();
	afx_msg void OnBnClickedApply();
	CButton m_btnApply;
	afx_msg void OnBnClickedExit();

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Stephen H Davis
Software Developer (Senior) Logitech Corporation
United States United States
Stephen lives in Fremont, CA with his wife and daughter and has programmed in C and C++ for a very long time.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150819.1 | Last Updated 19 Oct 2011
Article Copyright 2011 by Stephen H Davis
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid