60 lines
1.5 KiB
C
60 lines
1.5 KiB
C
///////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// MODULE: MOUSINFO.H
|
|
//
|
|
// DESCRIPTION: Include file for the MousInfo.Exe Tool
|
|
//
|
|
//
|
|
// Copyright 1995 - 2000 Microsoft Corporation.
|
|
// All rights reserved
|
|
//
|
|
//
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
TCHAR szAppName[] = TEXT("MousInfo");
|
|
TCHAR szClassName[] = TEXT("MousInfoClass");
|
|
|
|
// Maximum # of chars in title bar
|
|
#define MAX_TITLE_LEN 44
|
|
|
|
// Index into Button Message Array
|
|
#define NO_MESSAGE 0
|
|
#define LBU 1 // Left Button Up
|
|
#define RBU 2 // Right Button Up
|
|
#define MBU 3 // Middle Button Up
|
|
#define LBD 4 // Left Button Down
|
|
#define RBD 5 // Right Button Down
|
|
#define MBD 6 // Middle Button Down
|
|
#define LB2 7 // Left Button Double Click
|
|
#define MB2 8 // Right Button Double Click
|
|
#define RB2 9 // Middle Button Double Click
|
|
#define MW 10 // Mouse Wheel
|
|
#define MH 11 // Mouse Hover
|
|
#define ML 12 // Mouse Leave
|
|
|
|
// Resource defines
|
|
#define MOUSINFO_ICON 102
|
|
|
|
#define IDM_MENU 0x0900
|
|
|
|
#define IDM_TRACK 0x1000
|
|
#define IDM_HOVER 0x1001
|
|
#define IDM_LEAVE 0x1002
|
|
|
|
#define IDM_ABOUT 0x2000
|
|
|
|
|
|
|
|
// Function Prototypes
|
|
int WINAPI WinMain(
|
|
__in HINSTANCE,
|
|
__in_opt HINSTANCE,
|
|
__in_opt LPSTR,
|
|
__in int);
|
|
|
|
LRESULT CALLBACK MainWindowProc(
|
|
HWND,
|
|
UINT,
|
|
WPARAM,
|
|
LPARAM);
|