Quick example of where PostQuitMessage function goes in
your main window procedure:
Code:
CASE %WM_DESTROY IF ISTRUE ghRichEd THEN FreeLibrary ghRichEd 'Free up richedit library? IF ISTRUE ghFont THEN doFontDeinitialize 'Delete font object? 'DestroyMenu ghPopupMenu 'Delete editor popup menu PostQuitMessage 0 'Exit main message loop EXIT FUNCTION
Cheers,
Cecil
------------------
Leave a comment: