2007-03-23 22:26:35 +00:00
|
|
|
//#define WIN32_LEAN_AND_MEAN
|
2010-12-30 20:10:48 +00:00
|
|
|
|
|
|
|
// Required for Win98/ME support:
|
|
|
|
// . See: http://support.embarcadero.com/article/35754
|
|
|
|
// . "GetOpenFileName() fails under Windows 95/98/NT/ME due to incorrect OPENFILENAME structure size"
|
|
|
|
#define _WIN32_WINNT 0x0400
|
2006-06-26 16:59:48 +00:00
|
|
|
|
|
|
|
// Mouse Wheel is not supported on Win95.
|
|
|
|
// If we didn't care about supporting Win95 (compile/run-time errors)
|
2010-02-14 21:11:26 +00:00
|
|
|
// we would just define the minimum windows version to support.
|
2006-06-26 16:59:48 +00:00
|
|
|
// #define _WIN32_WINDOWS 0x0401
|
|
|
|
#ifndef WM_MOUSEWHEEL
|
|
|
|
#define WM_MOUSEWHEEL 0x020A
|
|
|
|
#endif
|
|
|
|
|
2006-02-27 18:29:38 +00:00
|
|
|
// Not needed in VC7.1, but needed in VC Express
|
|
|
|
#include <tchar.h>
|
|
|
|
|
2006-02-25 20:50:29 +00:00
|
|
|
#include <crtdbg.h>
|
|
|
|
#include <dsound.h>
|
|
|
|
#include <dshow.h>
|
|
|
|
|
|
|
|
#include <math.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <time.h>
|
2006-06-26 16:59:48 +00:00
|
|
|
|
2006-02-25 20:50:29 +00:00
|
|
|
#include <windows.h>
|
2006-06-26 16:59:48 +00:00
|
|
|
#include <winuser.h> // WM_MOUSEWHEEL
|
2006-02-25 20:50:29 +00:00
|
|
|
#include <commctrl.h>
|
|
|
|
#include <ddraw.h>
|
|
|
|
#include <htmlhelp.h>
|
2010-02-14 21:11:26 +00:00
|
|
|
#include <assert.h>
|
2006-02-25 20:50:29 +00:00
|
|
|
|
2014-08-14 19:29:01 +00:00
|
|
|
#include <algorithm>
|
|
|
|
#include <map>
|
2010-01-03 18:43:08 +00:00
|
|
|
#include <queue>
|
|
|
|
#include <vector>
|
|
|
|
|
2014-08-20 21:40:48 +00:00
|
|
|
// SM_CXPADDEDBORDER is not supported on 2000 & XP:
|
|
|
|
// http://msdn.microsoft.com/en-nz/library/windows/desktop/ms724385(v=vs.85).aspx
|
|
|
|
#ifndef SM_CXPADDEDBORDER
|
|
|
|
#define SM_CXPADDEDBORDER 92
|
|
|
|
#endif
|
|
|
|
|
2014-08-13 20:30:35 +00:00
|
|
|
#define USE_SPEECH_API
|