>This is what I tried and it did not seem to work. Am I going about this correctly?
>
>#DEFINE WM_QUIT 18
>
>DECLARE INTEGER SendMessage IN Win32API ;
> INTEGER hWnd, ;
> INTEGER wMsg, ;
> INTEGER wParam, ;
> INTEGER lParam
>
>SendMessage(myHWnd,WM_QUIT,0,0)
This is a "duh..." on my part. Wrong window's message. Use WM_CLOSE (16).
George
Ubi caritas et amor, deus ibi est