How can I avoid that the user closes the app by pressing Alt-F4 ?

I thought that I can detect the key stroke with OnSysCommand in CMainFrame, but that did not work.