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

📄 test1.c

📁 安装DDD之前
💻 C
字号:
/* * this test is pretty cool.  Turns out that objects need not have a Composite * parent.  Try using editres on this -- "One" will not appear in the Widget * hierarchy, just as in M*tif. */#include <Xm/BulletinB.h>#include <Xm/SeparatoG.h>#include <Xm/ExtObjectP.h>intmain(int argc, char **argv){  Widget toplevel, one,two;  Widget gadget;  XtAppContext app;  XtSetLanguageProc(NULL, NULL, NULL);  toplevel = XtVaAppInitialize(&app, "ExtObj", NULL, 0, &argc, argv, NULL, NULL);  two = XtVaCreateManagedWidget("Two", xmBulletinBoardWidgetClass, toplevel,				XmNmarginWidth, 10, XmNmarginHeight, 10,				NULL);  gadget = XtVaCreateManagedWidget("Sep", xmSeparatorGadgetClass, two, NULL);  one = XtVaCreateWidget("One", xmExtObjectClass, gadget, NULL);  XtRealizeWidget(toplevel);  {    static XtWidgetGeometry Expected[] = {   CWWidth | CWHeight            ,   50,   50,   23,   23, 0,0,0, /* Two */   CWWidth | CWHeight | CWX | CWY,   10,   10,    2,    2, 0,0,0, /* Sep */     };    PrintDetails(  toplevel ,Expected);};   LessTifTestMainLoop(  toplevel );  exit(0);}

⌨️ 快捷键说明

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