source: trunk/classes/mm-progs/mmfind/mmfind.h@ 150

Last change on this file since 150 was 144, checked in by gyoung, 19 months ago

Fix compiler warnings

File size: 1.8 KB
Line 
1/* Bitmap IDs for the play controls */
2#define IDBMP_PLAY 1
3#define IDBMP_STOP 2
4
5/* Fallbacks if strings can't be loaded */
6#define TEXT_TYPEAUDIO "Audio"
7#define TEXT_TYPEIMAGE "Image"
8#define TEXT_TYPEVIDEO "Video"
9#define TEXT_INFOTEXT "Play time:\t%02d:%02d\n\nSamplerate:\t%d\n\nBits per sample:\t%d\n\nChannels:\t%d"
10/* Max. length of the string holding all our extensions */
11#define EXT_STRING_LENGTH 300
12
13/* Media types we support for searching */
14#define NUMMEDIATYPES 3
15#define MT_AUDIO 0
16#define MT_IMAGE 1
17#define MT_VIDEO 2
18#define MT_UNKNOWN 100
19
20#define MMAUDIO_PLAYER_CREATED 0x0001
21#define PLAY_FILE 0x0001
22#define STOP_TRACK 0x0002
23#define PAUSE_TRACK 0x0003
24
25#ifndef OPEN_DEFAULT
26/* Open views for the wpOpen() method */
27 #define OPEN_UNKNOWN -1
28 #define OPEN_DEFAULT 0
29 #define OPEN_CONTENTS 1
30 #define OPEN_SETTINGS 2
31 #define OPEN_HELP 3
32 #define OPEN_RUNNING 4
33 #define OPEN_PROMPTDLG 5
34 #define OPEN_PALETTE 121 /*SPLIT*/
35 #define OPEN_USER 0x6500
36#endif
37
38/* Timer IDs */
39#define TIMERID_SELECTION 1
40#define IDTIMER_PLAY 2
41
42/* Defines used for audio playing */
43#define MMAUDIO_PLAYER_CREATED 0x0001
44#define PLAY_FILE 0x0001
45#define STOP_TRACK 0x0002
46#define PAUSE_TRACK 0x0003
47
48/* Function prototypes */
49#ifdef DEBUG
50void HlpWriteToTrapLog(const char* chrFormat, ...);
51#endif
52
53BOOL HlpBuildMMProgIniFileName(char* chrProgname, char * chrBuffer, ULONG ulBufferSize);
54void freeResHandle(void);
55HMODULE queryResModuleHandle(char *chrExePath);
56void pmUsage(void);
57VOID DrawBitmap ( HWND hwnd );
58void showImageControls(HWND hwnd, BOOL bShow);
59
60MRESULT EXPENTRY bmpPreviewProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
Note: See TracBrowser for help on using the repository browser.