//建立顶级窗口
toplevel = XtVaAppInitialize[&app, "DrawArea", NULL, 0,
&argc, argv, NULL, NULL]
//建立DrawArea
n = 0
XtSetArg[args[n], XmNwidth, 500 ] n++
XtSetArg[args[n], XmNheight, 500 ] n++
DrawArea = XmCreateDrawingArea[toplevel, "DrawArea", args, n]
XtManageChild[DrawArea]
//建立绘图所用的GC
prepare[]
标签:
NULL
XtVaAppInitialize
toplevel
DrawArea
上传时间:
2013-12-29
上传用户:a6697238