|
///////////////////////////////////////////////////////////////////////////////
//
// Tools.h : header file
//
// Author: Jean-Michel LE FOL
// Date: 04/12/2002
//
///////////////////////////////////////////////////////////////////////////////
#pragma once
///////////////////////////////////////////////////////////////////////////////
// Usefull macros
//
#define KEYDOWN(Key) ((GetKeyState(Key)&0x8000)!=0)
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
#define MMS_PAINT 0x0001
#define MMS_NCPAINT 0x0002
///////////////////
class CMouseMgr
{
public:
CMouseMgr ();
void Init (HWND hWnd, WORD wFlags = MMS_PAINT);
bool MouseOver () const;
bool OnMouseMove (HWND hTrack = NULL);
bool OnMouseOut (HWND hTrack = NULL);
protected:
HWND m_hWnd;
HWND m_hTrack;
WORD m_wFlags;
bool m_bOver;
};
|
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.
Jean-Michel LE FOL is a GraphTalk product architect.
GraphTalk is a set of products which cover the whole scope of the development process. GraphTalk is used by the main insurance compagnies over the world.
The development team is currently based in France near Paris.