⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rcp2c.h

📁 关于rcp2c_v3.rar协议在LINUX下的实现程序
💻 H
📖 第 1 页 / 共 5 页
字号:
  char *szThumbIdName;
}
RCControlBA32Type;

#define szRCControlBA32 "w,uuuuuu3,uuuzu5,w4,p,b,b,b,zb"
#define szRCGraphicalControlBA32 "w,uuuuuu3,uuuzu5,w4,l,b,b,b,zb"

typedef union _rcControlType
{
  RCControlBA16Type s16;
  RCControlBA32Type s32;
}
RCControlType;

/*
 * ------------------ Slider ------------------ 
 */
typedef struct _SliderControlBA16Type
{
  int id;                                        /* w  */
  RCRECT bounds;                                 /* w4 */

  /*
   * reversing this 2 param to manage word ordering 
   */
  short backgroundid;                            /* l  */// overlays text in ControlBA16Type
  short thumbid;                                 /*     */// overlays text in ControlBA16Type
  RCCONTROLATTR attr;                            /* uuuuuu3,uuuzu5 */// graphical *is* set
  ControlStyles style;                           /* b */// must be sliderCtl or repeatingSliderCtl
  /*
   * UInt8                        reserved;                  zb 
   */
  int minValue;                                  /* w */
  int maxValue;                                  /* w */
  int pageSize;                                  /* w *//* pageJump == pageSize */
  int value;                                     /* w */
  /*
   * MemPtr                       activeSliderP;     zl 
   */
  char *szIdName;
}
RCSliderControlBA16Type;

#define szRCSliderControlBA16 "w,w4,l,uuuuuu3,uuuzu5,b,zb,w,w,w,w,zl"

typedef struct _SliderControlBA32Type
{
  int id;                                        /* w */
  RCCONTROLATTR attr;                            /* uuuuuu3,uuuzu5 */// graphical *is* set
  RCRECT bounds;                                 /* w4 */
  short thumbid;                                 /*    */// overlays text in ControlBA16Type
  short backgroundid;                            /* l  */// overlays text in ControlBA16Type
  ControlStyles style;                           /* b  */// must be sliderCtl or repeatingSliderCtl
  /*
   * UInt8                        reserved;                  zb 
   */
  int minValue;                                  /* w */
  int maxValue;                                  /* w */
  int pageSize;                                  /* w */
  int value;                                     /* w */
  /*
   * int                          reserved2;                 zw 
   */
  /*
   * MemPtr                       activeSliderP;     zl 
   */
  char *szIdName;
}
RCSliderControlBA32Type;

#define szRCSliderControlBA32 "w,uuuuuu3,uuuzu5,w4,l,b,zb,w,w,w,w,zw,zl"

typedef union _rcSliderControlType
{
  RCSliderControlBA16Type s16;
  RCSliderControlBA32Type s32;
}
RCSliderControlType;

/*
 * ------------------ ScrollBar ------------------ 
 */
typedef struct _rcscrollbarattr
{
  int usable;                                    /* t */
  int visible;                                   /* t */
  int hilighted;                                 /* t */
  int shown;                                     /* t */
  int activeRegion;                              /* t4 */
  /*
   * int reserved;                   zb 
   */
}
RCSCROLLBARATTR;

typedef struct _rcscrollbar
{
  RCRECT bounds;                                 /* w4 */
  int id;                                        /* w */
  RCSCROLLBARATTR attr;                          /* ttttt4,zb */
  int value;                                     /* w */
  int minValue;                                  /* w */
  int maxValue;                                  /* w */
  int pageSize;                                  /* w */
  /*
   * Short penPosInCar;
 *//*
 * zw 
 */
  /*
   * Short savePos;
 *//*
 * zw 
 */
  char *szIdName;
}
RCSCROLLBAR;

#define szRCSCROLLBAR "w4,w,ttttt4,zb,w,w,w,w,zw,zw"

/*
 * ------------------ Forms ------------------ 
 */
