Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Improve Zooming with Enhanced Mouse Wheels

, 19 Oct 2011 CPOL
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
public:
	CHiResScrollWheelDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_HIRESSCROLLWHEEL_DIALOG };

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


// Implementation
protected:
	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();
	DECLARE_MESSAGE_MAP()
public:
	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.

License

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

Share

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.

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