980816-1.c
来自「this is a gcc file, you can download it 」· C语言 代码 · 共 52 行
C
52 行
typedef unsigned int size_t;typedef void *XtPointer;typedef struct _WidgetRec *Widget;typedef struct _WidgetClassRec *WidgetClass;extern WidgetClass commandWidgetClass;typedef void (*XtCallbackProc)( Widget , XtPointer , XtPointer );extern const char XtStrings[];typedef struct { char *Name, *Label; XtCallbackProc Callback; XtPointer ClientData; Widget W; } DialogButtonType, *DialogButtonTypePtr; Widget AddButtons(Widget Parent, Widget Top, DialogButtonTypePtr Buttons, size_t Count){ int i; for (i = 0; i < Count; i++) { if (!Buttons[i].Label) continue; Buttons[i].W = XtVaCreateManagedWidget(Buttons[i].Name, commandWidgetClass, Parent, ((char*)&XtStrings[429]) , Buttons[i].Label, "fromHoriz" , i ? Buttons[i-1].W : ((void *)0) , "fromVert" , Top, "resizable" , 1 , ((void *)0) ); XtAddCallback(((char*)&XtStrings[136]), Buttons[i].Callback, Buttons[i].ClientData); } return(Buttons[Count-1].W);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?