>> > > The exit button still doesn't work which I think is to do with >> > > app.id (doesn't exist but is in the dfrm examples). I bodged >> > > it with app.avid to make it compile. read below.... > ApplWrite( _AESapid, WM_CLOSED, wglb.first->handle, 0, 0, 0, 0); > > and it closes properly. This might not be the best solution. _AESapid is just the right thing. AFAIK.