Click here to Skip to main content
15,885,767 members
Articles / Desktop Programming / MFC

Control Center for Windows 2K and more extended

Rate me:
Please Sign up or sign in to vote.
4.55/5 (34 votes)
26 Jan 20046 min read 124.1K   1.5K   48  
Control Center for Windows 2K and more
#pragma once
#include "afxwin.h"
#include "afxcmn.h"


// CMouseProp dialog

class CMouseProp : public CPropertyPage
{
	DECLARE_DYNAMIC(CMouseProp)
protected:
	CBackdoorClDlg* Papa;
	// the double click time reqd
	CEdit m_DblClkTime;
	// set double click time
	CSpinButtonCtrl m_SetDblClick;
	// whether the buttons are awapped
	CButton m_SwapButtons;
	// the mouse speed
	CEdit m_MouseSpeed;
	// the mouse speed control
	CSpinButtonCtrl m_SpeedCtrl;
	// the mouse trails
	CEdit m_Trails;
	// the trail controller
	CSpinButtonCtrl m_TrailCtrl;
	// the number of line to scroll on wheel
	CEdit m_ScrollValue;
	// the acroll controller
	CSpinButtonCtrl m_SetScrl;
	// sanp to default button
	CButton m_SnaptoDef;
	// the mouse sonar
	CButton m_Sonar;
	// click lock enable
	CButton m_ClkLockEnable;
	// the time for the click lock
	CEdit m_ClickLock;
	// click lock control
	CSpinButtonCtrl m_ClkLockCtrl;
	// the click lock button
	CButton m_bnClickLock;

public:
	CMouseProp();
	virtual ~CMouseProp();

// Dialog Data
	enum { IDD = IDD_SETINFOMOUSE };

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

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnBnClickedSetdblclkspd();
	afx_msg void OnBnClickedSwapbuttons();
	afx_msg void OnBnClickedSetspeed();
	afx_msg void OnBnClickedSettrail();
	afx_msg void OnBnClickedSetscrlline();
	afx_msg void OnBnClickedSnaptodef();
	afx_msg void OnBnClickedMousesonar();
	afx_msg void OnBnClickedClicklock();
	afx_msg void OnBnClickedSetclklock();
	virtual BOOL OnSetActive();
};

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Engineer
India India
This is just a beginning. I’m yet to decide the distance I have to travel.
I’m a 2nd year B. Tech. Student and I’ve started Visual programming about a year ago. Lets hope I can continue that for the rest of 2 and a half more years.

Comments and Discussions