Click here to Skip to main content
15,893,487 members
Articles / Programming Languages / C++

Middle Mouse Button (or Wheel) to Doubleclick (VC6)

Rate me:
Please Sign up or sign in to vote.
4.67/5 (17 votes)
26 Jul 2010CPOL2 min read 84.1K   2K   34  
This is a small but handy tool I'm using every day. It converts a middle mouse button click in to a left mouse button double click.
/////////////////////////////////////////////////////
// CSimpleTray - Simple tray icon implementation
//
// Copyright (c) 2003 - 3827 T1TAN 
// Copyright (c) 2003 - 3827 SprdSoft Inc.
//
// This source code is FREE.
//

#ifndef __CSIMPLETRAY_INCLUDE
#define __CSIMPLETRAY_INCLUDE


// custom window message
#define WM_TRAYNOTIFY WM_APP+1

class CSimpleTray  
{
public:
	CSimpleTray();
	virtual ~CSimpleTray();
	
	void Show();
	void Hide();

	void SetIcon( HICON hIcon );
	void SetTooltip( LPCTSTR lpTooltip );
			
private:
	BOOL m_bEnabled;
	HICON m_hIcon;
	NOTIFYICONDATA m_nid;
	CString m_strTooltip;
};

#endif // __CSIMPLETRAY_INCLUDE

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)


Written By
Software Developer (Senior)
Switzerland Switzerland
programmer and software junkie since 1991 zurich switzerland

Comments and Discussions