winbasic.c
来自「2410/vxworks/tornado下的基本实验包括 serial,ramd」· C语言 代码 · 共 36 行
C
36 行
#include <ugl/uglWin.h>WIN_ID winId;void rectSet (int left, int top, int right, int bottom){UGL_RECT rect;rect.left = left;rect.top = top;rect.right = right;rect.bottom = bottom;winRectSet (winId, &rect);}void winBasic (void) { WIN_APP_ID appId; /* create an application context */ appId = winAppCreate ("winApp", 0, 0, 0, UGL_NULL); /* create a window */ winId = winCreate (appId, UGL_NULL_ID, WIN_ATTRIB_FRAMED | WIN_ATTRIB_VISIBLE, 0, 0, 200, 150, UGL_NULL, 0, UGL_NULL); /* attached the window to the default display */ winAttach (winId, UGL_NULL_ID, UGL_NULL_ID); }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?