nanogui: Microwindows implement
Subject:
Microwindows implement
From:
姚茂彪 Candy ####@####.####
Date:
11 Sep 2001 01:15:36 -0000
Message-Id: <2C111A6965E01E4AB9DBCCF75D0F0AF911FBE5@kes01.kinposh.com.cn>
GR_WINDOW_ID
GrNewWindow(GR_WINDOW_ID parent, GR_COORD x, GR_COORD y, GR_SIZE width,
GR_SIZE height, GR_SIZE bordersize, GR_COLOR background,
GR_COLOR bordercolor)
{
nxNewWindowReq *req;
GR_WINDOW_ID wid;
req = AllocReq(NewWindow);
req->parentid = parent;
req->x = x;
req->y = y;
req->width = width;
req->height = height;
req->backgroundcolor = background;
req->bordercolor = bordercolor;
req->bordersize = bordersize;
if(GrTypedReadBlock(&wid, sizeof(wid),GrNumNewWindow) == -1)
return 0;
return wid;
}
Hi, all:
Read the souce code of GrNewWindow function, why can not find send
request code? after AllocReq(...), GrTypedReadBlock(...)
Thanks!
yao
2001/9/11