Click here to Skip to main content
12,454,965 members (50,853 online)
Click here to Skip to main content

Stats

904.9K views
13K downloads
233 bookmarked
Posted

Mouse Gestures for Internet Explorer

, 21 Sep 2005
Adding mouse gesture recognition to Internet Explorer.
MouseGestures.exe
MouseGestures.exe
src
gesture.weights
images
about.bmp
ClickLeftRight.bmp
ClickRightLeft.bmp
down.bmp
downarrow.bmp
downleft.bmp
downright.bmp
downup.bmp
exclamation.bmp
left.bmp
leftarrow.bmp
leftright.bmp
none.bmp
right.bmp
rightarrow.bmp
rightleft.bmp
up.bmp
uparrow.bmp
updown.bmp
upleft.bmp
upright.bmp
wheel.bmp
MouseGestures.rgs
MouseGestures
BrowserHelperObject.rgs
gesture.weights
images
about.bmp
ClickLeftRight.bmp
ClickRightLeft.bmp
down.bmp
downleft.bmp
downright.bmp
downup.bmp
left.bmp
none.bmp
right.bmp
up.bmp
updown.bmp
upleft.bmp
upright.bmp
wheel.bmp
MouseGestures.def
MouseGestures.dsp
MouseGesturesCfg.rgs
///////////////////////////////////////////////////////////////
//
// ExplorerListDlg.h
//
// Created: 17/07/2003
// Copyright (c) 2003 Ralph Hare (ralph.hare@ysgyfarnog.co.uk)
// All rights reserved.
//
// The code and information is provided "as-is" without
// warranty of any kind, either expressed or implied.
//
///////////////////////////////////////////////////////////////

#ifndef __EXPLORERLISTDLG_H_1F914A79_29C1_475D_9561_E9CE88404D1D_
#define __EXPLORERLISTDLG_H_1F914A79_29C1_475D_9561_E9CE88404D1D_

#include "resource.h"
#include <list>
#include "MouseTracker.h"

typedef std::list< HWND >   WindowList;

/**
 * A modeless dialog containing all the web browsers active
 * in the current desktop. This window needs to be modeless as
 * a modal dialog doesn't receive mouse up messages when the 
 * mouse is released outside of the client area. Implemented as a 
 * singleton, i.e. it's responsible for freeing it's own memory/resources.
 * Usage:
 * <code>ExplorerListDlg::Invoke( hWnd );</code>
 **/
class ExplorerListDlg : 
    public CDialogImpl< ExplorerListDlg >,
    private MouseTracker::Watcher
{
/**
 * Private constructor to prevent direct instantiation
 **/
private:
    ExplorerListDlg() {}

public:
    enum { IDD = IDD_EXPLORER_LIST };

    BEGIN_MSG_MAP( ExplorerListDlg )
        MESSAGE_HANDLER( WM_RBUTTONUP, OnRightButtonUp )
    END_MSG_MAP()

public:
/**
 * Invoke the modeless dialog. This method returns as soon as the
 * modless dialog has been displayed.
 **/
    static BOOL Invoke( HWND hWndParent );

private:
    HWND    Create( HWND hWndParent, LPARAM dwInitParam = NULL );

    LRESULT OnRightButtonUp( UINT, WPARAM, LPARAM, BOOL & );

// MouseTracker::Watcher
private:
    bool    OnMouseWheel( HWND hWnd, WORD flags, WORD delta, const POINT &pt );

private:
    WindowList      m_windowList;
    CListViewCtrl   m_listCtrl;
    MouseTracker    m_mouseTracker;
};

#endif // __EXPLORERLISTDLG_H_1F914A79_29C1_475D_9561_E9CE88404D1D_

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

Share

About the Author

Ralph Hare
Web Developer
United Kingdom United Kingdom
No Biography provided

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160826.1 | Last Updated 21 Sep 2005
Article Copyright 2003 by Ralph Hare
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid