#pragma once

#ifdef __WATCOMC__
#pragma library("vgui.lib")
#endif

#ifdef __cplusplus
extern "C" {
#endif

//---------------------------------------------------------------------------//
#include "vgui/vguiwin.h"

typedef struct s_VGUIMBAR VGUIMBAR;
typedef struct s_VGUIMBARITEM VGUIMBARITEM;
typedef struct s_VGUIMBARITEMLIST VGUIMBARITEMLIST;

typedef enum
{
	VGUIMBAR_NORMAL = 1 << 0,
	VGUIMBAR_SEPARATOR = 1 << 1,
	VGUIMBAR_SUBMENY = 1 << 2,
	VGUIMBAR_EXTENDED = 1 << 3
} VGUIMBARFLAGS;

struct s_VGUIMBAR
{
	int handle,numitem;
	VGUIMBARITEM *list;
};

struct s_VGUIMBARITEM
{
	int handle,numitem;
	char caption[128];
	VGUIMBARITEMLIST *list;
};

struct s_VGUIMBARITEMLIST
{
	int handle;
	VGUIMBARFLAGS flags;
	char caption[128];
	VGUIMBARITEMLIST *sublist;
};

VGUIMBAR *vguimbar_create (void);
VGUIMBAR *vguimbar_dispose (VGUIMBAR *);
int vguimbar_insertbaritem (VGUIMBAR *mbar, int handle,char *caption);
int vguimbar_insertlistitem (VGUIMBAR *mbar,int itemhandle, int handle, char *caption,int spec);
void vguimbar_choice (int);



//---------------------------------------------------------------------------//
#ifdef __cplusplus
}
#endif