typedef union _RCFORMOBJECT
{
  void *ptr;
  RCFieldType *field;
  RCControlType *control;
  RCSliderControlType *slider;
  RCListType *list;
  RCTableType *table;
  RCFormBitMapType *bitmap;
  RCFormLabelType *label;

  /*
   * RCFORMLINE *                         line; 
   */

  /*
   * RCFORMFRAME *                        frame; 
   */

  /*
   * RCFORMRECTANGLE *            rectangle; 
   */
  RCFORMTITLE *title;
  RCFORMPOPUP *popup;
  RCFORMGRAFFITISTATE *grfState;
  RCFORMGADGET *gadget;
  RCSCROLLBAR *scrollbar;
}
RCFORMOBJECT;

typedef struct _rcFormObjListBA16Type
{
  int objectType;                                /* b  */
  /*
   * int reserved;                                   zb 
   */
  union
  {
    RCFORMOBJECT object;                         /* l */
    int ibobj;
  }
  u;
}
RCFormObjListBA16Type;

#define szRCFormObjListBA16 "b,zb,l"

typedef struct _rcFormObjListBA32Type
{
  union
  {
    RCFORMOBJECT object;                         /* l */
    int ibobj;
  }
  u;
  int objectType;                                /* b */
  /*
   * int reserved;                                   zb 
   */
  /*
   * int padding;                            zw 
   */
}
RCFormObjListBA32Type;

#define szRCFormObjListBA32 "l,b,zb,zw"

#define szRCFORMOBJLIST (vfLE32?szRCFormObjListBA32:szRCFormObjListBA16)
typedef union _RCFORMOBJLIST
{
  RCFormObjListBA16Type s16;
  RCFormObjListBA32Type s32;
}
RCFORMOBJLIST;

typedef struct _rcformattr
{
  int usable;                                    /* u */
  int enabled;                                   /* u */
  int visible;                                   /* u */
  int dirty;                                     /* u */
  int saveBehind;                                /* u */
  int graffitiShift;                             /* u */
  int globalsAvailable;                          /* u */
  int doingDialog;                               /* u */
  int exitDialog;                                /* u */
  /*
   * int reserved;                           zu7 
   */
  /*
   * int reserved2;                  zw 
   */
}
RCFORMATTR;                                      /* uuuuuuuu,uzu7,zw */

typedef struct _rcFormBA16Type
{
  RCWindowBA16Type window;
  int formId;                                    /* w  */
  RCFORMATTR attr;                               /* uuuuuuuu uzu7 zw */
  /*
   * WinHandle bitsBehindForm;               zl 
   */
  /*
   * FormEventHandlerPtr handler;            zl 
   */
  /*
   * Word focus;                                             zw 
   */
  int defaultButton;                             /* w  */
  int helpRscId;                                 /* w  */
  int menuRscId;                                 /* w  */
  int numObjects;                                /* w  */
  /*
   * RCFormObjListBA16Type *objects;     zl 
   */
  char *szFormIdName;
  char *szDefaultButtonIdName;
  char *szHelpRscIdName;
  char *szMenuRscIdName;
}
RCFormBA16Type;

#define szRCFormBA16 szRCWindowBA16##",w,uuuuuuuuuzu7,zw,zl,zl,zw,w,w,w,w,zl"
typedef struct _rcFormBA32Type
{
  RCWindowBA32Type window;
  RCFORMATTR attr;                               /* uuuuuuuu uzu7 zw */
  /*
   * WinHandle bitsBehindForm;               zl 
   */
  /*
   * FormEventHandlerPtr handler;            zl 
   */
  int formId;                                    /* w  */
  /*
   * Word focus;                                             zw 
   */
  int defaultButton;                             /* w  */
  int helpRscId;                                 /* w  */
  int menuRscId;                                 /* w  */
  int numObjects;                                /* w  */
  /*
   * RCFormObjListBA32Type *objects;         zl 
   */
  char *szFormIdName;
  char *szDefaultButtonIdName;
  char *szHelpRscIdName;
  char *szMenuRscIdName;
}
RCFormBA32Type;

#define szRCFormBA32 szRCWindowBA32##",uuuuuuuuuzu7,zw,zl,zl,w,zw,w,w,w,w,zl"

#define szRCFORM (vfLE32?szRCFormBA32:szRCFormBA16)

/*-----------------------------------------------------------------------------
|	MENUS
-------------------------------------------------------------WESC------------*/

