[go: up one dir, main page]

Menu

[r104]: / in_vgm / trunk / common.h  Maximize  Restore  History

Download this file

34 lines (26 with data), 1.3 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef COMMON_H
#define COMMON_H
#include <windows.h>
#include "vgm.h" // VGM header
typedef unsigned short wchar; // For Unicode strings
#define MINGD3VERSION 0x100
#define REQUIREDGD3MAJORVER 0x100
#define MINVERSION 0x100
#define REQUIREDMAJORVER 0x100
char* PrintTime(char *s,double timeinseconds);
int IsURL(const char *url);
void OpenURL(HWND winamp_wnd, char *url, char *TempHTMLFile, int UseMB);
int FileSize(const char *filename);
struct TVGMHeader *ReadVGMHeader( gzFile *fh, BOOL needsGD3 );
struct TGD3Header *ReadGD3Header( gzFile *fh );
//-----------------------------------------------------------------
// GUI helpers
//-----------------------------------------------------------------
#define GETTRACKBARPOS( wnd, id ) SendDlgItemMessage( wnd, id, TBM_GETPOS, 0, 0 )
#define DISABLECONTROL( wnd, id ) EnableWindow( GetDlgItem( wnd, id ), FALSE )
#define ENABLECONTROL( wnd, id ) EnableWindow( GetDlgItem( wnd, id ), TRUE )
#define HIDECONTROL( wnd, id ) ShowWindow( GetDlgItem( wnd, id ), FALSE )
#define SETCONTROLENABLED( wnd, id, enabled ) EnableWindow( GetDlgItem( wnd, id ), enabled )
#define SETCHECKBOX( wnd, id, checked ) SendDlgItemMessage( wnd, id, BM_SETCHECK, checked, 0 )
void SetupSlider(HWND hDlg, int nDlgItem, int min, int max, int ticfreq, int position);
#endif