windres.h

来自「基于4个mips核的noc设计」· C头文件 代码 · 共 854 行 · 第 1/2 页

H
854
字号
#define SBS_SIZEGRIP	(0x10L)#define SBS_TOPALIGN	(0x2L)#define SBS_VERT	(0x1L)#define SS_BITMAP	(0xeL)#define SS_BLACKFRAME	(0x7L)#define SS_BLACKRECT	(0x4L)#define SS_CENTER	(0x1L)#define SS_CENTERIMAGE	(0x200L)#define SS_ENHMETAFILE	(0xfL)#define SS_ETCHEDFRAME	(0x12L)#define SS_ETCHEDHORZ	(0x10L)#define SS_ETCHEDVERT	(0x11L)#define SS_GRAYFRAME	(0x8L)#define SS_GRAYRECT	(0x5L)#define SS_ICON	(0x3L)#define SS_LEFT	(0L)#define SS_LEFTNOWORDWRAP	(0xcL)#define SS_NOPREFIX	(0x80L)#define SS_NOTIFY	(0x100L)#define SS_OWNERDRAW	(0xdL)#define SS_REALSIZEIMAGE	(0x800L)#define SS_RIGHT	(0x2L)#define SS_RIGHTJUST	(0x400L)#define SS_SIMPLE	(0xbL)#define SS_SUNKEN	(0x1000L)#define SS_USERITEM     (0xaL)#define SS_WHITEFRAME	(0x9L)#define SS_WHITERECT	(0x6L)#define DS_3DLOOK	(0x4L)#define DS_ABSALIGN	(0x1L)#define DS_CENTER	(0x800L)#define DS_CENTERMOUSE	(0x1000L)#define DS_CONTEXTHELP	(0x2000L)#define DS_CONTROL	(0x400L)#define DS_FIXEDSYS	(0x8L)#define DS_LOCALEDIT	(0x20L)#define DS_MODALFRAME	(0x80L)#define DS_NOFAILCREATE	(0x10L)#define DS_NOIDLEMSG	(0x100L)#define DS_SETFONT	(0x40L)#define DS_SETFOREGROUND	(0x200L)#define DS_SYSMODAL	(0x2L)/* A dialog control.  */struct dialog_control{  /* Next control.  */  struct dialog_control *next;  /* ID.  */  unsigned short id;  /* Style.  */  unsigned long style;  /* Extended style.  */  unsigned long exstyle;  /* X coordinate.  */  unsigned short x;  /* Y coordinate.  */  unsigned short y;  /* Width.  */  unsigned short width;  /* Height.  */  unsigned short height;  /* Class name.  */  struct res_id class;  /* Associated text.  */  struct res_id text;  /* Extra data for the window procedure.  */  struct rcdata_item *data;  /* Help ID.  Only used in an extended dialog.  */  unsigned long help;};/* Control classes.  These can be used as the ID field in a struct   dialog_control.  */#define CTL_BUTTON	0x80#define CTL_EDIT	0x81#define CTL_STATIC	0x82#define CTL_LISTBOX	0x83#define CTL_SCROLLBAR	0x84#define CTL_COMBOBOX	0x85/* A fontdir resource is a list of fontdir structures.  */struct fontdir{  struct fontdir *next;  /* Index of font entry.  */  short index;  /* Length of font information.  */  unsigned long length;  /* Font information. */  const unsigned char *data;};/* A group_icon resource is a list of group_icon structures.  */struct group_icon{  /* Next icon in group.  */  struct group_icon *next;  /* Width.  */  unsigned char width;  /* Height.  */  unsigned char height;  /* Color count.  */  unsigned char colors;  /* Planes.  */  unsigned short planes;  /* Bits per pixel.  */  unsigned short bits;  /* Number of bytes in cursor resource.  */  unsigned long bytes;  /* Index of cursor resource.  */  unsigned short index;};/* A menu resource.  */struct menu{  /* List of menuitems.  */  struct menuitem *items;  /* Help ID.  I don't think there is any way to set this in an rc     file, but it can appear in the binary format.  */  unsigned long help;};/* A menu resource is a list of menuitem structures.  */struct menuitem{  /* Next menuitem.  */  struct menuitem *next;  /* Type.  In a normal menu, rather than a menuex, this is the flags     field.  */  unsigned long type;  /* State.  This is only used in a menuex.  */  unsigned long state;  /* Id.  */  unsigned short id;  /* Unicode text.  */  unichar *text;  /* Popup menu items for a popup.  */  struct menuitem *popup;  /* Help ID.  This is only used in a menuex.  */  unsigned long help;};/* Menu item flags.  These can appear in the flags field of a struct   menuitem.  */#define MENUITEM_GRAYED		0x001#define MENUITEM_INACTIVE	0x002#define MENUITEM_BITMAP		0x004#define MENUITEM_OWNERDRAW	0x100#define MENUITEM_CHECKED	0x008#define MENUITEM_POPUP		0x010#define MENUITEM_MENUBARBREAK	0x020#define MENUITEM_MENUBREAK	0x040#define MENUITEM_ENDMENU	0x080#define MENUITEM_HELP	       0x4000/* An rcdata resource is a pointer to a list of rcdata_item   structures.  */struct rcdata_item{  /* Next data item.  */  struct rcdata_item *next;  /* Type of data.  */  enum  {    RCDATA_WORD,    RCDATA_DWORD,    RCDATA_STRING,    RCDATA_WSTRING,    RCDATA_BUFFER  } type;  union  {    unsigned int word;    unsigned long dword;    struct    {      unsigned long length;      const char *s;    } string;    struct    {      unsigned long length;      const unichar *w;    } wstring;    struct    {      unsigned long length;      const unsigned char *data;    } buffer;  } u;};/* A stringtable resource is a pointer to a stringtable structure.  */struct stringtable{  /* Each stringtable resource is a list of 16 unicode strings.  */  struct  {    /* Length of string.  */    int length;    /* String data if length > 0.  */    unichar *string;  } strings[16];};/* A versioninfo resource points to a versioninfo structure.  */struct versioninfo{  /* Fixed version information.  */  struct fixed_versioninfo *fixed;  /* Variable version information.  */  struct ver_info *var;};/* The fixed portion of a versioninfo resource.  */struct fixed_versioninfo{  /* The file version, which is two 32 bit integers.  */  unsigned long file_version_ms;  unsigned long file_version_ls;  /* The product version, which is two 32 bit integers.  */  unsigned long product_version_ms;  unsigned long product_version_ls;  /* The file flags mask.  */  unsigned long file_flags_mask;  /* The file flags.  */  unsigned long file_flags;  /* The OS type.  */  unsigned long file_os;  /* The file type.  */  unsigned long file_type;  /* The file subtype.  */  unsigned long file_subtype;  /* The date, which in Windows is two 32 bit integers.  */  unsigned long file_date_ms;  unsigned long file_date_ls;};/* A list of variable version information.  */struct ver_info{  /* Next item.  */  struct ver_info *next;  /* Type of data.  */  enum { VERINFO_STRING, VERINFO_VAR } type;  union  {    /* StringFileInfo data.  */    struct    {      /* Language.  */      unichar *language;      /* Strings.  */      struct ver_stringinfo *strings;    } string;    /* VarFileInfo data.  */    struct    {      /* Key.  */      unichar *key;      /* Values.  */      struct ver_varinfo *var;    } var;  } u;};/* A list of string version information.  */struct ver_stringinfo{  /* Next string.  */  struct ver_stringinfo *next;  /* Key.  */  unichar *key;  /* Value.  */  unichar *value;};/* A list of variable version information.  */struct ver_varinfo{  /* Next item.  */  struct ver_varinfo *next;  /* Language ID.  */  unsigned short language;  /* Character set ID.  */  unsigned short charset;};/* This structure is used when converting resource information to   binary.  */struct bindata{  /* Next data.  */  struct bindata *next;  /* Length of data.  */  unsigned long length;  /* Data.  */  unsigned char *data;};extern int verbose;/* Function declarations.  */extern struct res_directory *read_rc_file  PARAMS ((const char *, const char *, const char *, int, int));extern struct res_directory *read_res_file PARAMS ((const char *));extern struct res_directory *read_coff_rsrc  PARAMS ((const char *, const char *));extern void write_rc_file  PARAMS ((const char *, const struct res_directory *));extern void write_res_file  PARAMS ((const char *, const struct res_directory *));extern void write_coff_file  PARAMS ((const char *, const char *, const struct res_directory *));extern struct res_resource *bin_to_res  PARAMS ((struct res_id, const unsigned char *, unsigned long, int));extern struct bindata *res_to_bin PARAMS ((const struct res_resource *, int));extern FILE *open_file_search  PARAMS ((const char *, const char *, const char *, char **));extern PTR res_alloc PARAMS ((size_t));extern PTR reswr_alloc PARAMS ((size_t));/* Resource ID handling.  */extern int res_id_cmp PARAMS ((struct res_id, struct res_id));extern void res_id_print PARAMS ((FILE *, struct res_id, int));extern void res_ids_print PARAMS ((FILE *, int, const struct res_id *));extern void res_string_to_id PARAMS ((struct res_id *, const char *));/* Manipulation of the resource tree.  */extern struct res_resource *define_resource  PARAMS ((struct res_directory **, int, const struct res_id *, int));extern struct res_resource *define_standard_resource  PARAMS ((struct res_directory **, int, struct res_id, int, int));extern int extended_dialog PARAMS ((const struct dialog *));extern int extended_menu PARAMS ((const struct menu *));/* Communication between the rc file support and the parser and lexer.  */extern int yydebug;extern FILE *yyin;extern char *rc_filename;extern int rc_lineno;extern int yyparse PARAMS ((void));extern int yylex PARAMS ((void));extern void yyerror PARAMS ((const char *));extern void rcparse_warning PARAMS ((const char *));extern void rcparse_set_language PARAMS ((int));extern void rcparse_discard_strings PARAMS ((void));extern void rcparse_rcdata PARAMS ((void));extern void rcparse_normal PARAMS ((void));extern void define_accelerator  PARAMS ((struct res_id, const struct res_res_info *, struct accelerator *));extern void define_bitmap  PARAMS ((struct res_id, const struct res_res_info *, const char *));extern void define_cursor  PARAMS ((struct res_id, const struct res_res_info *, const char *));extern void define_dialog  PARAMS ((struct res_id, const struct res_res_info *, const struct dialog *));extern struct dialog_control *define_control  PARAMS ((const char *, unsigned long, unsigned long, unsigned long,	   unsigned long, unsigned long, unsigned long, unsigned long,	   unsigned long));extern struct dialog_control *define_icon_control  PARAMS ((struct res_id, unsigned long, unsigned long,	   unsigned long, unsigned long, unsigned long, unsigned long,	   struct rcdata_item *, struct dialog_ex *));extern void define_font  PARAMS ((struct res_id, const struct res_res_info *, const char *));extern void define_icon  PARAMS ((struct res_id, const struct res_res_info *, const char *));extern void define_menu  PARAMS ((struct res_id, const struct res_res_info *, struct menuitem *));extern struct menuitem *define_menuitem  PARAMS ((const char *, int, unsigned long, unsigned long, unsigned long,	   struct menuitem *));extern void define_messagetable  PARAMS ((struct res_id, const struct res_res_info *, const char *));extern void define_rcdata  PARAMS ((struct res_id, const struct res_res_info *, struct rcdata_item *));extern struct rcdata_item *define_rcdata_string  PARAMS ((const char *, unsigned long));extern struct rcdata_item *define_rcdata_number PARAMS ((unsigned long, int));extern void define_stringtable  PARAMS ((const struct res_res_info *, unsigned long, const char *));extern void define_user_data  PARAMS ((struct res_id, struct res_id, const struct res_res_info *,	   struct rcdata_item *));extern void define_user_file  PARAMS ((struct res_id, struct res_id, const struct res_res_info *,	   const char *));extern void define_versioninfo  PARAMS ((struct res_id, int, struct fixed_versioninfo *,	   struct ver_info *));extern struct ver_info *append_ver_stringfileinfo  PARAMS ((struct ver_info *, const char *, struct ver_stringinfo *));extern struct ver_info *append_ver_varfileinfo  PARAMS ((struct ver_info *, const char *, struct ver_varinfo *));extern struct ver_stringinfo *append_verval  PARAMS ((struct ver_stringinfo *, const char *, const char *));extern struct ver_varinfo *append_vertrans  PARAMS ((struct ver_varinfo *, unsigned long, unsigned long));

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?