typedef struct _rcmenuitem
{
  int id;                                        /* w */
  int command;                                   /* b */
  int hidden;                                    /* t */
  /*
   * int reserved;         zt7 
   */
  char *itemStr;                                 /* l */
  char *szIdName;
}
RCMENUITEM;

#define szRCMENUITEM "w,b,tzt7,l"

typedef struct _rcMenuPullDownBA16Type
{
  /*
   * WinHandle menuWin;       zl 
   */
  RCRECT bounds;                                 /* w4 */
  /*
   * WinHandle bitsBehind;    zl 
   */
  RCRECT titleBounds;                            /* w4 */
  char *title;                                   /* l */
  int hidden;                                    /* u */
  int numItems;                                  /* u15 */
  RCMENUITEM *items;                             /* l */
}
RCMenuPullDownBA16Type;

#define szRCMenuPullDownBA16 "zl,w4,zl,w4,l,uu15,l"

typedef struct _rcMenuPullDownBA32Type
{
  /*
   * WinHandle menuWin;       zl 
   */
  RCRECT bounds;                                 /* w4 */
  /*
   * WinHandle bitsBehind;    zl 
   */
  RCRECT titleBounds;                            /* w4 */
  char *title;                                   /* l  */
  int hidden;                                    /* u  */
  /*
   * int reserved                         zu15 
   */
  int numItems;                                  /*     w  */
  RCMENUITEM *items;                             /* l  */
}
RCMenuPullDownBA32Type;

#define szRCMenuPullDownBA32 "zl,w4,zl,w4,l,uzu15,w,l"

#define szRCMENUPULLDOWN (vfLE32?szRCMenuPullDownBA32:szRCMenuPullDownBA16)
typedef union _RCMENUPULLDOWN
{
  RCMenuPullDownBA16Type s16;
  RCMenuPullDownBA32Type s32;
}
RCMENUPULLDOWN;

typedef struct _RCMENUBARATTR
{
  int visible;                                   /* u  */
  /*
   * WORD commandPending;    zu 
   */
  /*
   * WORD insPtEnabled;      zu 
   */
  /*
   * int needsRecalc;                zu 
   */
  /*
   * int reserved;                           zu12 
   */
}
RCMENUBARATTR;

typedef struct _rcMenuBarBA16Type
{
  /*
   * WinHandle barWin;                               zl 
   */
  /*
   * WinHandle bitsBehind;                           zl 
   */
  /*
   * WinHandle savedActiveWin;               zl 
   */
  /*
   * WinHandle bitsBehindStatus;     zl 
   */
  RCMENUBARATTR attr;                            /* uzu3zu12 */
  /*
   * SWord curMenu;                                  zw 
   */
  int curItem;                                   /* w  */
  /*
   * SDWord commandTick;                     zl 
   */
  int numMenus;                                  /* w   number of menus */
  /*
   * MenuPullDownPtr menus;                  zl  array of menus 
   */
}
RCMenuBarBA16Type;

#define szRCMenuBarBA16 "zl,zl,zl,zl,uzu3zu12,zw,w,zl,w,zl"
typedef struct _rcMenuBarBA32Type
{
  /*
   * WinHandle barWin;                               zl 
   */
  /*
   * WinHandle bitsBehind;                           zl 
   */
  /*
   * WinHandle savedActiveWin;               zl 
   */
  /*
   * WinHandle bitsBehindStatus;     zl 
   */
  RCMENUBARATTR attr;                            /* uzu3zu12 */
  /*
   * SWord curMenu;                                  zw 
   */
  int curItem;                                   /* w  */
  int numMenus;                                  /* w   number of menus */
  /*
   * SDWord commandTick;                     zl 
   */
  /*
   * MenuPullDownPtr menus;                  zl  array of menus 
   */
}
RCMenuBarBA32Type;

#define szRCMenuBarBA32 "zl,zl,zl,zl,uzu3zu12,zw,w,w,zl,zl"

#define szRCMENUBAR (vfLE32?szRCMenuBarBA32:szRCMenuBarBA16)
typedef union _RCMENUBAR
{

⌨️ 快捷键说明

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