|
///////////////////////////////////////////////////////////////
//
// MouseGesturesCfgDlg.h
//
// Created: 13/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 __MOUSEGESTURESCFGDLG_H_ECFC3B57_0B45_4670_9051_5619D45AFBEC_
#define __MOUSEGESTURESCFGDLG_H_ECFC3B57_0B45_4670_9051_5619D45AFBEC_
#include "GestureMapPage.h"
#include "AboutPage.h"
#include "Version.h"
#include "UserActionPage.h"
#include "TrailsPage.h"
#include "OSUtils.h"
class MouseGesturesCfgDlg :
public CPropertySheetImpl< MouseGesturesCfgDlg >
{
private:
typedef CPropertySheetImpl< MouseGesturesCfgDlg > Base;
// not implemented
private:
MouseGesturesCfgDlg( const MouseGesturesCfgDlg & );
MouseGesturesCfgDlg & operator = ( const MouseGesturesCfgDlg & );
public:
MouseGesturesCfgDlg( HWND hWndParent = NULL ) :
Base( _T( "Mouse Gestures" ), 0, hWndParent ),
m_gesturePage(),
m_userActionPage(),
m_trailsPage(),
m_aboutPage()
{
AddPage( m_gesturePage );
AddPage( m_userActionPage );
if( OSUtils::IsNT4() == false )
{
AddPage( m_trailsPage );
}
AddPage( m_aboutPage );
m_psh.dwFlags |= 0x02000000; // PSH_NOCONTEXTHELP;
}
BEGIN_MSG_MAP( MouseGesturesCfgDlg )
MESSAGE_HANDLER( WM_COMMAND, OnCommand )
MESSAGE_RANGE_HANDLER( WM_KEYFIRST, WM_KEYLAST, OnKeyMessage )
END_MSG_MAP()
private:
LRESULT OnCommand( UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled )
{
return Base::OnCommand( uMsg, wParam, lParam, bHandled );
}
LRESULT OnKeyMessage( UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled )
{
bHandled = TRUE;
return 1;
}
private:
GestureMapPage m_gesturePage;
UserActionPage m_userActionPage;
TrailsPage m_trailsPage;
AboutPage m_aboutPage;
};
#endif // __MOUSEGESTURESCFGDLG_H_ECFC3B57_0B45_4670_9051_5619D45AFBEC_
|
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 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
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.